install.iss 2.5 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152
  1. ; Script generated by the Inno Setup Script Wizard.
  2. ; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
  3. #define MyAppName "Zhong Ye Hyper Vision Remote Control System"
  4. #define MyAppVersion "1.0"
  5. #define MyAppExeName "zhongye.exe"
  6. #define MyAppAssocName MyAppName + " File"
  7. #define MyAppAssocExt ".myp"
  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={{08D056EC-A432-44E0-9758-E59C5E12EAC6}
  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=中冶超视距远程操控系统
  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: "D:\Qt_run\debug\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
  31. Source: "D:\Qt_run\debug\*"; 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