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