12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394 |
- ; Script generated by the Inno Setup Script Wizard.
- ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
- #pragma option -v+
- #pragma verboselevel 9
- #include "CodeDependencies.iss"
- #define public Dependency_Path_NetCoreCheck "dependencies\"
- #define MyAppName "PRS Desktop"
- #define MyAppVersion "8.20b"
- #define MyAppPublisher "PRS Digital"
- #define MyAppURL "https://www.prs-software.com.au"
- #define MyAppExeName "PRSDesktop.exe"
- #define MyOldAppExeName "Comal.Desktop.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={{89C5E297-7CED-493D-B066-9E95A911470B}
- AppName={#MyAppName}
- AppVersion={#MyAppVersion}
- AppVerName={#MyAppName} {#MyAppVersion}
- AppPublisher={#MyAppPublisher}
- AppPublisherURL={#MyAppURL}
- AppSupportURL={#MyAppURL}
- AppUpdatesURL={#MyAppURL}
- DefaultDirName={userpf}\{#MyAppName}
- DisableProgramGroupPage=yes
- OutputDir=C:\Development\prs\prs.server\bin\Debug\net8.0-windows\update
- SourceDir=C:\Development\prs\prs.server\..\prs.desktop\
- OutputBaseFilename=PRSDesktopSetup
- Compression=lzma
- SolidCompression=yes
- UsePreviousAppDir=no
- PrivilegesRequired=lowest
- UsePreviousPrivileges=no
- ArchitecturesInstallIn64BitMode=x64
- [InstallDelete]
- Type: files; Name: {app}\Comal*.*
- Type: files; Name: {app}\*.dll
- Type: files; Name: {userappdata}\PRSDesktop\version.txt
- [Tasks]
- Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}";
- [Files]
- Source: "{#Dependency_Path_NetCoreCheck}netcorecheck.exe"; Flags: dontcopy noencryption
- Source: "{#Dependency_Path_NetCoreCheck}netcorecheck_x64.exe"; Flags: dontcopy noencryption
- Source: "bin\Debug\net8.0-windows\*"; DestDir: "{app}"; Excludes: "version.txt"; Flags: ignoreversion recursesubdirs createallsubdirs; AfterInstall: UpdateVersionNumber
- ; Source: "..\prs.logikal\bin\Debug\*"; DestDir: "{app}\PRSLogikal"; Flags: ignoreversion recursesubdirs createallsubdirs;
- [Dirs]
- Name: "{userappdata}\PRSDesktop"; Flags:
- [Icons]
- Name: "{userprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
- Name: "{userdesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
- [Run]
- Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
- [Setup]
- UninstallFilesDir={app}\Installer
- [Code]
- var
- versionupdated : Boolean;
- function InitializeSetup: Boolean;
- begin
- Dependency_AddDotNet80Desktop;
- Result := True;
- end;
- procedure UpdateVersionNumber();
- var
- version : AnsiString;
- filename : String;
- begin
- if (versionupdated = False) then
- begin
- version := '{#MyAppVersion}';
- filename := ExpandConstant('{app}\version.txt');
- SaveStringToFile(filename,version,false);
- versionupdated := true;
- end;
- end;
|