| 123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293 | 
							- ; 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.06"
 
- #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
 
- [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;
 
 
  |