xml – izpack:在Windows 7上创建快捷方式
发布时间:2020-12-16 07:56:27 所属栏目:百科 来源:网络整理
导读:我使用izpack为我的应用程序创建一个安装程序.到目前为止,我能够创建安装程序,并在我的Linux机器上一切都很好. 问题是在Windows机器上我测试了它(Win7 6bits),安装程序没有显示快捷方式面板. 我确实阅读了文档疑难解答部分,并注意我在安装程序中有本机. 快捷
我使用izpack为我的应用程序创建一个安装程序.到目前为止,我能够创建安装程序,并在我的Linux机器上一切都很好.
问题是在Windows机器上我测试了它(Win7 6bits),安装程序没有显示快捷方式面板. 我确实阅读了文档疑难解答部分,并注意我在安装程序中有本机. 快捷方式xml文件也是如此,它们位于资源路径中的安装程序中.我还读到,很可能它是一个区分大小写的拼写错误或类似的简单但无法弄清楚.这是我的快捷方式xml: <shortcuts> <programGroup defaultName="SteamNet" location="applications"/> <shortcut name = "One Click Wonder" target = "$INSTALL_PATHoneclickwonder.bat" commandLine = "" workingDirectory= "$INSTALL_PATH" description="Minimal Desktop Timer" iconFile="$INSTALL_PATHimageswindows_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,这在您的设置中缺失. (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |