vcredist2012.iss 1.4 KB

1234567891011121314151617181920212223242526272829303132
  1. ; requires Windows 7 Service Pack 1, Windows 8, Windows 8.1, Windows Server 2003, Windows Server 2008 R2 SP1, Windows Server 2008 Service Pack 2, Windows Server 2012, Windows Vista Service Pack 2, Windows XP
  2. ; http://www.microsoft.com/en-us/download/details.aspx?id=30679
  3. [CustomMessages]
  4. vcredist2012_title=Visual C++ 2012 Redistributable
  5. vcredist2012_title_x64=Visual C++ 2012 64-Bit Redistributable
  6. vcredist2012_size=6.3 MB
  7. vcredist2012_size_x64=6.9 MB
  8. [Code]
  9. const
  10. vcredist2012_url = 'http://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x86.exe';
  11. vcredist2012_url_x64 = 'http://download.microsoft.com/download/1/6/B/16B06F60-3B20-4FF2-B699-5E9B7962F9AE/VSU_4/vcredist_x64.exe';
  12. vcredist2012_upgradecode = '{4121ED58-4BD9-3E7B-A8B5-9F8BAAE045B7}';
  13. vcredist2012_upgradecode_x64 = '{EFA6AFA1-738E-3E00-8101-FD03B86B29D1}';
  14. procedure vcredist2012(minVersion: string);
  15. begin
  16. if (not IsIA64()) then begin
  17. if (not msiproductupgrade(GetString(vcredist2012_upgradecode, vcredist2012_upgradecode_x64, ''), minVersion)) then
  18. AddProduct('vcredist2012' + GetArchitectureString() + '.exe',
  19. '/passive /norestart',
  20. CustomMessage('vcredist2012_title' + GetArchitectureString()),
  21. CustomMessage('vcredist2012_size' + GetArchitectureString()),
  22. GetString(vcredist2012_url, vcredist2012_url_x64, ''),
  23. false, false, false);
  24. end;
  25. end;
  26. [Setup]