Inno打包软件脚本例子

; 脚本由 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

 

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值