Don't like ads? PRO users don't see any ads ;-)
Guest

Untitled

By: a guest on May 5th, 2012  |  syntax: None  |  size: 5.18 KB  |  hits: 24  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. ; Script generated by the Inno Setup Script Wizard.
  2. ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
  3.  
  4. #define MyAppName "Close Brewery Rentals System"
  5. #define MyAppVersion "3.0.0.0"
  6. #define MyAppPublisher "Close Brewery Rentals"
  7. #define MyAppURL "http://www.closebreweryrentals.co.uk/"
  8. #define MyAppExeName "CBRScanning3.exe"
  9.  
  10. [Setup]
  11. ; NOTE: The value of AppId uniquely identifies this application.
  12. ; Do not use the same AppId value in installers for other applications.
  13. ; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
  14. AppId={{B500AE7D-039A-43CC-8A39-61EB757952B8}
  15. AppName={#MyAppName}
  16. AppVersion={#MyAppVersion}
  17. ;AppVerName={#MyAppName} {#MyAppVersion}
  18. AppPublisher={#MyAppPublisher}
  19. AppPublisherURL={#MyAppURL}
  20. AppSupportURL={#MyAppURL}
  21. AppUpdatesURL={#MyAppURL}
  22. DefaultDirName={pf}\{#MyAppName}
  23. DefaultGroupName={#MyAppName}
  24. AllowNoIcons=yes
  25. OutputDir=C:\Users\ldine\Documents\Development\CBRScanning3\CBRScanning3\Resources\Installation\Output
  26. OutputBaseFilename=setup
  27. Compression=lzma
  28. SolidCompression=yes
  29.  
  30. [Languages]
  31. Name: "english"; MessagesFile: "compiler:Default.isl"
  32.  
  33. [Files]
  34. Source: "C:\Users\ldine\Documents\Development\CBRScanning3\CBRScanning3\bin\Release\CBRScanning3.exe"; DestDir: "{app}"; Flags: ignoreversion
  35. Source: "C:\Users\ldine\Documents\Development\CBRScanning3\CBRScanning3\bin\Release\NAppUpdate.Framework.dll"; DestDir: "{app}"; Flags: ignoreversion
  36. Source: "C:\Users\ldine\Documents\Development\CBRScanning3\CBRScanning3\bin\Release\Opticon.csp2.net.dll"; DestDir: "{app}"; Flags: ignoreversion
  37. Source: "C:\Users\ldine\Documents\Development\CBRScanning3\CBRScanning3\bin\Release\Scanners.dll"; DestDir: "{app}"; Flags: ignoreversion
  38. Source: "C:\Users\ldine\Documents\Development\CBRScanning3\CBRScanning3\bin\Release\Scanners.Shared.dll"; DestDir: "{app}"; Flags: ignoreversion
  39. Source: "C:\Users\ldine\Documents\Development\CBRScanning3\CBRScanning3\bin\Release\CBRScanning3.exe.config"; DestDir: "{app}"; Flags: ignoreversion
  40. Source: "C:\Users\ldine\Documents\Development\CBRScanning3\CBRScanning3\Resources\Drivers\Opticon\Csp2.dll"; DestDir: "{app}"; Flags: ignoreversion;
  41. Source: "C:\Users\ldine\Documents\Development\CBRScanning3\CBRScanning3\Resources\Drivers\Metrologic\mtlgpos2.sys"; DestDir: {win}\inf\;
  42. Source: "C:\Users\ldine\Documents\Development\CBRScanning3\CBRScanning3\Resources\Drivers\Metrologic\mtlgpos2nt.inf"; DestDir: {win}\inf\;
  43. Source: "C:\Users\ldine\Documents\Development\CBRScanning3\CBRScanning3\Resources\Drivers\Metrologic\mtlgpos2props.DLL"; DestDir: {win}\inf\;
  44. Source: "C:\Users\ldine\Documents\Development\CBRScanning3\CBRScanning3\Resources\Drivers\Opticon\USB Drivers Installer.exe"; DestDir: {tmp}; Flags: ignoreversion deleteafterinstall; OnlyBelowVersion: 0,6.1;
  45. Source: "C:\Users\ldine\Documents\Development\CBRScanning3\CBRScanning3\Resources\Drivers\Opticon\Windows 7\32bit\optousb32.exe"; DestDir: {tmp}; Flags: ignoreversion deleteafterinstall; Check: not isWin64; MinVersion: 6.1,6.1;
  46. Source: "C:\Users\ldine\Documents\Development\CBRScanning3\CBRScanning3\Resources\Drivers\Opticon\Windows 7\64bit\optousb64.exe"; DestDir: {tmp}; Flags: ignoreversion deleteafterinstall; Check: isWin64; MinVersion: 6.1,6.1;
  47. Source: "C:\Users\ldine\Documents\Development\CBRScanning3\CBRScanning3\Resources\Installation\dotNetFx40_Full_setup.exe"; DestDir: {tmp}; Check: CheckForFramework; Flags: ignoreversion deleteafterinstall
  48.  
  49. ; NOTE: Don't use "Flags: ignoreversion" on any shared system files
  50.  
  51. [Icons]
  52. Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
  53. Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}";
  54. Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}";
  55.  
  56. [Run]
  57. Filename: {tmp}\dotNetFx40_Full_setup.exe; Parameters: "/q:a /c:""install /l /q"""; Check: CheckForFramework; StatusMsg: Microsoft Framework 4.0 is beïng installed. Please wait...
  58. Filename: {tmp}\USB Drivers Installer.exe; Description: Run Opticon OPN2001 scanner drivers install; StatusMsg: RunningOpticon OPN2001 driver install; Flags: runascurrentuser; OnlyBelowVersion: 0,6.1;
  59. Filename: {tmp}\optousb32.exe; Description: Run Opticon OPN2001 scanner drivers install; StatusMsg: RunningOpticon OPN2001 driver install; Flags: runascurrentuser; Check: not isWin64; MinVersion: 6.1,6.1;
  60. Filename: {tmp}\optousb64.exe; Description: Run Opticon OPN2001 scanner drivers install; StatusMsg: RunningOpticon OPN2001 driver install; Flags: runascurrentuser; Check: isWin64; MinVersion: 6.1,6.1;
  61. Filename: .\rundll32.exe; Parameters:setupapi,InstallHinfSection DefaultInstall 132 {win}\inf\mtlgpos2nt.inf; Description: Install Metrologic Voyager scanner drivers automatically; StatusMsg: Installing Metrologic Voyager drivers...; Flags: runascurrentuser; WorkingDir: {sys};
  62. Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, "&", "&&")}}"; Flags: nowait postinstall skipifsilent
  63.  
  64. ; 3 Different exe to run based on OS version
  65. [Code]
  66. //  check for framework
  67. Function CheckForFramework : boolean;
  68. Var
  69. regresult : cardinal;
  70. Begin
  71. RegQueryDWordValue(HKLM, 'Software\Microsoft\NET Framework Setup\NDP\v4\Full', 'Install', regresult);
  72. If regresult = 0 Then
  73. Begin
  74. Result := true;
  75. End
  76. Else
  77. Result := false;
  78. End;