Reputation: 6508
I'm using the following code to install the .NET package automatically
procedure dotnetfx40full();
begin
if (not netfxinstalled(NetFx40Full, '')) then
AddProduct('dotNetFx40_Full_setup.exe',
CustomMessage('dotnetfx40full_lcid') + ' /q /passive /norestart',
CustomMessage('dotnetfx40full_title'),
CustomMessage('dotnetfx40full_size'),
dotnetfx40full_url,
false, false);
end;
It's using this project. Please check cannot post full code here.
http://www.codeproject.com/Articles/20868/NET-Framework-Installer-for-InnoSetup
But after the .NET installer is downloaded and the installer is executed with switches, the .NET installer does not work. It shows this message regarding proper usage of switches.
Upvotes: 0
Views: 670
Reputation: 202504
If you try to execute dotNetFx40_Full_setup.exe /q /passive /norestart
manually, you get the same behavior.
After some testing, I believe you cannot combine /q
and /passive
. It makes sense as both do the same thing little differently.
Just use only one of the /q
or the /passive
in your code, depending
if you want to see a progress (/passive
) or not (/q
).
Upvotes: 3