我使用 izpack maven 插件 org.codehaus.izpack 版本 1.0-alpha-5 创建了一个项目。
问题是我无法为我的应用程序(Windows)创建快捷方式,快捷方式面板显示为空......并且没有错误。
所有文件都存在,我试图以网络上的标准示例为基础..没有成功..
install.xml 文件:
<resources>
<res id="shortcutSpec.xml" src="./shortcutSpec.xml" />
</resources>
<native type="izpack" name="ShellLink.dll"/>
<variables>
<variable name="DesktopShortcutCheckboxEnabled" value="true" />
</variables>
<panels>
<panel classname="HelloPanel"/>
<panel classname="InfoPanel"/>
<panel classname="LicencePanel"/>
<panel classname="TargetPanel"/>
<panel classname="PacksPanel"/>
<panel classname="InstallPanel"/>
<panel classname="ShortcutPanel"/>
</panels>
在shortcutSpec.xml 文件中:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<shortcuts>
<!--skipIfNotSupported/-->
<programGroup defaultName="company\product" location="startMenu"/>
<shortcut name="product" target="C:\Program Files\product\product.exe" description="Creating Gui Icon on the Desktop"
workingDirectory="$INSTALL_PATH" iconFile="C:\Program Files\product\icon.ico" initialState="normal" programGroup="yes" desktop="yes" applications="yes"
startMenu="yes" startup="no">
<createForPack name="product.exe"/>
</shortcut>
<shortcut
name="Documentation" target="C:\Program Files\product\doc\asdfsadfasf.docx"
workingDirectory="$INSTALL_PATH" iconFile="C:\Program Files\product\icon.ico"
description="Launch documentation" initialState="normal" programGroup="yes" desktop="yes"
applications="yes" startMenu="yes" startup="no">
<createForPack name="product.exe"/>
</shortcut>
</shortcuts>
请帮帮我.....