micamoita
Posts: 11
Joined: Thu Jan 30, 2014 5:53 pm

Prerequisite not installed when launched as System

Mon May 24, 2021 5:40 pm

Hello,

My setup integrates an msi prerequisite, which is set as feature-based.
I'm having an issue when launching my setup with System user: only in this case, the prerequisite setup fails to launch (or perhaps even to extract: it should be launched with logging flags itself, but that log isn't created at all).

When launching my setup with verbose logging flags, all I can see at the end of the log is:
MSI (c) (84:A4) [18:28:38:107]: PROPERTY CHANGE: Adding AI_MISSING_PREREQS property. Its value is 'PrerequisiteName x64'.
MSI (c) (84:A4) [18:28:38:107]: PROPERTY CHANGE: Modifying AI_FOUND_PREREQS property. Its current value is '.NET Framework 4.6.1'. Its new value: '.NET Framework 4.6.1| PrerequisiteName x86'.
MSI (c) (84:A4) [18:28:38:123]: Note: 1: 2205 2: 3: AI_TempFile
MSI (c) (84:A4) [18:28:38:123]: Note: 1: 2228 2: 3: AI_TempFile 4: SELECT `Property` FROM `AI_TempFile`
MSI (c) (84:A4) [18:28:38:123]: Note: 1: 2205 2: 3: AI_XmlLocator
MSI (c) (84:A4) [18:28:38:123]: Note: 1: 2228 2: 3: AI_XmlLocator 4: SELECT `Property` FROM `AI_XmlLocator`
MSI (c) (84:A4) [18:28:38:123]: Note: 1: 2205 2: 3: AI_ChainedPackage
MSI (c) (84:A4) [18:28:38:123]: Note: 1: 2228 2: 3: AI_ChainedPackage 4: SELECT `ChainedPackage` FROM `AI_ChainedPackage`
MSI (c) (84:A4) [18:28:41:750]: Doing action: FatalError
Action start 18:28:41: FatalError.
MSI (c) (84:40) [18:29:15:631]: PROPERTY CHANGE: Deleting AI_LOG_CHECKBOX property. Its current value is '1'.
Action ended 18:29:16: FatalError. Return value 1.
MSI (c) (84:A4) [18:29:16:380]: Doing action: AI_CleanPrereq
Action start 18:29:16: AI_CleanPrereq.
MSI (c) (84:C0) [18:29:16:380]: Invoking remote custom action. DLL: C:\WINDOWS\TEMP\MSI2197.tmp, Entrypoint: CleanPrereq
Action ended 18:29:16: AI_CleanPrereq. Return value 1.
MSI (c) (84:A4) [18:29:16:427]: Doing action: FatalError
Action start 18:29:16: FatalError.
Action ended 18:29:16: FatalError. Return value 2.
MSI (c) (84:A4) [18:29:16:427]: Note: 1: 2205 2: 3: Environment
MSI (c) (84:A4) [18:29:16:427]: Note: 1: 2228 2: 3: Environment 4: SELECT `Environment`,`Component_` FROM `Environment`
MSI (c) (84:54) [18:29:16:458]: Destroying RemoteAPI object.
MSI (c) (84:04) [18:29:16:474]: Custom Action Manager thread ending.
=== Verbose logging stopped: 24/05/2021 18:29:16 ===
Do you have any idea?

Thanks a lot!

micamoita
Posts: 11
Joined: Thu Jan 30, 2014 5:53 pm

Re: Prerequisite not installed when launched as System

Wed May 26, 2021 8:35 am

I came to a solution.
It seems that when launched as System, the [AppDataFolder] folder resolves not to a user-bound space, but directly on C:. This probably causes problems with extraction of the prerequisite, since this folder is the default base path for prerequisite extraction (as configured in the "Packages" section).
I solved by replacing, for this purpose, [AppDataFolder] with [CommonAppDataFolder].

Catalin
Posts: 4206
Joined: Wed Jun 13, 2018 7:49 am

Re: Prerequisite not installed when launched as System

Wed May 26, 2021 9:07 am

Hello,

Thank you for your followup on this and for sharing your solution with us!

I am sure this will be of help for further users facing a similar scenario, as this is pretty interesting. To be honest, I was not aware of this behavior when the setup is launched under the System account.

Best regards,
Catalin
Catalin Gheorghe - Advanced Installer Team
Follow us: Twitter - Facebook - YouTube

Return to “Common Problems”

 

 

cron