मैं अपने प्रोग्राम को स्थापित करने के लिए इज़पैक का उपयोग करने की कोशिश कर रहा हूं और मैं इंस्टॉलर को डेस्कटॉप शॉर्टकट जोड़ना चाहता हूं, यहां IzPack वेबसाइट से दस्तावेज़/निर्देश हैं।इज़पैक - विंडोज़ पर डेस्कटॉप शॉर्टकट - काम नहीं कर रहा
http://izpack.org/documentation/desktop-shortcuts.html
हालांकि, नीचे एक्सएमएल फाइल, जब संकलित, केवल संस्थापक लटका हुआ है कि जब आप क्लिक करने के लिए "अगला" यह अतीत जाने की कोशिश में एक खाली स्क्रीन पैदा करते हैं। 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>
अतिरिक्त नोट्स:
मुझे शून्य संकलन त्रुटियां मिल रही हैं।
शॉर्टकट सामग्री के बिना, इंस्टॉलर ठीक काम करता है।
मेरा प्रोग्राम एक निष्पादन योग्य जार है, इसे स्वचालित रूप से चलाने के लिए मैंने ऑटोरुन-win.bat नामक विंडोज़ में एक बैच स्क्रिप्ट बनाई है, जो कि डेस्कटॉप शॉर्टकट से जुड़ा हुआ है।
संपादित करें:
मैं इस आयात के साथ-साथ 32-बिट स्वाद की कोशिश की है। उपरोक्त परिणामों पर न तो कोई प्रभाव पड़ा। किसी और योगदान की सराहना की जाएगी।
<native type="izpack" name="ShellLink_x64.dll" />
इस पर एक नज़र डालें: http://stackoverflow.com/questions/33419830/izpack-create-shortcut-on-windows-7/35627201#35627201 – Pickle