ShareX/ShareX.Setup/InnoSetup/Scripts/products/dotnetfx45.iss

26 lines
975 B
Text
Raw Normal View History

2018-03-01 02:40:20 +13:00
; requires Windows 7 Service Pack 1, Windows 8, Windows 8.1, Windows Server 2008 R2 SP1, Windows Server 2008 Service Pack 2, Windows Server 2012, Windows Server 2012 R2, Windows Vista Service Pack 2
2020-07-26 23:02:23 +12:00
; express setup (downloads and installs the components depending on your OS) if you want to deploy it locally download the full installer on website below
; https://www.microsoft.com/en-us/download/details.aspx?id=42642
2018-03-01 02:40:20 +13:00
[CustomMessages]
dotnetfx45_title=.NET Framework 4.5.2
dotnetfx45_size=1 MB - 68 MB
[Code]
const
dotnetfx45_url = 'http://download.microsoft.com/download/B/4/1/B4119C11-0423-477B-80EE-7A474314B347/NDP452-KB2901954-Web.exe';
procedure dotnetfx45(minVersion: integer);
begin
2020-07-21 15:54:03 +12:00
if (netfxspversion(NetFx4x, '') < minVersion) then
2018-03-01 02:40:20 +13:00
AddProduct('dotnetfx45.exe',
'/lcid ' + CustomMessage('lcid') + ' /passive /norestart',
CustomMessage('dotnetfx45_title'),
CustomMessage('dotnetfx45_size'),
dotnetfx45_url,
false, false, false);
end;
[Setup]