izpack:在Windows 7上创建快捷方式 [英] izpack: Create shortcut on windows 7

查看:121
本文介绍了izpack:在Windows 7上创建快捷方式的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我使用izpack为我的应用程序创建一个安装程序.到目前为止,我已经能够创建安装程序,并且在我的linux机器上,一切都很好.
问题是,在我在(Win7 6bits)上测试过的Windows机器上,安装程序未显示快捷方式面板.
我确实阅读了文档疑难解答部分,并确保我的安装程序中包含本机.
快捷方式xml文件也是如此,它们位于资源路径中的安装程序中.我还读到它很可能是区分大小写的错字或类似的简单内容,但无法弄清楚.这是我的快捷方式xml:

I use izpack to create an installer for my application. So far I was able to create the installer and on my linux machine everything is fine.
The problem is that on the windows machines I tested it on (Win7 6bits) the installer did not show the shortcut panel.
I did read the documentation troubleshooting section and took care that I have the natives in my installer.
Same goes for the shortcut xml file, they are in the installer in the resources path. I also read that most likely it is a case sensitive typo or something similar simple but could not figure it out. Here is my shortcut 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文件:

And this is my install.xml file:

<?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>

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

But i can't display the shortcut panel in my installer ... !

推荐答案

我将其与工作的安装程序文件进行了比较,该文件中包含以下<natives>设置:

I compared this to a working installer file here which in contrast contains the following <natives> setting:

<natives>
    <native type="izpack" name="ShellLink.dll" />
    <native type="izpack" name="ShellLink_x64.dll" />
</natives>

使用32位Java运行时时,将使用安装程序中缺少的32位ShellLink.dll.

When using a 32-Bit Java Runtime the 32-Bit ShellLink.dll will be used which is missing in your setup.

这篇关于izpack:在Windows 7上创建快捷方式的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆