Send multiple parameters to msiexec when installing EXE patch?

0

0

I am trying to run an EXE (Update) silently and also without rebooting. I have:

"myUpdate.EXE" /s/v/qn

which basically means run the patch silently / no interaction. The /v I believe is supposed to be the switch to send the 'qn' parameters directly to msiexec. So, in order to tell msiexec to not restart, I would think that saying '/v/norestart' would work, however it does not (the command ends up being invalid and I get the msiexec usage/help dialog)

Is there a way to send multiple parameters to msiexec when installing an EXE update?

UPDATE: this link notes an example of:

Setup.exe /s /v"/qn INSTALLDIR=D:\Destination"

So framing in context of my own update EXE:

MyUpdateEXE /s /v"/qn /norestart"

However this is not working - I get the msiexec usage/help dialog as if the syntax is incorrect.

JohnZaj

Posted 2012-12-05T06:53:09.083

Reputation: 437

Well, if it's a exe file, then msiexec is not a case here, because it's an msi installer. You could post exactly what installer it is (In case thats publicly available). Because there is plenty of installer solutions and therefore many possibilities for parameters. – week – 2012-12-05T07:00:39.543

Generally if you type yourUpdate.exe /?, that sometimes can give you a help for given installer. Another thing is, that parameters you type are usualy in windows separated by space like update.exe /s /v /n – week – 2012-12-05T07:04:42.620

@week Its an EXE-wrapped MSP built from InstallShield. – JohnZaj – 2012-12-05T07:10:44.163

1Try initial space in brackets like update.exe /s /v" /qn /norestart". – week – 2012-12-05T07:19:34.513

And if that /norestart won't work you may add REBOOT=ReallySuppress parameter to msi. – week – 2012-12-05T07:22:14.747

@week nice work it is update.exe /s /v" /qn /norestart" – JohnZaj – 2012-12-05T16:43:53.753

Answers

1

Msiexec is really touchy about right parameters alignment.:)

Because InstallShield Setup handover parameters without initial space,

update.exe /s /v"/qn /norestart"

have to be formated with space after quotes.

update.exe /s /v" /qn /norestart"

week

Posted 2012-12-05T06:53:09.083

Reputation: 3 128