- ; Script generated by the Inno Setup Script Wizard.
- ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
- #define MyAppName "Close Brewery Rentals System"
- #define MyAppVersion "3.0.0.0"
- #define MyAppPublisher "Close Brewery Rentals"
- #define MyAppURL "http://www.closebreweryrentals.co.uk/"
- #define MyAppExeName "CBRScanning3.exe"
- [Setup]
- ; NOTE: The value of AppId uniquely identifies this application.
- ; Do not use the same AppId value in installers for other applications.
- ; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
- AppId={{B500AE7D-039A-43CC-8A39-61EB757952B8}
- AppName={#MyAppName}
- AppVersion={#MyAppVersion}
- ;AppVerName={#MyAppName} {#MyAppVersion}
- AppPublisher={#MyAppPublisher}
- AppPublisherURL={#MyAppURL}
- AppSupportURL={#MyAppURL}
- AppUpdatesURL={#MyAppURL}
- DefaultDirName={pf}\{#MyAppName}
- DefaultGroupName={#MyAppName}
- AllowNoIcons=yes
- OutputDir=C:\Users\ldine\Documents\Development\CBRScanning3\CBRScanning3\Resources\Installation\Output
- OutputBaseFilename=setup
- Compression=lzma
- SolidCompression=yes
- [Languages]
- Name: "english"; MessagesFile: "compiler:Default.isl"
- [Files]
- Source: "C:\Users\ldine\Documents\Development\CBRScanning3\CBRScanning3\bin\Release\CBRScanning3.exe"; DestDir: "{app}"; Flags: ignoreversion
- Source: "C:\Users\ldine\Documents\Development\CBRScanning3\CBRScanning3\bin\Release\NAppUpdate.Framework.dll"; DestDir: "{app}"; Flags: ignoreversion
- Source: "C:\Users\ldine\Documents\Development\CBRScanning3\CBRScanning3\bin\Release\Opticon.csp2.net.dll"; DestDir: "{app}"; Flags: ignoreversion
- Source: "C:\Users\ldine\Documents\Development\CBRScanning3\CBRScanning3\bin\Release\Scanners.dll"; DestDir: "{app}"; Flags: ignoreversion
- Source: "C:\Users\ldine\Documents\Development\CBRScanning3\CBRScanning3\bin\Release\Scanners.Shared.dll"; DestDir: "{app}"; Flags: ignoreversion
- Source: "C:\Users\ldine\Documents\Development\CBRScanning3\CBRScanning3\bin\Release\CBRScanning3.exe.config"; DestDir: "{app}"; Flags: ignoreversion
- Source: "C:\Users\ldine\Documents\Development\CBRScanning3\CBRScanning3\Resources\Drivers\Opticon\Csp2.dll"; DestDir: "{app}"; Flags: ignoreversion;
- Source: "C:\Users\ldine\Documents\Development\CBRScanning3\CBRScanning3\Resources\Drivers\Metrologic\mtlgpos2.sys"; DestDir: {win}\inf\;
- Source: "C:\Users\ldine\Documents\Development\CBRScanning3\CBRScanning3\Resources\Drivers\Metrologic\mtlgpos2nt.inf"; DestDir: {win}\inf\;
- Source: "C:\Users\ldine\Documents\Development\CBRScanning3\CBRScanning3\Resources\Drivers\Metrologic\mtlgpos2props.DLL"; DestDir: {win}\inf\;
- Source: "C:\Users\ldine\Documents\Development\CBRScanning3\CBRScanning3\Resources\Drivers\Opticon\USB Drivers Installer.exe"; DestDir: {tmp}; Flags: ignoreversion deleteafterinstall; OnlyBelowVersion: 0,6.1;
- 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;
- 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;
- Source: "C:\Users\ldine\Documents\Development\CBRScanning3\CBRScanning3\Resources\Installation\dotNetFx40_Full_setup.exe"; DestDir: {tmp}; Check: CheckForFramework; Flags: ignoreversion deleteafterinstall
- ; NOTE: Don't use "Flags: ignoreversion" on any shared system files
- [Icons]
- Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
- Name: "{commondesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}";
- Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}";
- [Run]
- 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...
- Filename: {tmp}\USB Drivers Installer.exe; Description: Run Opticon OPN2001 scanner drivers install; StatusMsg: RunningOpticon OPN2001 driver install; Flags: runascurrentuser; OnlyBelowVersion: 0,6.1;
- 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;
- 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;
- 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};
- Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, "&", "&&")}}"; Flags: nowait postinstall skipifsilent
- ; 3 Different exe to run based on OS version
- [Code]
- // check for framework
- Function CheckForFramework : boolean;
- Var
- regresult : cardinal;
- Begin
- RegQueryDWordValue(HKLM, 'Software\Microsoft\NET Framework Setup\NDP\v4\Full', 'Install', regresult);
- If regresult = 0 Then
- Begin
- Result := true;
- End
- Else
- Result := false;
- End;