Active Setup question
I am using active setup to populate some HKCU keys. I added the following registry information.
I tried adding /norestart and/or REBOOT=ReallySuppress into the stubpath command line but that information seems to be ignored and reboots anyways. Anyone have any suggestions?
Thanks,
Rob
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Active Setup\Installed Components\[ProductName]]
"StubPath"="[SystemFolder]msiexec.exe /fou [ProductCode] /qn"@="[ProductName]"
"Locale"="EN"
"DontAsk"=dword:00000002
"ComponentID"="[ProductName]"
"IsInstalled"=dword:00000001
"Version"="1,0,0"
I tried adding /norestart and/or REBOOT=ReallySuppress into the stubpath command line but that information seems to be ignored and reboots anyways. Anyone have any suggestions?
Thanks,
Rob
0 Comments
[ + ] Show comments
Answers (19)
Please log in to answer
Posted by:
Jsaylor
14 years ago
Properties passed on the command line are ignored when using the /f family of switches. You can get around this limitation by using the REINSTALL and REINSTALLMODE properties combined with the /i switch.
Off the top of my head, you'll want to do msiexec.exe /i <productcode> REINSTALL=all REINSTALLMODE=ou REBOOT=ReallySuppress /qn
The REINSTALLMODE property corresponds to whatever additional switches you want to use with /f.
Off the top of my head, you'll want to do msiexec.exe /i <productcode> REINSTALL=all REINSTALLMODE=ou REBOOT=ReallySuppress /qn
The REINSTALLMODE property corresponds to whatever additional switches you want to use with /f.
Posted by:
mreusguy
14 years ago
Posted by:
anonymous_9363
14 years ago
Posted by:
mreusguy
14 years ago
Posted by:
mreusguy
14 years ago
Posted by:
Jsaylor
14 years ago
Posted by:
anonymous_9363
14 years ago
Posted by:
Jsaylor
14 years ago
I prefer to think of it as working around the limitations of the msiexec engine, and in this line of work, dealing with the limitations of msiexec IS the learning process. Also, sometimes trying to dig into a vendor supplied MSI, especially if it was built with the opposite tool, is an exercise in futility. I'm assuming this guy is dealing with a crappy package that he didn't create, but that may be me having way too much faith.
Posted by:
anonymous_9363
14 years ago
Posted by:
mreusguy
14 years ago
VBScab and JSaylor,
I am attaching pieces from the log during repair.
I am attaching pieces from the log during repair.
00558: (Server): MSI (s) (4C:E0) [09:35:13:843]: Doing action: RebootConditionCheck
00559: (Unknown): Action ended 9:35:13: DetectOutlookUpgrade. Return value 1.
00560: (Server): MSI (s) (4C:E0) [09:35:13:843]: Note: 1: 2235 2: 3: ExtendedType 4: SELECT `Action`,`Type`,`Source`,`Target`, NULL, `ExtendedType` FROM `CustomAction` WHERE `Action` = 'RebootConditionCheck'
00561: (Server): MSI (s) (4C:DC) [09:35:13:859]: Invoking remote custom action. DLL: C:\WINDOWS\Installer\MSIA.tmp, Entrypoint: RebootConditionCheck
00562: (Server): MSI (s) (4C!48) [09:35:13:921]: PROPERTY CHANGE: Adding REBOOT property. Its value is 'Forced'.
00563: (Unknown): Action start 9:35:13: RebootConditionCheck.
00564: (Server): MSI (s) (4C:E0) [09:35:13:921]: Doing action: RemoveExistingProducts
00565: (Unknown): Action ended 9:35:13: RebootConditionCheck. Return value 1.
06091: (Property): Property(S): REBOOT = Forced
06149: (Server): MSI (s) (4C:E0) [09:35:26:218]: Value of RebootAction property is
06150: (Server): MSI (s) (4C:E0) [09:35:26:218]: Windows Installer requires a system restart. Product Name: Livelink Explorer Professional 4.8.6. Product Version: 4.8.6. Product Language: 1033. Type of System Restart: 1. Reason for Restart: 0.
06151: (Unknown):
Posted by:
anonymous_9363
14 years ago
Do you mean REBOOT=ReallySuppress?For this property, everything after the first letter is ignored so 'R' is the same as 'ReallySuppress', 'S' = 'Suppress' and so on.
I wonder if this
06091: (Property): Property(S): REBOOT = Forced
could be the problem?!? It *looks* like the CA RebootConditionCheck is changing that property. Condition the CA so that it doesn't run for anything other than an install. Actually, it would be worth investigating why the package needs a reboot at all. There are only a limited set of circumstances which absolutely require one. Most others can be worked around.
Posted by:
Jsaylor
14 years ago
Woah there Ian, I'll have none of your "reading logs" shenanigans in this thread.
To look a little more closely, the REBOOT property is added just before RebootconditionCheck is started, so it might be a result of "DetectOutlookUpgrade" as well, you may wish to disable those CA's independently to figure out which one exactly is causing the property change.
To look a little more closely, the REBOOT property is added just before RebootconditionCheck is started, so it might be a result of "DetectOutlookUpgrade" as well, you may wish to disable those CA's independently to figure out which one exactly is causing the property change.
Posted by:
anonymous_9363
14 years ago
Posted by:
pjgeutjens
14 years ago
Posted by:
mreusguy
14 years ago
I tried the following.
"[SystemFolder]msiexec.exe /fou [ProductCode] /norestart /qn"
"[SystemFolder]msiexec.exe /fou [ProductCode] REBOOT=ReallySuppress /qn"
And yes you are right about the /fu switch rather than /fou. I added that in by mistake. I could have sworn I seen a post about people talking about this but I can't seem to find it anywhere.
Thanks for your help
"[SystemFolder]msiexec.exe /fou [ProductCode] /norestart /qn"
"[SystemFolder]msiexec.exe /fou [ProductCode] REBOOT=ReallySuppress /qn"
And yes you are right about the /fu switch rather than /fou. I added that in by mistake. I could have sworn I seen a post about people talking about this but I can't seem to find it anywhere.
Thanks for your help
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.