-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup.iss
More file actions
44 lines (38 loc) · 1.75 KB
/
Copy pathsetup.iss
File metadata and controls
44 lines (38 loc) · 1.75 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
#define MyAppName "ForcedBreak"
#define MyAppVersion "1.0.3"
#define MyAppPublisher "Leon Chen"
#define MyAppExeName "ForcedBreak.exe"
#define SourceCodeDir "C:\Users\Leon\Documents\Codes\Company\ForcedBreak"
#define SourceDir "C:\Users\Leon\Documents\Codes\Company\ForcedBreak\ForcedBreak"
[Setup]
; AppId 用来标识同一个程序的不同版本,升级时靠它识别旧版本
; 在 Inno Setup 菜单 Tools > Generate GUID 生成一个,之后版本迭代不要再改
AppId={{C27281B4-213B-4E93-AEC9-6B47E021B909}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
AppPublisher={#MyAppPublisher}
DefaultDirName={localappdata}\Programs\{#MyAppName}
DefaultGroupName={#MyAppName}
OutputDir={#SourceCodeDir}\installer
OutputBaseFilename=ForcedBreak_installer_{#MyAppVersion}
Compression=lzma2/max
SolidCompression=yes
WizardStyle=modern
ArchitecturesAllowed=x64compatible
PrivilegesRequired=lowest
UninstallDisplayIcon={app}\{#MyAppExeName}
; 安装向导与"添加/删除程序"里显示的图标,与 exe 内嵌的是同一个
SetupIconFile={#SourceCodeDir}\assets\icons\forcedbreak.ico
[Languages]
Name: "chinese"; MessagesFile: "compiler:Languages\ChineseSimplified.isl"
Name: "english"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "创建桌面快捷方式"; GroupDescription: "附加任务:"
[Files]
Source: "{#SourceDir}\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
[Icons]
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{group}\卸载 {#MyAppName}"; Filename: "{uninstallexe}"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "立即运行 {#MyAppName}"; Flags: nowait postinstall skipifsilent