vcredist2008.iss 1.4 KB

12345678910111213141516171819202122232425262728293031323334
  1. ; requires Windows 2000 Service Pack 4, Windows Server 2003, Windows Vista, Windows XP
  2. ; requires Windows Installer 3.0
  3. ; http://www.microsoft.com/en-us/download/details.aspx?id=29
  4. [CustomMessages]
  5. vcredist2008_title=Visual C++ 2008 Redistributable
  6. vcredist2008_title_x64=Visual C++ 2008 64-Bit Redistributable
  7. vcredist2008_size=4.3 MB
  8. vcredist2008_size_x64=5.0 MB
  9. [Code]
  10. const
  11. vcredist2008_url = 'http://download.microsoft.com/download/5/D/8/5D8C65CB-C849-4025-8E95-C3966CAFD8AE/vcredist_x86.exe';
  12. vcredist2008_url_x64 = 'http://download.microsoft.com/download/5/D/8/5D8C65CB-C849-4025-8E95-C3966CAFD8AE/vcredist_x64.exe';
  13. vcredist2008_upgradecode = '{AA783A14-A7A3-3D33-95F0-9A351D530011}';
  14. vcredist2008_upgradecode_sp1mfc = '{DE2C306F-A067-38EF-B86C-03DE4B0312F9}';
  15. vcredist2008_upgradecode_sp1mfc_x64 = '{FDA45DDF-8E17-336F-A3ED-356B7B7C688A}';
  16. procedure vcredist2008(minVersion: string);
  17. begin
  18. if (not IsIA64()) then begin
  19. if (not msiproductupgrade(GetString(vcredist2008_upgradecode_sp1mfc, vcredist2008_upgradecode_sp1mfc_x64, ''), minVersion) and not msiproductupgrade(vcredist2008_upgradecode, minVersion)) then
  20. AddProduct('vcredist2008' + GetArchitectureString() + '.exe',
  21. '/q',
  22. CustomMessage('vcredist2008_title' + GetArchitectureString()),
  23. CustomMessage('vcredist2008_size' + GetArchitectureString()),
  24. GetString(vcredist2008_url, vcredist2008_url_x64, ''),
  25. false, false, false);
  26. end;
  27. end;
  28. [Setup]