软件下载

官网下载:https://jrsoftware.org/isdl.php

中文包:https://jrsoftware.org/files/istrans/

汉化教程:https://kira-96.github.io/Inno-Setup-Chinese-Simplified-Translation/

参考文档

视频教程

备注

开发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;
最后修改:2025 年 08 月 07 日
快来和我交易吧。