; 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.43e" #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=x64compatible [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; Source: "..\PRS.Avalonia\PRS.Avalonia.Desktop\bin\x64\Debug\net8.0-windows10.0.19041.0\*"; DestDir: "{app}\PRSAvalonia"; Flags: ignoreversion recursesubdirs createallsubdirs; Source: "..\PRS.DigitalKey\Prs.DigitalKey.Desktop\bin\x64\Debug\net8.0-windows10.0.19041.0\*"; DestDir: "{app}\PRSDigitalKey"; 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;