[Setup]
AppName=安装包程序名称
AppVerName=安装包程序名称
AppVersion=版本号
AppPublisher=发布者名称
AppPublisherURL=发布的网址
AppSupportURL=支持的网址
AppUpdatesURL=更新的网址
DefaultDirName={pf}\gsip\(默认安装的路径)
DisableDirPage=false(修改安装目录是否设为不启用)
DefaultGroupName=安装程序包组名称
DisableProgramGroupPage=true
WindowResizable=false
WindowVisible=true
;WizardSmallImageFile=安装程序包的图标
AppCopyright=版权信息
PrivilegesRequired=admin(默认以管理身份运行)
AppMutex=
AppID=
VersionInfoVersion=版本号
OutputDir=安装包输出目录
OutputBaseFilename=安装包基本名称
[Tasks] ;桌面上增加的应用程序的图标
; NOTE: The following entry contains English phrases ("Create a desktop icon" and "Additional icons"). You are free to translate them into another language if required.
[Files]
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
; config directory file source
;Source: .\*.txt; DestDir: {app}; Flags: ignoreversion restartreplace; Components: SIMPLE
[Icons]
; 开始菜单中增加的快捷方式
Name: "{group}\应用程序目录名称\应用程序名称"; Filename: "{app}\应用程序目录名称\应用程序名称" ;WorkingDir: "{app}\应用程序目录名称\"
Name: "{group}\{cm:UninstallProgram,应用程序组名}"; Filename: "{uninstallexe}"
Filename:{app}\需运行的程序目录\需运行的程序; Flags: skipifdoesntexist; WorkingDir: {app}\工作的目录 ; Components: SIMPLE
[Types]
;Name: 完全安装; Description: 完全安装
;Name: 简洁安装; Description: 简洁安装
Name: 补丁安装; Description: 补丁安装
[Components]
;Name: ALL; Description: 完全安装; Types: 完全安装;
Name: SIMPLE; Description: 补丁安装; Types: 补丁安装; Flags: fixed
[_ISTool]
Use7zip=false
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueType: string; ValueName: "注册项名称"; ValueData: "{app}\注册目录"; Flags: uninsdeletevalue
AppName=安装包程序名称
AppVerName=安装包程序名称
AppVersion=版本号
AppPublisher=发布者名称
AppPublisherURL=发布的网址
AppSupportURL=支持的网址
AppUpdatesURL=更新的网址
DefaultDirName={pf}\gsip\(默认安装的路径)
DisableDirPage=false(修改安装目录是否设为不启用)
DefaultGroupName=安装程序包组名称
DisableProgramGroupPage=true
WindowResizable=false
WindowVisible=true
;WizardSmallImageFile=安装程序包的图标
AppCopyright=版权信息
PrivilegesRequired=admin(默认以管理身份运行)
AppMutex=
AppID=
VersionInfoVersion=版本号
OutputDir=安装包输出目录
OutputBaseFilename=安装包基本名称
[Tasks] ;桌面上增加的应用程序的图标
; NOTE: The following entry contains English phrases ("Create a desktop icon" and "Additional icons"). You are free to translate them into another language if required.
[Files]
; NOTE: Don't use "Flags: ignoreversion" on any shared system files
; config directory file source
;Source: .\*.txt; DestDir: {app}; Flags: ignoreversion restartreplace; Components: SIMPLE
[Icons]
; 开始菜单中增加的快捷方式
Name: "{group}\应用程序目录名称\应用程序名称"; Filename: "{app}\应用程序目录名称\应用程序名称" ;WorkingDir: "{app}\应用程序目录名称\"
Name: "{group}\{cm:UninstallProgram,应用程序组名}"; Filename: "{uninstallexe}"
[Run]
;安装包程序执行完后需要运行的其他的程序
; NOTE: The following entry contains an English phrase ("Launch"). You are free to translate it into another language if required.Filename:{app}\需运行的程序目录\需运行的程序; Flags: skipifdoesntexist; WorkingDir: {app}\工作的目录 ; Components: SIMPLE
[Types]
;Name: 完全安装; Description: 完全安装
;Name: 简洁安装; Description: 简洁安装
Name: 补丁安装; Description: 补丁安装
[Components]
;Name: ALL; Description: 完全安装; Types: 完全安装;
Name: SIMPLE; Description: 补丁安装; Types: 补丁安装; Flags: fixed
[_ISTool]
Use7zip=false
[Code]
;添加自己需要执行的代码
procedure InitializeWizard();
begin
WizardForm.LICENSEACCEPTEDRADIO.Checked := true;
end;
Root: HKLM; Subkey: "SYSTEM\CurrentControlSet\Control\Session Manager\Environment"; ValueType: string; ValueName: "注册项名称"; ValueData: "{app}\注册目录"; Flags: uninsdeletevalue
[setup]
;是否提示重新启动计算机
ChangesEnvironment = yes