Page 1 of 1

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

Posted: Thu Aug 08, 2024 3:13 am
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

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

Posted: Thu Aug 08, 2024 9:21 am
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.

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

Posted: Thu Aug 08, 2024 11:11 am
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!