Hello,

Here is the picture. The previous version of the application is installed using another installer where there is no uninstaller inside the application content. The new installer needs to delete the previous application before installing the new version. Delete the "MyProgram.app" entirely before starting the new installation?

asked 30 Apr '13, 17:01

Codename%20K's gravatar image

Codename K
246596371
accept rate: 50%


The <deleteFile> action can be used to delete an entire directory recursively. If the directory is under new installation directory, you can just delete it in <readyToInstallActionList> - for example:

<readyToInstallActionList> <deleteFile> <path>${installdir}/MyProgram.app</path> <ruleList> <fileExists> <path>${installdir}/MyProgram.app</path> </fileExists> </ruleList> </deleteFile> </readyToInstallActionList>

link

answered 01 May '13, 04:52

wojciechka's gravatar image

wojciechka ♦♦
7.8k61122
accept rate: 26%

Thanks. However, this does not work on the app files. Works perfectly on other extensions. Is this due to any security restrictions? If so how to go through that?

(01 May '13, 08:30) Codename K
1

There is not any restriction. Is installir the right path for the previous installation? Have you tried to run the test it using the debugger? http://installbuilder.bitrock.com/docs/installbuilder-userguide.html#_debugger

(01 May '13, 10:56) kaysa ♦♦

Thanks for your information.

(03 May '13, 06:04) Codename K
Your answer
toggle preview

Follow this question

By Email:

Once you sign in you will be able to subscribe for any updates here

By RSS:

Answers

Answers and Comments

Markdown Basics

  • *italic* or _italic_
  • **bold** or __bold__
  • link:[text](http://url.com/ "title")
  • image?![alt text](/path/img.jpg "title")
  • numbered list: 1. Foo 2. Bar
  • to add a line break simply add two spaces to where you would like the new line to be.
  • basic HTML tags are also supported

Tags:

×130
×83
×54
×25
×15
×8

Asked: 30 Apr '13, 17:01

Seen: 1,693 times

Last updated: 03 May '13, 06:04