sql2005express.iss 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940
  1. ; SQL Server Express is supported on x64 and EMT64 systems in Windows On Windows (WOW). SQL Server Express is not supported on IA64 systems
  2. ; requires Microsoft .NET Framework 2.0 or later
  3. ; 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.
  4. ; http://www.microsoft.com/download/en/details.aspx?id=15291
  5. [CustomMessages]
  6. sql2005express_title=SQL Server 2005 Express SP3
  7. sql2005express_size=38.1 MB
  8. sql2005express_size_x64=58.1 MB
  9. [Code]
  10. const
  11. sql2005express_url = 'http://download.microsoft.com/download/4/B/E/4BED5810-C8C0-4697-BDC3-DBC114B8FF6D/SQLEXPR32_NLA.EXE';
  12. sql2005express_url_x64 = 'http://download.microsoft.com/download/4/B/E/4BED5810-C8C0-4697-BDC3-DBC114B8FF6D/SQLEXPR_NLA.EXE';
  13. procedure sql2005express();
  14. var
  15. version: string;
  16. begin
  17. // CHECK NOT FINISHED YET
  18. // RTM: 9.00.1399.06
  19. // Service Pack 1: 9.1.2047.00
  20. // Service Pack 2: 9.2.3042.00
  21. // TODO: Newer detection method required for SP3 and x64
  22. // Service Pack 3: 9.00.4035.00
  23. //RegQueryDWordValue(HKLM, 'Software\Microsoft\Microsoft SQL Server\90\DTS\Setup', 'Install', version);
  24. RegQueryStringValue(HKLM, 'SOFTWARE\Microsoft\Microsoft SQL Server\SQLEXPRESS\MSSQLServer\CurrentVersion', 'CurrentVersion', version);
  25. if (version < '9.00.4035') then begin
  26. if (not IsIA64()) then
  27. AddProduct('sql2005express' + GetArchitectureString() + '.exe',
  28. '/qb ADDLOCAL=ALL INSTANCENAME=SQLEXPRESS',
  29. CustomMessage('sql2005express_title'),
  30. CustomMessage('sql2005express_size' + GetArchitectureString()),
  31. GetString(sql2005express_url, sql2005express_url_x64, ''),
  32. false, false, false);
  33. end;
  34. end;
  35. [Setup]