xml – izpack:在Windows 7上创建快捷方式

前端之家收集整理的这篇文章主要介绍了xml – izpack:在Windows 7上创建快捷方式前端之家小编觉得挺不错的,现在分享给大家,也给大家做个参考。
我使用izpack为我的应用程序创建一个安装程序.到目前为止,我能够创建安装程序,并在我的Linux机器上一切都很好.
问题是在Windows机器上我测试了它(Win7 6bits),安装程序没有显示快捷方式面板.
我确实阅读了文档疑难解答部分,并注意我在安装程序中有本机.
快捷方式xml文件也是如此,它们位于资源路径中的安装程序中.我还读到,很可能它是一个区分大小写的拼写错误或类似的简单但无法弄清楚.这是我的快捷方式xml:
<shortcuts>
<programGroup defaultName="SteamNet" location="applications"/>
<shortcut
    name = "One Click Wonder"
    target = "$INSTALL_PATH\oneclickwonder.bat"
    commandLine = ""
    workingDirectory= "$INSTALL_PATH"
    description="Minimal Desktop Timer"
    iconFile="$INSTALL_PATH\images\windows_icon.ico"
    iconIndex="0"
    initialState="noShow"
    programGroup="yes"
    desktop="yes"
    applications="yes"
    startMenu="yes"
    startup="yes"/>
</shortcuts>

这是我的install.xml文件

<?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?>
<installation version="1.0">
  <info>
    <appname>Test</appname>
    <appversion>1</appversion>
  </info>
  <guiprefs width="600" height="480" resizable="no">
  </guiprefs>
  <locale>
    <langpack iso3="eng"/>
  </locale>
  <panels>
    <panel classname="ShortcutPanel"/>
  </panels>
  <packs>
    <pack name="Test" required="yes">
      <description>Description</description>
    </pack>
  </packs>
  <resources>
    <res src="shortcutSpec.xml" id="shortcutSpec.xml"/>
  </resources>
  <natives>
    <native type="izpack" name="ShellLink_x64.dll"/>
</natives>
</installation>

但是我无法在安装程序中显示快捷方式面板……!

我将此与此处的工作安装程序文件进行了比较,相反,它包含以下< natives>设置:
<natives>
    <native type="izpack" name="ShellLink.dll" />
    <native type="izpack" name="ShellLink_x64.dll" />
</natives>

使用32位Java运行时时,将使用32位ShellLink.dll,这在您的设置中缺失.

原文链接:https://www.f2er.com/xml/292963.html

猜你在找的XML相关文章