I am currently authoring a custom action DLL in C# that my AI installer will call. The logic in my custom action depends on whether the product is being installed, upgraded or removed. In order to try and detect this, I have tried to obtain the following properties from the Session object supplied to my DLL:
- AI_INSTALL
- AI_MAINT
- OLDPRODUCTS
- SOURCEDIR
- APPDIR
FYI: The main issue I am facing is when upgrading... We have had to select the "unsintall first, then install" upgrade order as some of our components have changed. What I effectively need is for my custom action to not do anything during the uninstall phase, and then do it's work after the new installation has been made.
Please help!
Thanks,
Ben