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

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

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

Postby Kostya » Thu Aug 08, 2024 3:13 am

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: 115
Joined: Mon Feb 05, 2024 6:15 pm

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

Postby JohnGaver » Thu Aug 08, 2024 9:21 am

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/installaware-multi-platform.htm

Kostya
Posts: 13
Joined: Tue Jul 25, 2017 8:09 am

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

Postby Kostya » Thu Aug 08, 2024 11:11 am

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!


Return to “Technical Support”

Who is online

Users browsing this forum: Google [Bot] and 35 guests