Hi,
I have created an installer which needs to delete the files inside an existing (APPDIR) folder, empty it first before copying the new files. How to do that please?
In order to achieve this you can go in the Files and Folders page and create a "File Removal" operation in the folder you want to empty, with the following configuration:
- Name: *.*
Component: <any component from your package>
Remove On: Component install
Furthermore, I also want to rename a file in folder without overwriting it. If the file already exists then rename it and then copy the new one. How can I do this as well please?
Unfortunately, we don't have predefined support for this. In order to achieve this you can create your own custom action with this functionality and place it before "Remove Resources" action group in the Custom Actions page.
Let us know if this helped, otherwise give us more details about your scenario.
Best regards,
Eusebiu
FOLLOW US
Get the latest news in Application Packaging