Hello and welcome to Advanced Installer forums,
Thank you for your interest in Advanced Installer.
This may happen if the "[WindowsVolume][Manufacturer]" folder location already exists on target machine before installation. Please note that, on uninstall, Windows Installer removes only the resources (file, folders, registries, etc) created by the installation process.
In order to achieve what you want you can add your VBS custom action as a custom action with sequence scheduled (only on uninstall) after "Installed Execute Sequence -> Add Resources" actions group. Also, you should configure the custom action to run as deferred.
As another option you can use our
"Uninstall Cleanup" support. Here are the steps to proceed:
- go to "Install Parameters" page and add a new property like this:
- Name: MY_PROP
Value: Your Value
- go to "Custom Actions" page and add a "Set Installer Property" custom action with sequence after "Wizard Dialogs Stage -> Searches" actions group like this:
- Property: MY_PROP
Value: [WindowsVolume][Manufacturer]
- select the above custom action and, while keeping [SHIFT] key pressed, drag it under "Install Execution Stage -> Searches" actions group (the custom action will be shared between the two installation stages)
- go to "Files and Folders" page and create a
property-based folder using MY_PROP property
- select the MY_PROP property-based folder and from its context menu choose "Uninstall Cleanup..." option and go through the wizard
- build and run your project
If you have any questions let us know.
All the best,
Daniel
FOLLOW US
Get the latest news in Application Packaging