vcredist2010.iss 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. ; requires Windows 7, Windows Server 2003 R2 (32-Bit x86), Windows Server 2003 Service Pack 2, Windows Server 2008 R2, Windows Server 2008 Service Pack 2, Windows Vista Service Pack 2, Windows XP Service Pack 3
  2. ; http://www.microsoft.com/en-us/download/details.aspx?id=5555
  3. [CustomMessages]
  4. vcredist2010_title=Visual C++ 2010 Redistributable
  5. vcredist2010_title_x64=Visual C++ 2010 64-Bit Redistributable
  6. vcredist2010_size=8.6 MB
  7. vcredist2010_size_x64=9.8 MB
  8. [Code]
  9. const
  10. vcredist2010_url = 'http://download.microsoft.com/download/1/6/5/165255E7-1014-4D0A-B094-B6A430A6BFFC/vcredist_x86.exe';
  11. vcredist2010_url_x64 = 'http://download.microsoft.com/download/1/6/5/165255E7-1014-4D0A-B094-B6A430A6BFFC/vcredist_x64.exe';
  12. vcredist2010_upgradecode = '{1F4F1D2A-D9DA-32CF-9909-48485DA06DD5}';
  13. vcredist2010_upgradecode_x64 = '{5B75F761-BAC8-33BC-A381-464DDDD813A3}';
  14. procedure vcredist2010(minVersion: string);
  15. begin
  16. if (not IsIA64()) then begin
  17. if (not msiproductupgrade(GetString(vcredist2010_upgradecode, vcredist2010_upgradecode_x64, ''), minVersion)) then
  18. AddProduct('vcredist2010' + GetArchitectureString() + '.exe',
  19. '/passive /norestart',
  20. CustomMessage('vcredist2010_title' + GetArchitectureString()),
  21. CustomMessage('vcredist2010_size' + GetArchitectureString()),
  22. GetString(vcredist2010_url, vcredist2010_url_x64, ''),
  23. false, false, false);
  24. end;
  25. end;
  26. [Setup]