How to get Custom Action to NOT run when Uninstalled - 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!

ktarman
Posts: 3
Joined: Mon Jul 28, 2008 6:19 pm

How to get Custom Action to NOT run when Uninstalled

I have a Custom Action that kicks off a Installed with product Java Excecutable that I want to ONLY run on install. The problem is that although I have defined it in the Install section of the Install Sequence of the Custom Action screen, it is still running when you UNINSTALL the product.

How can I get a Custom Action to only run at Install time and NOT at uninstall time?

I attached a picture of the Custom Action screen.

Thanks
Attachments
Custom Action screen picture
Custom Action screen picture
TNT Post install.jpg (86.91 KiB) Viewed 2373 times
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: How to get Custom Action to NOT run when Uninstalled

Hi,

You can make sure that a custom action runs only during the first installation by setting the "Expression" field to (Not Installed). This field can be found on the bottom of the Custom Action Properties page.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”