Hello,
The issue I'm having (and this is in relation with previous questions I have posted) is I'm trying to uninstall software if it exists on the target computer. To do this, I'm calling a bat file which calls UNWISE.exe on their system if the registry contains the path to the uninstall. The problem is that if they cancel the installation Our components will be installed and in order to setup everything correctly they will need to uninstall everything and start over.
In order to achieve this you can run the related BAT file using a
"Launch attached file" custom action. You can proceed like this:
- Go to "Search" page and add a
registry search (e.g. MY_SEARCH) which will search for the related uninstall registry.
- Go to "Custom Actions" page and add a "Launch attached file" custom action with sequence, scheduled after "Wizard Dialogs Stage -> Searches" action group, which will run your BAT file. Also, you should condition the above custom action using MY_SEARCH property.
- Build and run your project.
Let us know if this helps, otherwise give us more details about your scenario.
All the best,
Daniel