1 Star 1 Fork 3

hgw999/JavaPackager

加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
windows-specific-properties.md 5.49 KB
一键复制 编辑 原始数据 按行查看 历史

Windows specific properties

<winConfig>
    
	<!-- general properties -->
	<icoFile>path/to/icon.ico</icoFile>
	<generateSetup>true|false</generateSetup>
	<generateMsi>true|false</generateMsi>
	<generateMsm>true|false</generateMsm>
    
	<!-- exe creation properties -->
	<headerType>gui</headerType>
	<wrapJar>true|false</wrapJar>
	<companyName>${organizationName}</companyName>
	<fileVersion>1.0.0.0</fileVersion>
	<txtFileVersion>${version}</txtFileVersion>
	<productVersion>1.0.0.0</productVersion>
	<txtProductVersion>${version}</txtProductVersion>
	<fileDescription>${description}</fileDescription>
	<copyright>${organizationName}</copyright>
	<productName>${name}</productName>
	<internalName>${name}</internalName>
	<originalFilename>${name}.exe</originalFilename>
    
	<!-- setup generation properties -->
	<setupMode>installForAllUsers|installForCurrentUser|askTheUser</setupMode>
	<setupLanguages>
		<english>compiler:Default.isl</english>
		<spanish>compiler:Languages\Spanish.isl</english>
		[...]
	</setupLanguages>
	<disableDirPage>true|false</disableDirPage>
	<disableProgramGroupPage>true|false</disableProgramGroupPage>
	<disableFinishedPage>true|false</disableFinishedPage>
	<createDesktopIconTask>true|false</createDesktopIconTask>
    
</winConfig>
Property Mandatory Default value Description
icoFile null Icon file.
generateSetup true Generates Setup installer.
generateMsi true Generates MSI installer.
generateMsm false Generates MSI merge module. Coming soon!

Exe creation properties

Property Mandatory Default value Description
headerType "gui" EXE header type: console or gui.
wrapJar true Wrap JAR file in native EXE.
companyName ${organizationName} EXE company name.
fileVersion "1.0.0.0" EXE file version.
txtFileVersion ${version} EXE txt file version.
productVersion "1.0.0.0" EXE product version.
txtProductVersion ${version} EXE txt product version.
fileDescription ${description} EXE file description.
copyright ${organizationName} EXE copyright.
productName ${name} EXE product name.
internalName ${name} EXE internal name.
originalFilename ${name}.exe EXE original filename.
trademark null EXE trademark.
language null EXE language.

Setup generation properties

Property Mandatory Default value Description
setupMode installForAllUsers Setup installation mode: require administrative privileges or not. *
setupLanguages <english>compiler:Default.isl</english><spanish>compiler:Languages\Spanish.isl</spanish> Map with setup languages.
disableDirPage true If this is set to yes, Setup will not show the Select Destination Location wizard page.
disableProgramGroupPage true If this is set to yes, Setup will not show the Select Start Menu Folder wizard page.
disableFinishedPage true If this is set to yes, Setup will not show the Setup Completed wizard page.
createDesktopIconTask true If this is set to yes, Setup will not ask for desktop icon creation.

SetupMode

Property winConfig.setupMode can be set with 3 possible values:

  • installForAllUsers (default value): installs the app for the all users in %ProgramFiles% folder (behaviour can be changed when running setup installer from command-line with /currentuser argument).
  • installForCurrentUser: installs the app for the current user in %USERPROFILE%\AppData\Local\Programs folder (behaviour can be changed when running setup installer from command-line with /allusers argument).
  • askTheUser: asks to the final user if the app has to be installed for all users or only for the current user.
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/hgw999/JavaPackager.git
git@gitee.com:hgw999/JavaPackager.git
hgw999
JavaPackager
JavaPackager
master

搜索帮助