Call dll before uninstall and upgrade/install - 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!

ankitkshah
Posts: 13
Joined: Mon Dec 20, 2010 1:28 pm

Call dll before uninstall and upgrade/install

Hi,

I want to call a dll or .NET form before uninstall MSI and upgrade/install new MSI. For e.g. I have MSI with version no 1.0.0.0. Now I am upgrading my MSI version to 2.0.0.0. In my case old MSI of version no 1.0.0.0 is automatically uninstall and install new MSI of version of 2.0.0.0., but I want to call a dll before uninstall old MSI of version no 1.0.0.0. and install new MSI of version 2.0.0.0. How can I achieve thi? Is that any UIsequence no for custom action?

Thanks ,
Ankit
mihai.petcu
Posts: 3860
Joined: Thu Aug 05, 2010 8:01 am

Re: Call dll before uninstall and upgrade/install

Hi Ankit,

In the 2.0.0.0. version project you can add a "Call a function from a standard dll" predefined custom action anywhere between after "FindRelatedProducts" and before the "RemoveExistingProducts" standard action. You should set its execution condition to:

Code: Select all

OLDPRODUCTS
The same can be achieved from the 1.0.0.0 version project by scheduling the custom action after the InstallExecuteSequence "Begin" standard action and setting the execution condition to:

Code: Select all

UPGRADINGPRODUCTCODE
Here are more details about the properties used in the conditions.

Best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”