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!

Guest

Separate Custom Actions for install and uninstall.

Hi,

I have defined certain custom action for my msi package using a .dll
There are some functions in the dll which I want to call while installing the packaged product. Certain other function are those which need to be called on uninstallation.

But my problem is that the functions are getting called for uninstall as well. Can I set a check that a custom action gets called only on install. (for e.g. I have defined one to be called after Installinintialize and another after InstallFinalize and I want to restrict them only while installing. they get executed even while uninstalling.

Please help
Cata
Posts: 638
Joined: Thu Apr 10, 2003 7:37 am
Contact: Website

Just create your CA in the appropriate folder in Install Sequence. Create a CA under Install and another one under Uninstall.

That will add the correct conditions to make sure your actions will be run only when specified.
Catalin Rotaru - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”