PRSServer.iss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778
  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. #define MyAppName "PRS Server"
  6. #define MyAppVersion "7.65a"
  7. #define MyAppPublisher "PRS Digital"
  8. #define MyAppURL "https://www.prs-software.com.au"
  9. #define MyAppExeName "PRSServer.exe"
  10. [Setup]
  11. ; NOTE: The value of AppId uniquely identifies this application.
  12. ; Do not use the same AppId value in installers for other applications.
  13. ; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
  14. AppId={{832E3B50-6076-4978-B758-E570576565CF}
  15. AppName={#MyAppName}
  16. AppVersion={#MyAppVersion}
  17. AppVerName={#MyAppName} {#MyAppVersion}
  18. AppPublisher={#MyAppPublisher}
  19. AppPublisherURL={#MyAppURL}
  20. AppSupportURL={#MyAppURL}
  21. AppUpdatesURL={#MyAppURL}
  22. DefaultDirName={pf}\{#MyAppName}
  23. DisableProgramGroupPage=yes
  24. OutputDir=C:\Development\prs\prs.server\
  25. SourceDir=C:\Development\prs\prs.server\
  26. OutputBaseFilename=PRSServerSetup
  27. Compression=lzma
  28. SolidCompression=yes
  29. SetupLogging=yes
  30. CloseApplications=force
  31. ; ArchitecturesInstallIn64BitMode=x64
  32. [Languages]
  33. Name: "english"; MessagesFile: "compiler:Default.isl"
  34. [Tasks]
  35. Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}";
  36. [InstallDelete]
  37. Type: files; Name: {userappdata}\PRSServer\version.txt
  38. [Files]
  39. Source: "bin\Debug\net6.0-windows\*.*"; Excludes: "ServerSettings.settings, version.txt"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs; AfterInstall: UpdateVersionNumber
  40. [Dirs]
  41. Name: "{userappdata}\PRSServer\";
  42. [Icons]
  43. Name: "{userprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
  44. Name: "{userdesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
  45. [Run]
  46. Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
  47. [Code]
  48. var
  49. versionupdated : Boolean;
  50. procedure UpdateVersionNumber();
  51. var
  52. version : AnsiString;
  53. filename : String;
  54. filename_update : String;
  55. begin
  56. if (versionupdated = False) then
  57. begin
  58. version := '{#MyAppVersion}';
  59. filename := ExpandConstant('{app}\version.txt');
  60. SaveStringToFile(filename,version,false);
  61. filename_update := ExpandConstant('{app}\update\version.txt');
  62. SaveStringToFile(filename_update,version,false);
  63. versionupdated := true;
  64. end;
  65. end;