Clear Directory before the Installation - Advanced Installer Community
Hunted
Posts: 10
Joined: Mon Oct 21, 2013 1:44 pm

Clear Directory before the Installation

Hi Advanced Installer Team,
I want to give the User the possibility to clear an installl folder before the installation to have a clear install.
I found the User Guide here: http://www.advancedinstaller.com/user-g ... older.html
But these solutions are for deleting specific files or folders.
I want to leave an existing folder but delete all files in it and the User should choose it as a feature.

Greetings Hunted :)
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Clear Directory before the Installation

Hi Hunted,

A similar problem was discussed on the Emptying a folder first before copying new files thread.

If you want to allow the user to choose if he wants to delete the files or not, you can add a checkbox on a dialog (which the user can check or not) and use the property related to that checkbox as a condition for the "File Removal" operation that deletes your files.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
Hunted
Posts: 10
Joined: Mon Oct 21, 2013 1:44 pm

Re: Clear Directory before the Installation

Okay thx that helped.
But how to execute this feature before all others?
Eusebiu
Posts: 4971
Joined: Wed Nov 14, 2012 2:04 pm

Re: Clear Directory before the Installation

Hi,

The "File Removal" operation is executed during the "Remove Resources" action group which starts after the installation is prepared (before any changes are made on the machine).

If you want to remove your files earlier (when the installation is started) you can create your own custom action and place it the first in the custom action sequence.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”