打包脚本.iss 2.4 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657
  1. ; Script generated by the Inno Setup Script Wizard.
  2. ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
  3. #define MyAppName "PicPanel"
  4. #define MyAppVersion "2.0"
  5. #define MyAppPublisher "Lenn"
  6. #define MyAppURL "https://huangyanjie.com"
  7. #define MyAppExeName "picpanel.exe"
  8. [Setup]
  9. ; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
  10. ; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
  11. AppId={{13350D01-8FED-4820-B13F-20F5591D31F7}
  12. AppName={#MyAppName}
  13. AppVersion={#MyAppVersion}
  14. ;AppVerName={#MyAppName} {#MyAppVersion}
  15. AppPublisher={#MyAppPublisher}
  16. AppPublisherURL={#MyAppURL}
  17. AppSupportURL={#MyAppURL}
  18. AppUpdatesURL={#MyAppURL}
  19. DefaultDirName={autopf}\{#MyAppName}
  20. UninstallDisplayIcon={app}\{#MyAppExeName}
  21. ; "ArchitecturesAllowed=x64compatible" specifies that Setup cannot run
  22. ; on anything but x64 and Windows 11 on Arm.
  23. ArchitecturesAllowed=x64compatible
  24. ; "ArchitecturesInstallIn64BitMode=x64compatible" requests that the
  25. ; install be done in "64-bit mode" on x64 or Windows 11 on Arm,
  26. ; meaning it should use the native 64-bit Program Files directory and
  27. ; the 64-bit view of the registry.
  28. ArchitecturesInstallIn64BitMode=x64compatible
  29. DisableProgramGroupPage=yes
  30. ; Uncomment the following line to run in non administrative install mode (install for current user only).
  31. ;PrivilegesRequired=lowest
  32. OutputDir=C:\Users\Lenn Louis\Desktop
  33. OutputBaseFilename=PicPanel-2.0-x64
  34. SetupIconFile=C:\Users\Lenn Louis\Desktop\appicon.ico
  35. SolidCompression=yes
  36. WizardStyle=modern
  37. [Languages]
  38. Name: "english"; MessagesFile: "compiler:Default.isl"
  39. [Tasks]
  40. Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
  41. [Files]
  42. Source: "C:\Users\Lenn Louis\Desktop\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
  43. Source: "C:\Users\Lenn Louis\Downloads\picpanel\build\Desktop_Qt_6_7_3_MinGW_64_bit-Release\release\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
  44. ; NOTE: Don't use "Flags: ignoreversion" on any shared system files
  45. [Icons]
  46. Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
  47. Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
  48. [Run]
  49. Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent