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

22 lines
632 B
Text

[CustomMessages]
msi31_title=Windows Installer 3.1
msi31_size=2.5 MB
[Code]
const
msi31_url = 'http://download.microsoft.com/download/1/4/7/147ded26-931c-4daf-9095-ec7baf996f46/WindowsInstaller-KB893803-v2-x86.exe';
procedure msi31(minVersion: string);
begin
// Check for required Windows Installer 3.0 on Windows 2000 or higher
if (IsX86() and minwinversion(5, 0) and (compareversion(fileversion(ExpandConstant('{sys}{\}msi.dll')), minVersion) < 0)) then
AddProduct('msi31.exe',
'/passive /norestart',
CustomMessage('msi31_title'),
CustomMessage('msi31_size'),
msi31_url,
false, false, false);
end;
[Setup]