IzPack을 사용하여 프로그램을 설치하려고합니다. 바탕 화면 바로 가기를 설치 프로그램에 추가하고 싶습니다. 여기에는 IzPack 웹 사이트의 설명서/지침이 나와 있습니다.IzPack - Windows 바탕 화면 바로 가기 - 작동하지 않음
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_PATH\autorun-win.bat"
workingDirectory="$INSTALL_PATH"
programGroup="no"
desktop="yes"
applications="yes"
startMenu="yes"
startup="yes"/>
</shortcuts>
추가 정보 :
컴파일 오류가 발생합니다.
바로 가기를 추가하지 않으면 설치 프로그램이 올바르게 작동합니다.
내 프로그램은 자동으로 실행 가능한 jar입니다. 바탕 화면 바로 가기를 연결해야하는 Windows의 autorun-win.bat라는 배치 스크립트를 만들었습니다.
편집 : 나는이 수입뿐만 아니라 32 비트 맛을 시도
. 위의 결과에도 영향을 미치지 않았습니다. 더 이상의 기여가 크게 감사하겠습니다.
<native type="izpack" name="ShellLink_x64.dll" />
이것 좀보세요 : http://stackoverflow.com/questions/33419830/izpack-create-shortcut-on-windows-7/35627201#35627201 – Pickle