sql2008express.iss 1.9 KB

12345678910111213141516171819202122232425262728293031323334353637
  1. ; requires Windows 7, Windows Server 2003, Windows Server 2008, Windows Server 2008 R2, Windows Vista, Windows XP
  2. ; requires Microsoft .NET Framework 3.5 SP 1 or later
  3. ; requires Windows Installer 4.5 or later
  4. ; SQL Server Express is supported on x64 and EMT64 systems in Windows On Windows (WOW). SQL Server Express is not supported on IA64 systems
  5. ; SQLEXPR32.EXE is a smaller package that can be used to install SQL Server Express on 32-bit operating systems only. The larger SQLEXPR.EXE package supports installing onto both 32-bit and 64-bit (WOW install) operating systems. There is no other difference between these packages.
  6. ; http://www.microsoft.com/download/en/details.aspx?id=3743
  7. [CustomMessages]
  8. sql2008expressr2_title=SQL Server 2008 Express R2
  9. sql2008expressr2_size=58.2 MB
  10. sql2008expressr2_size_x64=74.1 MB
  11. [Code]
  12. const
  13. sql2008expressr2_url = 'http://download.microsoft.com/download/5/1/A/51A153F6-6B08-4F94-A7B2-BA1AD482BC75/SQLEXPR32_x86_ENU.exe';
  14. sql2008expressr2_url_x64 = 'http://download.microsoft.com/download/5/1/A/51A153F6-6B08-4F94-A7B2-BA1AD482BC75/SQLEXPR_x64_ENU.exe';
  15. procedure sql2008express();
  16. var
  17. version: string;
  18. begin
  19. // This check does not take into account that a full version of SQL Server could be installed,
  20. // making Express unnecessary.
  21. RegQueryStringValue(HKLM, 'SOFTWARE\Microsoft\Microsoft SQL Server\SQLEXPRESS\MSSQLServer\CurrentVersion', 'CurrentVersion', version);
  22. if (compareversion(version, '10.5') < 0) then begin
  23. if (not IsIA64()) then
  24. AddProduct('sql2008expressr2' + GetArchitectureString() + '.exe',
  25. '/QS /IACCEPTSQLSERVERLICENSETERMS /ACTION=Install /FEATURES=All /INSTANCENAME=SQLEXPRESS /SQLSVCACCOUNT="NT AUTHORITY\Network Service" /SQLSYSADMINACCOUNTS="builtin\administrators"',
  26. CustomMessage('sql2008expressr2_title'),
  27. CustomMessage('sql2008expressr2_size' + GetArchitectureString()),
  28. GetString(sql2008expressr2_url, sql2008expressr2_url_x64, ''),
  29. false, false, false);
  30. end;
  31. end;
  32. [Setup]