bccc
Posts: 9
Joined: Wed Aug 25, 2010 10:41 pm

Detect same version on silent install

I am silently executing an MSI from the command line and need to detect if the same version of the MSI has already been installed. I am using AI_NEWERPRODUCTFOUND for the case where a newer version is already installed, but what would be an equivalent check for the same version? I need to fire a custom action for the case and need a reliable execute condition for it.

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

Re: Detect same version on silent install

Hello,

When you run a package that is already installed( same Package Code ) from the command line( using the "/i" switch ) the package will start in maintenance mode. If the package is executed silently then by default the package will perform a "Repair" operation. To detect the maintenance mode, you can use the AI_MAINT property.

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
bccc
Posts: 9
Joined: Wed Aug 25, 2010 10:41 pm

Re: Detect same version on silent install

Mihai,

Thank you for the response, however I am still unable to properly trap and execute my custom action in this scenario.

In my log file I see "Configuration failed" and then "MSI (s) (54:7C) [17:04:23:250]: MainEngineThread is returning 1638". How would I go about executing a custom action when this issue is encountered? I am struggling with where in the execute sequence this is or how I would capture this error and take action.

The scenario is attempting to silently execute the MSI that was used to install the existing installation.

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

Re: Detect same version on silent install

Hello,

Can you please send us the .AIP (project) and a verbose log of the installation to support at advancedinstaller dot com so we can investigate them?

All the best,
Mihai
Mihai Petcu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”