epu
Posts: 17
Joined: Thu Apr 19, 2012 2:29 am
Location: Alameda, California

chained msi with bad APPDIR property fails, returns

Hey there,

I am trying out chaining some of our msi components in advinst 10.6.

I put our installer's shared data into an msi, and then chained it from our current msi.
Since the parent msi sets APPDIR/TARGETDIR, I passed APPDIR along to the child msi in the properties field for installation.
The parent installer is using the default Air theme, with enhanced installation disabled (because of instability in the bootstrap.exe).

I forgot to quote the path in the property value (which had spaces in it).
The child installer failed (as revealed by logging), but the menu flow took me to ExitDlg instead of FatalError.
The error text of the child msi log was "installation success or error status: 1639" which translates to ERROR_INVALID_COMMAND_LINE.
When I exited what looked like a successful install, I wasn't able to see the installation in the ARP menu.

Once I figured out what was going on, installation succeeded ok.

Is this a known issue I can fix by upgrading advancedinstaller, or changing the project?
Is there a way I can manually check the chained status, and exit myself, with a well-placed custom action?
* I'd like to stick to chaining, but if it fails in a different manner, I want to know about it.

Kind regards,

-e
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: chained msi with bad APPDIR property fails, returns

Hi,

Sorry for the delayed reply.

Indeed, this was an Advanced Installer limitation, however an improvement was included starting with version 11.3 of Advanced Installer. In that version, if the chained prerequisite fails, the main package fails, too and it displays the "FatalError" dialog.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
epu
Posts: 17
Joined: Thu Apr 19, 2012 2:29 am
Location: Alameda, California

Re: chained msi with bad APPDIR property fails, returns

Ah, good to know. Thanks for the reply!

That would be worth the upgrade for us; we've encountered another example (Error 1401 - permissions in registry) in a chained installer that wasn't elevated, that wasn't throwing a fatal error. The 11.3 update generally handles chained failures as fatal errors, and rolls back, right?
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: chained msi with bad APPDIR property fails, returns

You're welcome.

Indeed, starting with 11.3 the "registry permissions" error from the chained package should be interpreted as a fatal error by the main package and the installation will rollback.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube
jasraj.bishnoi
Posts: 4
Joined: Tue Jul 07, 2015 11:12 am

Re: chained msi with bad APPDIR property fails, returns

I am not adding any msi in Chained but same issue facing in version 12.2.1. below is the log file. unable to install application, please suggest.

AI_InstallPrerequisite: Installing SAP Crystal Reports Runtime Engine for .NET Framework
AI_InstallPrerequisite: Installing SAP Crystal Reports Runtime Engine for .NET Framework completed
Action ended 17:25: AI_InstallPrerequisite. Return value 1.
MSI (c) (B0:60) [17:25:49:859]: Note: 1: 2205 2: 3: AI_TempFile
MSI (c) (B0:60) [17:25:49:859]: Note: 1: 2228 2: 3: AI_TempFile 4: SELECT `Property` FROM `AI_TempFile`
MSI (c) (B0:60) [17:25:49:859]: Note: 1: 2205 2: 3: AI_XmlLocator
MSI (c) (B0:60) [17:25:49:859]: Note: 1: 2228 2: 3: AI_XmlLocator 4: SELECT `Property` FROM `AI_XmlLocator`
MSI (c) (B0:60) [17:25:49:949]: Note: 1: 2205 2: 3: AI_ChainedPackage
MSI (c) (B0:60) [17:25:49:949]: Note: 1: 2228 2: 3: AI_ChainedPackage 4: SELECT `ChainedPackage` FROM `AI_ChainedPackage`
MSI (c) (B0:60) [17:26:13:559]: Doing action: FatalError
Action 17:26: FatalError.
Action start 17:26: FatalError.
MSI (c) (B0:30) [17:26:13:559]: Note: 1: 2205 2: 3: AI_ControlEx
MSI (c) (B0:30) [17:26:13:559]: Note: 1: 2228 2: 3: AI_ControlEx 4: SELECT `Dialog_`,`Control`,`Type`,`Parent`,`Attributes`,`Data` FROM `AI_ControlEx` WHERE `Dialog_` = 'FatalError'
Action ended 17:26: FatalError. Return value 1.
MSI (c) (B0:60) [17:26:16:369]: Doing action: AI_SHOW_LOG
Action 17:26: AI_SHOW_LOG.
Action start 17:26: AI_SHOW_LOG.
MSI (c) (B0:90) [17:26:16:369]: Invoking remote custom action. DLL: C:\Users\ADMINI~1\AppData\Local\Temp\MSI10CC.tmp, Entrypoint: LaunchLogFile
Action ended 17:26: AI_SHOW_LOG. Return value 1.
MSI (c) (B0:60) [17:26:16:539]: Doing action: FatalError
Action 17:26: FatalError.
Action start 17:26: FatalError.
Action ended 17:26: FatalError. Return value 1.
MSI (c) (B0:60) [17:26:16:539]: Doing action: AI_CleanPrereq
Action 17:26: AI_CleanPrereq.
Action start 17:26: AI_CleanPrereq.
MSI (c) (B0:AC) [17:26:16:539]: Invoking remote custom action. DLL: C:\Users\ADMINI~1\AppData\Local\Temp\MSI1169.tmp, Entrypoint: CleanPrereq
Action ended 17:26: AI_CleanPrereq. Return value 1.
MSI (c) (B0:60) [17:26:16:569]: Doing action: FatalError
Action 17:26: FatalError.
Action start 17:26: FatalError.
Eusebiu
Posts: 4959
Joined: Wed Nov 14, 2012 2:04 pm

Re: chained msi with bad APPDIR property fails, returns

Hi,

I'm not sure why you encounter this problem. Can you please send us the .AIP (project file) and a full verbose log of the installation to support at advancedinstaller dot com, so we can investigate them? Also, please give us more details about the scenario and when the error appears.

Best regards,
Eusebiu
Eusebiu Aria - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”