installer-setup-x86-light.iss 3.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263
  1. ; Script generated by the Inno Setup Script Wizard.
  2. ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
  3. #define MyAppName "PixiEditor"
  4. #define MyAppVersion GetFileVersion("..\Builds\PixiEditor-x86-light\PixiEditor\PixiEditor.exe") ;Not perfect solution, it's enviroment dependend
  5. #define MyAppPublisher "PixiEditor"
  6. #define MyAppURL "https://github.com/PixiEditor/PixiEditor"
  7. #define MyAppExeName "PixiEditor.exe"
  8. #define TargetPlatform "x86-light"
  9. [Setup]
  10. ; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
  11. ; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
  12. AppId={{83DE4F2A-1F75-43AE-9546-3184F1C44517}
  13. AppName={#MyAppName}
  14. AppVersion={#MyAppVersion}
  15. AppVerName={#MyAppName} {#MyAppVersion}
  16. VersionInfoVersion={#MyAppVersion}
  17. AppPublisher={#MyAppPublisher}
  18. AppPublisherURL={#MyAppURL}
  19. AppSupportURL={#MyAppURL}
  20. AppUpdatesURL={#MyAppURL}
  21. DefaultDirName={autopf}\{#MyAppName}
  22. DisableProgramGroupPage=yes
  23. ; The [Icons] "quicklaunchicon" entry uses {userappdata} but its [Tasks] entry has a proper IsAdminInstallMode Check.
  24. UsedUserAreasWarning=no
  25. LicenseFile=..\LICENSE
  26. ; Uncomment the following line to run in non administrative install mode (install for current user only.)
  27. ;PrivilegesRequired=lowest
  28. OutputDir=Assets\PixiEditor-{#TargetPlatform}
  29. OutputBaseFilename=PixiEditor-{#MyAppVersion}-setup-{#TargetPlatform}
  30. SetupIconFile=..\icon.ico
  31. Compression=lzma
  32. SolidCompression=yes
  33. WizardStyle=modern
  34. ChangesAssociations = yes
  35. [Languages]
  36. Name: "english"; MessagesFile: "compiler:Default.isl"
  37. [Tasks]
  38. Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
  39. Name: "quicklaunchicon"; Description: "{cm:CreateQuickLaunchIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked; OnlyBelowVersion: 6.1; Check: not IsAdminInstallMode
  40. [Files]
  41. Source: "..\Builds\PixiEditor-{#TargetPlatform}\PixiEditor\PixiEditor.exe"; DestDir: "{app}"; Flags: ignoreversion
  42. Source: "..\Builds\PixiEditor-{#TargetPlatform}\PixiEditor\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
  43. ; NOTE: Don't use "Flags: ignoreversion" on any shared system files
  44. [Icons]
  45. Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
  46. Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
  47. Name: "{userappdata}\Microsoft\Internet Explorer\Quick Launch\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: quicklaunchicon
  48. [Run]
  49. Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
  50. [Registry]
  51. Root: HKCR; Subkey: ".pixi"; ValueData: "{#MyAppName}"; Flags: uninsdeletevalue; ValueType: string; ValueName: ""
  52. Root: HKCR; Subkey: "{#MyAppName}"; ValueData: "Program {#MyAppName}"; Flags: uninsdeletekey; ValueType: string; ValueName: ""
  53. Root: HKCR; Subkey: "{#MyAppName}\DefaultIcon"; ValueData: "{app}\{#MyAppExeName},0"; ValueType: string; ValueName: ""
  54. Root: HKCR; Subkey: "{#MyAppName}\shell\open\command"; ValueData: """{app}\{#MyAppExeName}"" ""%1"""; ValueType: string; ValueName: ""