; 脚本由 Inno Setup 脚本向导 生成!
; 有关创建 Inno Setup 脚本文件的详细资料请查阅帮助文档!
#define MyAppName "软件名"
#define MyAppVerName "软件名"
#define MyAppPublisher "公司名"
#define MyAppExeName "软件名.exe"
#define MySetupFilesPath "E:/软件目前放置的目录/"
;改版本号
#define AppVersion GetFileVersion(AddBackslash("E:/软件目前放置的目录/") + "软件名.exe")
;改版本号
[Setup]
AppName={#MyAppName}
AppVerName={#MyAppVerName}
AppPublisher={#MyAppPublisher}
DefaultDirName=c:/{#MyAppName}
DefaultGroupName={#MyAppName}
AllowNoIcons=yes
OutputDir=E:/放置在什么文件夹/Teste
OutputBaseFilename=打包后的文件名_Setup
;改版本号
Compression=lzma
SolidCompression=yes
VersionInfoVersion={#AppVersion}
[Languages]
Name: "chinesesimp"; MessagesFile: "compiler:Default.isl"
[Tasks]
Name: "desktopicon"; Description: "{cm:CreateDesktopIcon}"; GroupDescription: "{cm:AdditionalIcons}"; Flags: unchecked
[Files]
Source: "{#MySetupFilesPath}*"; DestDir: "{app}"; Flags: ignoreversion recursesubdirs createallsubdirs
; 注意: 不要在任何共享系统文件上使用“Flags: ignoreversion” 该目录下所有文件均打包
[Icons]
Name: "{group}/{#MyAppName}"; Filename: "{app}/{#MyAppExeName}" ;WorkingDir: "{app}" ;指定生成的快捷方式中的初始化路径
Name: "{commondesktop}/{#MyAppName}"; Filename: "{app}/{#MyAppExeName}"; Tasks: desktopicon ;WorkingDir: "{app}"
[Run]
Filename: "{app}/{#MyAppExeName}"; Description: "{cm:LaunchProgram,{#MyAppName}}"; Flags: nowait postinstall skipifsilent