软件下载
官网下载:https://jrsoftware.org/isdl.php
中文包:https://jrsoftware.org/files/istrans/
汉化教程:https://kira-96.github.io/Inno-Setup-Chinese-Simplified-Translation/
参考文档
- https://www.cnblogs.com/TechNomad/p/16428796.html
- https://jrsoftware.org/ishelp/index.php?topic=taskssection
- https://daief.tech/post/inno-setup
- https://blog.csdn.net/weitaming1/article/details/99690928
- https://www.zhangkang.org/post-99.html
视频教程
- https://www.bilibili.com/video/BV15k4y1R7cL/?p=10&share_source=copy_web&vd_source=78199330a9d556e016b351413d254f2c
- https://www.bilibili.com/video/BV1WKKge3E5K/?share_source=copy_web&vd_source=78199330a9d556e016b351413d254f2c
*
备注
开发ISS脚本可以参考GPT4.
ISS脚本实例
; Script generated by the Inno Setup Script Wizard.
; SEE THE DOCUMENTATION FOR DETAILS ON CREATING INNO SETUP SCRIPT FILES!
#define MyAppName "ProxyTool"
#define MyAppVersion "1.0"
#define MyAppPublisher "Xiao"
#define MyAppURL "https://duangks.com/"
[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={{7D174F3F-9EC7-4BF2-86D2-26B1C3D08C1D}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={autopf}\{#MyAppName}
DefaultGroupName={#MyAppName}
; Uncomment the following line to run in non administrative install mode (install for current user only).
;PrivilegesRequired=lowest
OutputDir=C:\Users\xiaoshangxian\Downloads
OutputBaseFilename=mysetup
SolidCompression=yes
WizardStyle=modern
[Languages]
Name: "chinesesimplified"; MessagesFile: "compiler:Languages\ChineseSimplified.isl"
[Files]
Source: "D:\SoftwareData\packege\windowsdesktop-runtime-8.0.16-win-x64.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "D:\SoftwareData\packege\Clash.Verge_2.2.3_x64-setup.exe"; DestDir: "{app}\Clash"; Flags: ignoreversion
Source: "D:\SoftwareData\packege\subconverter\*"; DestDir: "{app}\Sub"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "D:\SoftwareData\packege\v2rayN-windows-64\*"; DestDir: "{app}\V2ray"; Flags: ignoreversion recursesubdirs createallsubdirs
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
[Icons]
Name: "{group}\{cm:UninstallProgram,{#MyAppName}}"; Filename: "{uninstallexe}"
Name: "{commondesktop}\V2rayN"; Filename: "{app}\V2ray\v2rayN.exe"
Name: "{commondesktop}\subconverter"; Filename: "{app}\Sub\subconverter.exe"
[Run]
; 运行 Clash 的安装程序,并添加静默安装命令(确保参数是正确的)
Filename: "{app}\Clash\Clash.Verge_2.2.3_x64-setup.exe"; Parameters: "/S /D={app}\Clash"; StatusMsg: "正在安装 Clash..."; Flags: runhidden waituntilterminated
Filename: "{app}\windowsdesktop-runtime-8.0.16-win-x64.exe"; Parameters: "/quiet /norestart"; StatusMsg: "正在安装 .NET Desktop 运行环境"; Flags: runhidden waituntilterminated
[UninstallRun]
Filename: "{app}\Clash\uninstall.exe"; Parameters: "/S"; Flags: runhidden waituntilterminated
[Code]
procedure CurStepChanged(CurStep: TSetupStep);
var
clashInstaller, dotnetInstaller: string;
begin
if CurStep = ssPostInstall then
begin
clashInstaller := ExpandConstant('{app}\Clash\Clash.Verge_2.2.3_x64-setup.exe');
dotnetInstaller := ExpandConstant('{app}\windowsdesktop-runtime-8.0.16-win-x64.exe');
DeleteFile(clashInstaller);
DeleteFile(dotnetInstaller);
end;
end;