jorgeltx
Posts: 10
Joined: Tue Sep 09, 2008 6:30 pm

Chained packages fail to reinstall with AI 7.0.1

We created a sample MSI that installs a chained package. The chained package install and uninstall conditions are directly associated with a defined feature. If the user chooses to install the feature, the chained package will install. The package uninstalls if the user chooses to remove the feature.

We are able to install the chained package successfully the first time. If the chained package uninstalls, any future attempts to reinstall the chained package fails without any errors.

The first time MSI installs the chained package, the AI_CHAINER_CMD_LINE property reads …. (chained package installs)

MSI (s) (74!BC) [16:26:12:089]: PROPERTY CHANGE: Adding AI_CHAINER_CMD_LINE property. Its value is 'I C:\Users\admin\AppData\Roaming\Hewlett-Packard\HP ProtectTools\install\DRVENCRYPT\FVE-1.0.2.1.msi F O'.
MSI (s) (74!BC) [16:26:12:089]: PROPERTY CHANGE: Adding AI_MSI_CHAINER_CONDITION property. Its value is '1'.

If the user chooses to uninstall the chained package, AI_CHAINER_CMD_LINE property reads …. (Chained package uninstalls)

MSI (s) (74!44) [16:27:08:468]: PROPERTY CHANGE: Adding AI_CHAINER_CMD_LINE property. Its value is 'U {B6F064B8-1B7D-41FB-A426-19673954159B} B O'.
MSI (s) (74!44) [16:27:08:483]: PROPERTY CHANGE: Adding AI_MSI_CHAINER_CONDITION property. Its value is '1'.

If the chained package was not installed when the MSI installs for the first time or uninstalled by the user, any attempt to reinstall the chained package fails. When the failure occurs, AI_CHAINER_CMD_LINE property reads …. (Chained package fails to install)

MSI (s) (74!D8) [16:27:51:430]: PROPERTY CHANGE: Adding AI_CHAINER_CMD_LINE property. Its value is 'I DRVENCRYPT\FVE-1.0.2.1.msi F O'.
MSI (s) (74!D8) [16:27:51:430]: PROPERTY CHANGE: Adding AI_MSI_CHAINER_CONDITION property. Its value is '1'.

Has anyone seen this behavior? We are running AI 7.0.1 and the MSI runs in an admin command prompt session.

I thank you in advance for your help and response.

Jorge
ciprian
Posts: 259
Joined: Thu Jul 14, 2005 12:56 pm
Location: Craiova, Romania
Contact: Website

Re: Chained packages fail to reinstall with AI 7.0.1

Hi Jorge,

Please send the AIP fie and the installation logs to support at advancedinstaller dot com so we can investigate this.

Best regards,
Ciprian
Ciprian Burca
Advanced Installer Team
http://www.advancedinstaller.com
jorgeltx
Posts: 10
Joined: Tue Sep 09, 2008 6:30 pm

Re: Chained packages fail to reinstall with AI 7.0.1

Ciprian,

A copy of the requested files (Sample-MSI-Chain-AI-7.0.1.zip) was sent to 'support @ advancedinstaller . com' per your request.
Thanks

Jorge
Cosmin
Posts: 5797
Joined: Tue Jul 10, 2007 6:39 pm
Contact: Website

Re: Chained packages fail to reinstall with AI 7.0.1

Hi,

This can be done by changing the conditions of the chained package to use the associated feature. For example, if the feature associated with the chained install has the identifier "Feature", the install condition would be:

Code: Select all

((&Feature = 3) AND NOT (!Feature = 3))
and the uninstall condition would be:

Code: Select all

((&Feature = 2) AND (!Feature = 3)) 
This way the chained package should be installed when the feature is installed and uninstalled when the feature is uninstalled.

Regards,
Cosmin
Cosmin Pirvu - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”