executable-jar – IzPack – Windows上的桌面快捷方式 – 不工
发布时间:2020-12-13 22:41:13 所属栏目:Windows 来源:网络整理
导读:我正在尝试使用IzPack来安装我的程序,我想将桌面快捷方式添加到安装程序,这里是来自IzPack网站的文档/说明. http://izpack.org/documentation/desktop-shortcuts.html 但是,下面的XML文件在编译时,只会在安装程序中创建一个空白屏幕,当您尝试单击“下一步”
我正在尝试使用IzPack来安装我的程序,我想将桌面快捷方式添加到安装程序,这里是来自IzPack网站的文档/说明.
http://izpack.org/documentation/desktop-shortcuts.html 但是,下面的XML文件在编译时,只会在安装程序中创建一个空白屏幕,当您尝试单击“下一步”以通过它时,该屏幕会挂起.这是在Windows 7 – 64位上运行时屏幕的样子. 这是我的install.xml和shortcutSpec.xml文件. INSTALL.XML <?xml version="1.0" encoding="iso-8859-1" standalone="yes" ?> <installation version="1.0"> <!-- The info section. --> <info> <appname>Application Name</appname> <appversion>1.0</appversion> <url>http://www.example.com/</url> <javaversion>1.6</javaversion> <run-privileged condition="izpack.macinstall|izpack.windowsinstall.vista|izpack.windowsinstall.7"/> </info> <!-- The gui preferences indication. --> <guiprefs width="640" height="480" resizable="yes"/> <!-- The locale section. --> <locale> <langpack iso3="eng"/> </locale> <!-- The resources section. --> <resources> <res id="LicencePanel.licence" src="licence.txt"/> <res id="InfoPanel.info" src="readme.txt"/> <res id="shortcutSpec.xml" src="shortcutSpec.xml"/> </resources> <native type="izpack" name="ShellLink.dll"/> <!-- The panels section. --> <panels> <panel classname="HelloPanel"/> <panel classname="InfoPanel"/> <panel classname="LicencePanel"/> <panel classname="TargetPanel"/> <panel classname="ShortcutPanel"/> <panel classname="PacksPanel"/> <panel classname="InstallPanel"/> <panel classname="SimpleFinishPanel"/> </panels> <native type="izpack" name="ShellLink.dll"/> <!-- The packs section. --> <packs> <pack name="Program and Dependencies" required="yes"> <description>Program,libraries and other dependencies</description> <file src="ExecutableJar.jar" targetdir="$INSTALL_PATH"/> <file src="lib" targetdir="$INSTALL_PATH"/> <file src="save" targetdir="$INSTALL_PATH"/> <file src="HelpContents.chm" targetdir="$INSTALL_PATH"/> <file src="icon.png" targetdir="$INSTALL_PATH"/> <file src="application.ini" targetdir="$INSTALL_PATH"/> <file src="readme.txt" targetdir="$INSTALL_PATH"/> <file src="licence.txt" targetdir="$INSTALL_PATH"/> <file src="autorun-win.bat" targetdir="$INSTALL_PATH"/> </pack> <pack name="Samples" required="no"> <description>Word Document Samples</description> <file src="samples" targetdir="$INSTALL_PATH"/> </pack> <pack name="Templates" required="no"> <description>Word Document Templates</description> <file src="templates" targetdir="$INSTALL_PATH"/> </pack> </packs> 和shortcutSpec.xml一样 <?xml version="1.0" encoding="UTF-8" standalone="yes" ?> <shortcuts> <skipIfNotSupported/> <programGroup defaultName="AppGroupName" location="applications"/> <shortcut name="Application - Startup" target="$INSTALL_PATHautorun-win.bat" workingDirectory="$INSTALL_PATH" programGroup="no" desktop="yes" applications="yes" startMenu="yes" startup="yes"/> </shortcuts> 补充说明: >我得到零编译错误. 编辑: 我尝试过这个导入以及32位的味道.对上述结果都没有任何影响.任何更多的贡献将不胜感激. <native type="izpack" name="ShellLink_x64.dll" />
快捷方式创建取决于本机支持lib ShellLink.dll,它只支持32位系统.对于64位窗口,您还必须添加以下条目以支持两种风格:
<native type="izpack" name="ShellLink_x64.dll" /> (编辑:李大同) 【声明】本站内容均来自网络,其相关言论仅代表作者个人观点,不代表本站立场。若无意侵犯到您的权利,请及时与联系站长删除相关内容! |
相关内容
- 在Windows下,Qt应用程序的外观和感觉是什么?
- 在Windows中创建自定义命令(而非应用程序)快捷方式
- Windows – 如何获取BAT文件中的日期
- windows – 从服务启动的进程,CreateProcessWithLogonW立即
- 数百万UINT64 RGBZ图形像素的最快排序算法
- 本地windows 修改mysql 的root密码无效,论 127.0.0.1与 lo
- windows-server-2008 – VMware vCenter Server如何工作以及
- QDialog不是这样的文件或目录 – Qt Windows
- 使用Powershell找出使用大量内存的内容(在64位Windows上)
- windows – 在CMD中重命名文件日期的文件