mirror of
https://github.com/LHY0125/PathEditor.git
synced 2026-05-10 02:09:46 +08:00
feat(installer): 添加Inno Setup安装脚本并调整对话框按钮尺寸
- 新增dist/installer.iss用于生成Windows安装程序 - 将自定义输入对话框的按钮尺寸从80x25调整为100x32以改善视觉效果 - 删除不再使用的path_list.txt文件
This commit is contained in:
Vendored
+49
@@ -0,0 +1,49 @@
|
|||||||
|
; Script generated by Trae AI
|
||||||
|
|
||||||
|
#define MyAppName "Path Editor"
|
||||||
|
#define MyAppVersion "1.0"
|
||||||
|
#define MyAppPublisher "My Company"
|
||||||
|
#define MyAppURL "https://www.example.com/"
|
||||||
|
#define MyAppExeName "PathEditor.exe"
|
||||||
|
|
||||||
|
[Setup]
|
||||||
|
; NOTE: The value of AppId uniquely identifies this application. Do not use the same AppId value in installers for other applications.
|
||||||
|
; (To generate a new GUID, click Tools | Generate GUID inside the IDE.)
|
||||||
|
AppId={{A3F29B10-1234-5678-9ABC-DEF012345678}
|
||||||
|
AppName={#MyAppName}
|
||||||
|
AppVersion={#MyAppVersion}
|
||||||
|
;AppVerName={#MyAppName} {#MyAppVersion}
|
||||||
|
AppPublisher={#MyAppPublisher}
|
||||||
|
AppPublisherURL={#MyAppURL}
|
||||||
|
AppSupportURL={#MyAppURL}
|
||||||
|
AppUpdatesURL={#MyAppURL}
|
||||||
|
DefaultDirName={autopf}\{#MyAppName}
|
||||||
|
DefaultGroupName={#MyAppName}
|
||||||
|
AllowNoIcons=yes
|
||||||
|
; Uncomment the following line to run in non administrative install mode (install for current user only.)
|
||||||
|
;PrivilegesRequired=lowest
|
||||||
|
OutputDir=d:\Code\doing_exercises\exercise\系统PATH\dist\dist
|
||||||
|
OutputBaseFilename=PathEditorSetup
|
||||||
|
Compression=lzma
|
||||||
|
SolidCompression=yes
|
||||||
|
WizardStyle=modern
|
||||||
|
|
||||||
|
[Languages]
|
||||||
|
Name: "english"; MessagesFile: "compiler:Default.isl"
|
||||||
|
;Name: "chinesesimplified"; MessagesFile: "compiler:Languages\ChineseSimplified.isl"
|
||||||
|
|
||||||
|
[Tasks]
|
||||||
|
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
|
||||||
|
|
||||||
|
[Files]
|
||||||
|
Source: "d:\Code\doing_exercises\exercise\系统PATH\bin\{#MyAppExeName}"; DestDir: "{app}"; Flags: ignoreversion
|
||||||
|
Source: "d:\Code\doing_exercises\exercise\系统PATH\bin\*.dll"; DestDir: "{app}"; Flags: ignoreversion
|
||||||
|
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
|
||||||
|
|
||||||
|
[Icons]
|
||||||
|
Name: "{group}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
|
||||||
|
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
|
||||||
|
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
|
||||||
|
|
||||||
|
[Run]
|
||||||
|
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
|
||||||
@@ -1,59 +0,0 @@
|
|||||||
C:\Program Files\Common Files\Oracle\Java\javapath
|
|
||||||
C:\Program Files\dotnet
|
|
||||||
C:\Program Files\Microsoft SQL Server\150\Tools\Binn
|
|
||||||
C:\Program Files\Microsoft SQL Server\Client SDK\ODBC\170\Tools\Binn
|
|
||||||
C:\Program Files\nodejs
|
|
||||||
C:\Program Files\NVIDIA Corporation\Nsight Compute 2022.1.0
|
|
||||||
C:\Program Files\NVIDIA Corporation\NVIDIA app\NvDLISR
|
|
||||||
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\bin
|
|
||||||
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\include
|
|
||||||
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\lib
|
|
||||||
C:\Program Files\NVIDIA GPU Computing Toolkit\CUDA\v11.6\libnvvp
|
|
||||||
C:\Program Files (x86)\NVIDIA Corporation\PhysX\Common
|
|
||||||
C:\Program Files (x86)\Windows Kits\10\Windows Performance Toolkit
|
|
||||||
C:\WINDOWS
|
|
||||||
C:\WINDOWS\system32
|
|
||||||
C:\WINDOWS\System32\OpenSSH
|
|
||||||
C:\WINDOWS\System32\Wbem
|
|
||||||
C:\WINDOWS\System32\WindowsPowerShell\v1.0
|
|
||||||
C:\Users\33644\.dotnet\tools
|
|
||||||
C:\Users\33644\AppData\Local\Microsoft\WindowsApps
|
|
||||||
C:\Users\33644\AppData\Local\Programs\Python\Python38
|
|
||||||
C:\Users\33644\AppData\Local\Programs\Python\Python38\Scripts
|
|
||||||
C:\Users\33644\AppData\Roaming\npm
|
|
||||||
D:\Microsoft VS Code\bin
|
|
||||||
D:\PowerShell\PowerShell-7.5.4
|
|
||||||
D:\Program Files (x86)\Graphviz\bin
|
|
||||||
D:\Program Files (x86)\Inno Setup 6
|
|
||||||
D:\Program Files (x86)\NSIS\Bin
|
|
||||||
D:\Program Files (x86)\VMware\VMware Workstation\bin
|
|
||||||
D:\Program Files\cmake\bin
|
|
||||||
D:\Program Files\JetBrains\PyCharm 2024.1.6\bin
|
|
||||||
D:\ProgramData\anaconda3
|
|
||||||
D:\ProgramData\anaconda3\bin
|
|
||||||
D:\ProgramData\anaconda3\condabin
|
|
||||||
D:\ProgramData\anaconda3\Library\bin
|
|
||||||
D:\ProgramData\anaconda3\Library\usr\bin
|
|
||||||
D:\ProgramData\anaconda3\Scripts
|
|
||||||
D:\Python\Python3.8
|
|
||||||
D:\Python\Python3.8\Scripts
|
|
||||||
D:\settings\Git\cmd
|
|
||||||
D:\settings\Java\jdk-25.0.1\bin
|
|
||||||
D:\settings\Java\jdk-25.0.1\jre\bin
|
|
||||||
D:\settings\MATLAB\R2024a\bin
|
|
||||||
D:\settings\MATLAB\R2024a\runtime\win64
|
|
||||||
D:\settings\mingw64\bin
|
|
||||||
D:\settings\MySQL\MySQL Server 8.0\bin
|
|
||||||
D:\settings\MySQL\MySQL Shell 8.0\bin
|
|
||||||
D:\settings\settings\apache-maven-3.9.6\bin
|
|
||||||
D:\settings\settings\libs\ffmpeg-8.0.1-essentials_build\bin
|
|
||||||
D:\settings\settings\libs\GitHub CLI
|
|
||||||
D:\settings\settings\libs\SDL\SDL3-3.2.22\x86_64-w64-mingw32\bin
|
|
||||||
D:\settings\settings\libs\SDL\SDL3_image-3.2.4\x86_64-w64-mingw32\bin
|
|
||||||
D:\settings\settings\libs\uv-x86_64-pc-windows-msvc
|
|
||||||
D:\settings\settings\PuTTY
|
|
||||||
D:\settings\settings\Scoop\apps\iperf\iperf3.exe
|
|
||||||
D:\settings\settings\Scoop\shims
|
|
||||||
D:\settings\TortoiseGit\bin
|
|
||||||
D:\texlive\2025\bin\windows
|
|
||||||
D:\texlive\2025\bin\windows\xelatex.exe
|
|
||||||
+2
-3
@@ -92,12 +92,11 @@ int custom_input_dialog(const char *title, const char *label_text, char *buffer,
|
|||||||
|
|
||||||
Ihandle *btn_ok = IupButton("确定", NULL);
|
Ihandle *btn_ok = IupButton("确定", NULL);
|
||||||
IupSetCallback(btn_ok, "ACTION", on_dialog_ok);
|
IupSetCallback(btn_ok, "ACTION", on_dialog_ok);
|
||||||
IupSetAttribute(btn_ok, "RASTERSIZE", "80x25");
|
IupSetAttribute(btn_ok, "RASTERSIZE", "100x32");
|
||||||
// 设置为默认按钮
|
|
||||||
|
|
||||||
Ihandle *btn_cancel = IupButton("取消", NULL);
|
Ihandle *btn_cancel = IupButton("取消", NULL);
|
||||||
IupSetCallback(btn_cancel, "ACTION", on_dialog_cancel);
|
IupSetCallback(btn_cancel, "ACTION", on_dialog_cancel);
|
||||||
IupSetAttribute(btn_cancel, "RASTERSIZE", "80x25");
|
IupSetAttribute(btn_cancel, "RASTERSIZE", "100x32");
|
||||||
|
|
||||||
Ihandle *vbox = IupVbox(
|
Ihandle *vbox = IupVbox(
|
||||||
IupLabel(label_text),
|
IupLabel(label_text),
|
||||||
|
|||||||
Reference in New Issue
Block a user