Uninstall batch file not running - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

drdredel
Posts: 2
Joined: Fri Aug 20, 2010 9:38 pm

Uninstall batch file not running

I have a batch file that needs to run at Uninstall. I have added it the same way that I add my install batch files. However, it appears to never be called. I have a PAUSE in the file, so, the dos window would just stay open if it was being called.

I'm setting it to run in sync mode, checking for error code. Is there something special I need to do to make sure it runs? My installer needs to run a windows unregister on the DLL, otherwise, the program files disappear but the dll remains registered on the host machine.
Bogdan
Posts: 2796
Joined: Tue Jul 07, 2009 7:34 am
Contact: Website

Re: Uninstall batch file not running

Hi,

I assume you are running the batch file as explained here. In this case the custom action must use this execution condition:

Code: Select all

REMOVE="ALL"
This will make it execute only during uninstall. To have a custom action execute only during install set this execution condition:

Code: Select all

NOT Installed
Regards,
Bogdan
Bogdan Mitrache - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”