How do I know that the installer was launched with the /quiet command-line option?

Got a problem you cannot solve? Try here.
Post Reply
Kostya
Posts: 29
Joined: Tue Jul 25, 2017 8:09 am

How do I know that the installer was launched with the /quiet command-line option?

Post by Kostya »

Hello,

We use the Windows Installer "/quiet" switch to install silently:

Code: Select all

msiexec /i installer.msi CMDLINE="SOMEVAR=TRUE" /quiet
How would we know that it was run with "/quiet"?

I know, we can get and process variables in the code if we use CMDLINE, but I wouldn't want to pass another variable like that if the switch is present. As far as I understand, the predefined variable SILENT could be used if we run it like

Code: Select all

installer.exe /s
and does not help in this case.

Thanks,
Kostya
JohnGaver
Posts: 265
Joined: Mon Feb 05, 2024 6:15 pm

Re: How do I know that the installer was launched with the /quiet command-line option?

Post by JohnGaver »

You don't need to worry about manually checking for that command line parameter.

When your MSI is launched silently, your setup will automatically receive the /s command line parameter from the MSI.

If this is not what you are seeing, please describe your workflow in detail.
John Gaver
InstallAware Skunkworks
InstallAware Multi Platform - Liberating DEB/RPM/PKG/MSI(X) into universal native setups!
Get your free copy today - https://www.installaware.com/installawa ... atform.htm
Kostya
Posts: 29
Joined: Tue Jul 25, 2017 8:09 am

Re: How do I know that the installer was launched with the /quiet command-line option?

Post by Kostya »

John, you are right, I see that the SILENT variable works perfectly in the case described. Sorry, apparently I didn't check it correctly first here. Thanks!
Post Reply