setup.iss 1.6 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445
  1. ; 脚本由 Inno Setup 脚本向导 生成!
  2. ; 有关创建 Inno Setup 脚本文件的详细资料请查阅帮助文档!
  3. #define MyAppName "WorkTime"
  4. #define MyAppVersion "1.6"
  5. #define MyAppPublisher "南京火石闪信网络科技有限公司"
  6. #define MyAppExeName "MyProg.exe"
  7. [Setup]
  8. ; 注: AppId的值为单独标识该应用程序。
  9. ; 不要为其他安装程序使用相同的AppId值。
  10. ; (若要生成新的 GUID,可在菜单中点击 "工具|生成 GUID"。)
  11. AppId={{C8AD2873-2374-4415-8996-5CDCFF8711BD}
  12. AppName={#MyAppName}
  13. AppVersion={#MyAppVersion}
  14. ;AppVerName={#MyAppName} {#MyAppVersion}
  15. AppPublisher={#MyAppPublisher}
  16. DefaultDirName={autopf}\{#MyAppName}
  17. DisableProgramGroupPage=yes
  18. ; 以下行取消注释,以在非管理安装模式下运行(仅为当前用户安装)。
  19. ;PrivilegesRequired=lowest
  20. OutputDir=C:\Users\seya\Desktop
  21. OutputBaseFilename=WorkTime
  22. SetupIconFile=C:\gitproject\manHourHousekeeper\fhKeeper\formulahousekeeper\mywork\favicon.ico
  23. Compression=lzma
  24. SolidCompression=yes
  25. WizardStyle=modern
  26. [Languages]
  27. Name: "chinesesimp"; MessagesFile: "compiler:Default.isl"
  28. [Tasks]
  29. Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
  30. [Files]
  31. Source: "C:\Users\seya\Desktop\SmartTimeClient\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
  32. ; 注意: 不要在任何共享系统文件上使用“Flags: ignoreversion”
  33. [Icons]
  34. Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
  35. Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
  36. [Run]
  37. Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent