prsdesktop.iss 2.9 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273747576777879808182838485868788899091929394
  1. ; Script generated by the Inno Setup Script Wizard.
  2. ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
  3. #pragma option -v+
  4. #pragma verboselevel 9
  5. #include "CodeDependencies.iss"
  6. #define public Dependency_Path_NetCoreCheck "dependencies\"
  7. #define MyAppName "PRS Desktop"
  8. #define MyAppVersion "8.20b"
  9. #define MyAppPublisher "PRS Digital"
  10. #define MyAppURL "https://www.prs-software.com.au"
  11. #define MyAppExeName "PRSDesktop.exe"
  12. #define MyOldAppExeName "Comal.Desktop.exe"
  13. [Setup]
  14. ; NOTE: The value of AppId uniquely identifies this application.
  15. ; Do not use the same AppId value in installers for other applications.
  16. ; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
  17. AppId={{89C5E297-7CED-493D-B066-9E95A911470B}
  18. AppName={#MyAppName}
  19. AppVersion={#MyAppVersion}
  20. AppVerName={#MyAppName} {#MyAppVersion}
  21. AppPublisher={#MyAppPublisher}
  22. AppPublisherURL={#MyAppURL}
  23. AppSupportURL={#MyAppURL}
  24. AppUpdatesURL={#MyAppURL}
  25. DefaultDirName={userpf}\{#MyAppName}
  26. DisableProgramGroupPage=yes
  27. OutputDir=C:\Development\prs\prs.server\bin\Debug\net8.0-windows\update
  28. SourceDir=C:\Development\prs\prs.server\..\prs.desktop\
  29. OutputBaseFilename=PRSDesktopSetup
  30. Compression=lzma
  31. SolidCompression=yes
  32. UsePreviousAppDir=no
  33. PrivilegesRequired=lowest
  34. UsePreviousPrivileges=no
  35. ArchitecturesInstallIn64BitMode=x64
  36. [InstallDelete]
  37. Type: files; Name: {app}\Comal*.*
  38. Type: files; Name: {app}\*.dll
  39. Type: files; Name: {userappdata}\PRSDesktop\version.txt
  40. [Tasks]
  41. Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}";
  42. [Files]
  43. Source: "{#Dependency_Path_NetCoreCheck}netcorecheck.exe"; Flags: dontcopy noencryption
  44. Source: "{#Dependency_Path_NetCoreCheck}netcorecheck_x64.exe"; Flags: dontcopy noencryption
  45. Source: "bin\Debug\net8.0-windows\*"; DestDir: "{app}"; Excludes: "version.txt"; Flags: ignoreversion recursesubdirs createallsubdirs; AfterInstall: UpdateVersionNumber
  46. ; Source: "..\prs.logikal\bin\Debug\*"; DestDir: "{app}\PRSLogikal"; Flags: ignoreversion recursesubdirs createallsubdirs;
  47. [Dirs]
  48. Name: "{userappdata}\PRSDesktop"; Flags:
  49. [Icons]
  50. Name: "{userprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
  51. Name: "{userdesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
  52. [Run]
  53. Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
  54. [Setup]
  55. UninstallFilesDir={app}\Installer
  56. [Code]
  57. var
  58. versionupdated : Boolean;
  59. function InitializeSetup: Boolean;
  60. begin
  61. Dependency_AddDotNet80Desktop;
  62. Result := True;
  63. end;
  64. procedure UpdateVersionNumber();
  65. var
  66. version : AnsiString;
  67. filename : String;
  68. begin
  69. if (versionupdated = False) then
  70. begin
  71. version := '{#MyAppVersion}';
  72. filename := ExpandConstant('{app}\version.txt');
  73. SaveStringToFile(filename,version,false);
  74. versionupdated := true;
  75. end;
  76. end;