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?
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.
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.
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.
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.
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;
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With