Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to detect whether the setup runs in very silent mode?

Tags:

inno-setup

I know there is the WizardSilent function for checking whether the setup runs in silent mode, but I cannot find a function equivalent for very silent mode (when the setup is executed with /VERYSILENT command line parameter).

Is there a way to detect whether the setup runs in very silent mode?

like image 1000
Vingt_centimes Avatar asked Jul 12 '12 10:07

Vingt_centimes


People also ask

How do I Run Run setup in silent mode?

Run Setup in silent mode. When you run the Setup wizard, Setup is running in interactive mode. In other words, a graphical user interface (GUI) prompts you for the required information. Alternatively, you can run Setup in silent mode. When Setup runs in silent mode, no GUI is displayed.

How do I find the silent switch for a setup file?

There is a way that you can sniff out and find the silent switch for a number of setup files. Universal Silent Switch Finder (USSF) has been around for many years and was used by XP custom install programs such as the Windows Post Install Wizard (WPI) among many others to determine the silent switches for unattended installs.

What is a silent installation and how do I use it?

A silent installation is especially useful when you deploy multiple clients at the same time. For more information, see Mass deployment of the Microsoft Dynamics AX Windows client. The same parameters are available whether you enter them at the command prompt or create a parameter file.

What is silent mode in Microsoft Dynamics AX?

When Setup runs in silent mode, no GUI is displayed. Instead, you supply the required information at the command prompt or in a parameter file. You can install any Microsoft Dynamics AX component in silent mode. A silent installation is especially useful when you deploy multiple clients at the same time.


1 Answers

WizardSilent will be true for both /Silent and /VerySilent installs. The difference between the two parameters is whether a progress bar is shown (/Silent) or not (/VerySilent).

Based on your comment, the best I can suggest would be to check the command line and look for /VerySilent and set a global variable. Something like:

[Code]
var 
  isVerySilent: Boolean;

function InitializeSetup(): Boolean;
var
  j: Integer;
begin
  isVerySilent := False;
  for j := 1 to ParamCount do
    if CompareText(ParamStr(j), '/verysilent') = 0 then
    begin
      isVerySilent := True;
      Break;
    end; 

  if isVerySilent then
    Log ('VerySilent')
  else
    Log ('not VerySilent');
end;
like image 104
mirtheil Avatar answered Sep 30 '22 17:09

mirtheil