setup.iss 2.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253
  1. ; Script generated by the Inno Setup Script Wizard.
  2. ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
  3. #define MyAppName "Strange Pixels Editor"
  4. #define MyAppVersion "InDev"
  5. #define MyAppExeName "sPixels.exe"
  6. #define MyAppAssocName "Strange Pixels Image"
  7. #define MyAppAssocExt ".spixels"
  8. #define MyAppAssocKey StringChange(MyAppAssocName, " ", "") + MyAppAssocExt
  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={{acd10604-fbb2-4b21-a60b-8bcf918f4c76}
  13. AppName={#MyAppName}
  14. AppVersion={#MyAppVersion}
  15. ;AppVerName={#MyAppName} {#MyAppVersion}
  16. DefaultDirName={autopf}\{#MyAppName}
  17. ChangesAssociations=yes
  18. DisableProgramGroupPage=yes
  19. ; Uncomment the following line to run in non administrative install mode (install for current user only.)
  20. ;PrivilegesRequired=lowest
  21. OutputBaseFilename=StrangePixelsSetup
  22. Compression=lzma
  23. SolidCompression=yes
  24. WizardStyle=modern
  25. [Languages]
  26. Name: "english"; MessagesFile: "compiler:Default.isl"
  27. [Tasks]
  28. Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
  29. [Files]
  30. Source: ".\output\sPixels\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
  31. Source: ".\output\sPixels\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
  32. ; NOTE: Don't use "Flags: ignoreversion" on any shared system files
  33. [Registry]
  34. Root: HKA; Subkey: "Software\Classes\{#MyAppAssocExt}\OpenWithProgids"; ValueType: string; ValueName: "{#MyAppAssocKey}"; ValueData: ""; Flags: uninsdeletevalue
  35. Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}"; ValueType: string; ValueName: ""; ValueData: "{#MyAppAssocName}"; Flags: uninsdeletekey
  36. Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}\DefaultIcon"; ValueType: string; ValueName: ""; ValueData: "{app}\{#MyAppExeName},0"
  37. Root: HKA; Subkey: "Software\Classes\{#MyAppAssocKey}\shell\open\command"; ValueType: string; ValueName: ""; ValueData: """{app}\{#MyAppExeName}"" ""%1"""
  38. Root: HKA; Subkey: "Software\Classes\Applications\{#MyAppExeName}\SupportedTypes"; ValueType: string; ValueName: ".myp"; ValueData: ""
  39. [Icons]
  40. Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
  41. Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
  42. [Run]
  43. Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent