vaine0
Posts: 14
Joined: Wed Jul 09, 2008 11:40 pm

Custom action installs

We are shipping the .net 2.0 redistributable with our installation package. We are attempting to install it as a custom action, after our product instillation completes. However, we are getting an error saying that "There is already an installation in progress" and .net 2.0 does not install. What is the best way to deal with this?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Re: Custom action installs

Hi,

The best way to do this is to use prerequisites. Add the .net 2.0 redistributable as prerequisite in "Prerequisites->Software" tab. Read more about prerequisites and how to use them here.

Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/
canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Re: Custom action installs

gigi wrote:The best way to do this is to use prerequisites. Add the .net 2.0 redistributable as prerequisite in "Prerequisites->Software" tab. Read more about prerequisites and how to use them here:
Hello gigi,

I discussed something related with cosmin:

http://www.advancedinstaller.com/forums ... f=2&t=7606

However, even setting "Asynchronous execution, do not wait for return" as cosmin suggested still leads to the message from Windows Installer that another installation is still in progress. Is there a solution for this?
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Re: Custom action installs

Hi,

To run a MSI as custom action in other MSI you have two options:

1. Use "MSI Database Relative to Package" custom action. But note that those type of custom actions are deprecated by Microsoft:
http://msdn.microsoft.com/en-us/library/aa368010.aspx
2. Use a custom action as you discribed in your previews post but you need to schedule this action under "InstallExecuteSequence->InstallFinalize" with "Asinchronous execution, do not wait for return" as "Execution Properties".

Regards,
Gigi
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com/
canhuth
Posts: 241
Joined: Thu Jun 19, 2008 9:03 am

Re: Custom action installs

gigi wrote:To run a MSI as custom action in other MSI you have two options:

1. Use "MSI Database Relative to Package" custom action. But note that those type of custom actions are deprecated by Microsoft:
http://msdn.microsoft.com/en-us/library/aa368010.aspx
2. Use a custom action as you discribed in your previews post but you need to schedule this action under "InstallExecuteSequence->InstallFinalize" with "Asinchronous execution, do not wait for return" as "Execution Properties".
Hello gigi,

I have a .exe file, does that rule out the first option?

I tried using option 2, it is what cosmin already suggested, isn't it? Using that I still get the error about another install being in progress.



With best regards

Clemens Anhuth
Ionut
Posts: 605
Joined: Tue Nov 22, 2005 11:29 am
Contact: Website

Re: Custom action installs

Hi Clemens,
I have a .exe file, does that rule out the first option?
Yes, it does.
I tried using option 2, it is what cosmin already suggested, isn't it? Using that I still get the error about another install being in progress.
I am not sure what the problem could be. Please send a simple test case (AIP files and required installation files) to support at advancedinstaller dot com in order to investigate the issue.

Regards,
Ionut
Denis Toma
Advanced Installer Team
http://www.advancedinstaller.com/

Return to “Common Problems”