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

23 lines
613 B
Text
Raw Normal View History

[CustomMessages]
msi20_title=Windows Installer 2.0
2018-03-01 02:40:20 +13:00
msi20_size=1.7 MB
[Code]
const
msi20_url = 'http://download.microsoft.com/download/WindowsInstaller/Install/2.0/W9XMe/EN-US/InstMsiA.exe';
2018-03-01 02:40:20 +13:00
procedure msi20(minVersion: string);
begin
// Check for required Windows Installer 2.0 on Windows 98 and ME
2018-03-01 02:40:20 +13:00
if (IsX86() and maxwinversion(4, 9) and (compareversion(fileversion(ExpandConstant('{sys}{\}msi.dll')), minVersion) < 0)) then
AddProduct('msi20.exe',
'/q:a /c:"msiinst /delayrebootq"',
CustomMessage('msi20_title'),
CustomMessage('msi20_size'),
msi20_url,
2018-03-01 02:40:20 +13:00
false, false, false);
end;
[Setup]