Hello and welcome to Advanced Installer forums,
Thank you for your interest in Advanced Installer.
In order to achieve this you can use our
file copy/move support. For example, you can use a files move operation on install which will move the "audio" folder content in a backup location and another files move operation which will restore the "audio" folder on uninstall. Also, you can create a registry value which will be installed when the backup operation is required and add the files move operations under the registry component. Here are the steps to proceed:
- go to "Registry" page and add a registry value (e.g. "BackupReg")
- select the registry value and from its context menu use the "Go To Component" option
- in "Organization" page move its selected component under the feature which requires the backup operation
- go to "Files and Folder" page and create a backup folder (e.g. [APPDIR]\res\audioBackup)
- in the "audioBackup" folder add a files move operation like this:
- Source File Name: *.*
Source File Folder: APPDIR\res\audio
Destination File Name:
Destination File Folder: APPDIR\res\audioBackup
Component: BackupReg's component
Execute On: Component install
Operation: Move
- in the "audio" folder add a files move operation like this:
- Source File Name: *.*
Source File Folder: APPDIR\res\audioBackup
Destination File Name:
Destination File Folder: APPDIR\res\audio
Component: BackupReg's component
Execute On: Component uninstall
Operation: Move
- build and run your project
If you have any questions just let us know.
All the best,
Daniel
FOLLOW US
Get the latest news in Application Packaging