目录
一、inno setup汉化安装包
百度网盘链接:https://pan.baidu.com/s/1Um8mzB42h_kd7zlH7w3ZKg (提取码:ara1)
二、基本使用
三、我的示例
1.我的程序
2.inno 文件
; 脚本由 Inno Setup 脚本向导 生成!
; 有关创建 Inno Setup 脚本文件的详细资料请查阅帮助文档!
#define MyAppName "人人动图"
#define MyAppVersion "1.0"
#define MyAppPublisher "李朋飞"
#define MyAppURL "http://www.example.com/"
#define MyAppExeName "人人动图.exe"
[Setup]
; 注: AppId的值为单独标识该应用程序。
; 不要为其他安装程序使用相同的AppId值。
; (若要生成新的 GUID,可在菜单中点击 "工具|生成 GUID"。)
AppId={
{138F3A32-BE72-4E45-84BF-0C15F28C72A8}
AppName={#MyAppName}
AppVersion={#MyAppVersion}
;AppVerName={#MyAppName} {#MyAppVersion}
AppPublisher={#MyAppPublisher}
AppPublisherURL={#MyAppURL}
AppSupportURL={#MyAppURL}
AppUpdatesURL={#MyAppURL}
DefaultDirName={autopf}\{#MyAppName}
DisableProgramGroupPage=yes
; 以下行取消注释,以在非管理安装模式下运行(仅为当前用户安装)。
;PrivilegesRequired=lowest
OutputDir=D:\Desktop\新建文件夹
OutputBaseFilename=evtsetup
SetupIconFile=C:\Users\lpf_a\PycharmProjects\VT\img\evt128.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: "D:\Desktop\人人动图\人人动图.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "D:\Desktop\人人动图\*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
Source: "D:\Desktop\人人动图\data\ImageMagick-7.1.0-16-Q16-HDRI-x64-dll.exe"; DestDir: "{app}"; Flags: ignoreversion
Source: "D:\Desktop\人人动图\data\K-Lite_Codec_Pack_1635_Mega.exe"; DestDir: "{app}"; Flags: ignoreversion
; 注意: 不要在任何共享系统文件上使用“Flags: ignoreversion”
[Icons]
Name: "{autoprograms}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"
Name: "{autodesktop}\{#MyAppName}"; Filename: "{app}\{#MyAppExeName}"; Tasks: desktopicon
[Run]
Filename: "{app}\data\ImageMagick-7.1.0-16-Q16-HDRI-x64-dll.exe"; Parameters: "/sw /se "; Check: IsWin64; Flags: runhidden
Filename: "{app}\data\K-Lite_Codec_Pack_1635_Mega.exe"; Parameters: " /sw /se "; Check: IsWin64; Flags: runhidden
Filename: "{app}\{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#StringChange(MyAppName, '&', '&&')}}"; Flags: nowait postinstall skipifsilent
3.安装效果
四、nno setup实现管理员权限
五、报错处理
1.CreateProcess failed;code 2