ShareX/ShareX.Setup/InnoSetup/Scripts/products/dotnetfx46.iss
2018-02-28 16:40:20 +03:00

25 lines
955 B
Text

; requires Windows 7 Service Pack 1, Windows 8.1, Windows Server 2008 R2 SP1, Windows Server 2012, Windows Server 2012 R2
; WARNING: express setup (downloads and installs the components depending on your OS) if you want to deploy it on cd or network download the full bootsrapper on website below
; https://www.microsoft.com/en-US/download/details.aspx?id=53345
[CustomMessages]
dotnetfx46_title=.NET Framework 4.6.2
dotnetfx46_size=1 MB - 59 MB
[Code]
const
dotnetfx46_url = 'http://download.microsoft.com/download/D/5/C/D5C98AB0-35CC-45D9-9BA5-B18256BA2AE6/NDP462-KB3151802-Web.exe';
procedure dotnetfx46(minVersion: integer);
begin
if (not netfxinstalled(NetFx4x, '') or (netfxspversion(NetFx4x, '') < minVersion)) then
AddProduct('dotnetfx46.exe',
'/lcid ' + CustomMessage('lcid') + ' /passive /norestart',
CustomMessage('dotnetfx46_title'),
CustomMessage('dotnetfx46_size'),
dotnetfx46_url,
false, false, false);
end;
[Setup]