Hi,
You can put the BAT file to be executed on "Unistall" action by adding an "Exe with working dir" custom action. Use "Deferred" as an "Execution Options".
However you can also put the BAT file to be executed on "RemoveFiles" action.
You can add this on "Custom Actions" page by right clicking on "InstallExecuteSequence" and choose "Show Standard Action->Before File Instalation->RemoveFiles".
On "RemoveFiles" add "New custom action->Exe with Working Dir" and edit the "Full Path" ComboBox with the formatted path of your batch file (Ex: [#test.bat]).
Use the following options for the cutom action:
1. Synchronous execution, ignore return code.
2. Immediate execution, this means that this CA is executed immediately as it is encountered in the InstallExecuteSequence table.
3. Always Execute.
4. As a condition choose REMOVE="ALL", this means that this custom action runs only when the product is uninstalled.
Regards,
Gigi
_________________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com