forked from BH4ME/COM-SERIAL_MONITOR
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathsetup_com_monitor.iss
More file actions
37 lines (31 loc) · 1.76 KB
/
Copy pathsetup_com_monitor.iss
File metadata and controls
37 lines (31 loc) · 1.76 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
; SerialMonitor 安装包脚本,自动集成 com0com 驱动,支持自动检测、静默安装、卸载清理
[Setup]
AppName=SerialMonitor
AppVersion=1.0
DefaultDirName={pf}\SerialMonitor
DefaultGroupName=SerialMonitor
OutputDir=.
OutputBaseFilename=SerialMonitorSetup
Compression=lzma
SolidCompression=yes
UninstallDisplayIcon={app}\SerialMonitor.exe
PrivilegesRequired=admin
[Files]
Source: "src\build\Desktop_Qt_6_9_1_MinGW_64_bit-Debug\SerialMonitor.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "com0com\\Setup_com0com_v3.0.0.0_W7_x64_signed.exe"; DestDir: "{tmp}"; Flags: ignoreversion
Source: "com0com\\Setup_com0com_v3.0.0.0_W7_x86_signed.exe"; DestDir: "{tmp}"; Flags: ignoreversion
Source: "com0com\\setupc.exe"; DestDir: "{app}\\com0com"; Flags: ignoreversion
[Run]
; 64位系统用x64安装包,32位系统用x86安装包
Filename: "{tmp}\\Setup_com0com_v3.0.0.0_W7_x64_signed.exe"; Parameters: "/SILENT"; StatusMsg: "正在安装虚拟串口驱动(64位)..."; Flags: waituntilterminated; Check: Is64BitInstallMode
Filename: "{tmp}\\Setup_com0com_v3.0.0.0_W7_x86_signed.exe"; Parameters: "/SILENT"; StatusMsg: "正在安装虚拟串口驱动(32位)..."; Flags: waituntilterminated; Check: not Is64BitInstallMode
[Icons]
Name: "{group}\SerialMonitor"; Filename: "{app}\SerialMonitor.exe"
Name: "{group}\卸载 SerialMonitor"; Filename: "{uninstallexe}"
[UninstallDelete]
Type: filesandordirs; Name: "{app}\\com0com"
; 如需设置环境变量,可加如下(可选,setupc.exe 只要在程序目录即可)
; [Run]
; Filename: "cmd.exe"; Parameters: "/C setx PATH \"{olddata};{app}\com0com\" /M"; StatusMsg: "正在设置com0com环境变量..."; Flags: runhidden
; [UninstallRun]
; Filename: "cmd.exe"; Parameters: "/C setx PATH \"{olddata}\" /M"; Flags: runhidden