-
Notifications
You must be signed in to change notification settings - Fork 101
/
inno_setup.iss
51 lines (42 loc) · 1.73 KB
/
inno_setup.iss
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
45
46
47
48
49
50
51
; 用于打包 exe 安装程序
; Inno Setup: https://zaxtyson.lanzouf.com/iVTrC02i5lzc
#define MyAppName "蓝奏云控制台"
#define MyAppVersion "2.6.8"
#define MyAppPublisher "zaxtyson"
#define MyAppURL "https://github.com/zaxtyson/LanZouCloud-CMD"
#define MyAppExeName "lanzou-cmd.exe"
#define PackSourceDir "C:\Users\zaxtyson\PycharmProjects\LanZouCloud-CMD\dist\lanzou-cmd"
#define PackOutputDir "C:\Users\zaxtyson\PycharmProjects\LanZouCloud-CMD\dist"
#define PackOutputAppName "lanzou-cmd_x64_v2.6.8"
[Setup]
AppId={{27D10ED2-13D0-420D-A602-39D1386872D0}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={autopf}\lanzou
DisableDirPage=no
DisableProgramGroupPage=yes
PrivilegesRequired=lowest
OutputDir={#PackOutputDir}
OutputBaseFilename={#PackOutputAppName}
SetupIconFile={#PackSourceDir}\logo.ico
Compression=lzma
SolidCompression=yes
WizardStyle=modern
[Languages]
Name: "chinesesimp"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: "{#PackSourceDir}\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "{#PackSourceDir}\user.dat"; DestDir: "{app}"; Flags: ignoreversion; Permissions: users-modify
[Icons]
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
[Run]
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
[UninstallDelete]
Type: filesandordirs; Name: "{app}"