Im not a specialist but this line looks questionablytarget="$INSTALL_PATH\prog\prog_windows.bat"
Maybe INSTALL_PATH should have trailing "$" symbol?
Oops I see that there is a problem with the text area so here is the mail without them.
Hi,
Thanks for your answer but I’m not english and I don’t understand what you’re saying about “trailing “$” symbol”.
Can you give an exemple of what you’re talking about?
I tried
target="$INSTALL_PATH\prog\prog_windows.bat"
target="$INSTALL_PATH$\prog\prog_windows.bat"
target="$$INSTALL_PATH\prog\prog_windows.bat"
target="%INSTALL_PATH\prog\prog_windows.bat"
target="%INSTALL_PATH%\prog\prog_windows.bat"
target="@INSTALL_PATH\prog\prog_windows.bat"
target="@INSTALL_PATH@\prog\prog_windows.bat"
But my panel isn’t shown either.
Cheers
Bastien
De : Malkolm
[mailto:the.m...@gmail.com]
Envoyé : vendredi 22 mai 2009 13:27
À : us...@izpack.codehaus.org
Objet : Re: [izpack-user] Shortcut panel not shown
I’m stilling trying some corrections but nothing append until I comment the “<createForPack/> “ .
Now I have a java error :
could not create shortcut instance
java.lang.Exception: error loading library
at com.izforge.izpack.util.Librarian.loadArchSpecificLibrary(Librarian.java:292)
at com.izforge.izpack.util.Librarian.loadLibrary(Librarian.java:179)
at com.izforge.izpack.util.os.ShellLink.initialize(ShellLink.java:500)
at com.izforge.izpack.util.os.ShellLink.<init>(ShellLink.java:374)
at com.izforge.izpack.util.os.Win_Shortcut.initialize(Win_Shortcut.java:82)
at com.izforge.izpack.panels.ShortcutPanel.panelActivate(ShortcutPanel.java:798)
at com.izforge.izpack.installer.InstallerFrame.switchPanel(InstallerFrame.java:933)
at com.izforge.izpack.installer.InstallerFrame.navigateNext(InstallerFrame.java:1617)
at com.izforge.izpack.installer.InstallerFrame.navigateNext(InstallerFrame.java:1590)
at com.izforge.izpack.installer.InstallerFrame$NavigationHandler.actionPerformed(InstallerFrame.java:1740)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
java.lang.NullPointerException
at com.izforge.izpack.util.os.Win_Shortcut.getProgramsFolder(Win_Shortcut.java:679)
at com.izforge.izpack.panels.ShortcutPanel.getProgramsFolder(ShortcutPanel.java:889)
at com.izforge.izpack.panels.ShortcutPanel.panelActivate(ShortcutPanel.java:812)
at com.izforge.izpack.installer.InstallerFrame.switchPanel(InstallerFrame.java:933)
at com.izforge.izpack.installer.InstallerFrame.navigateNext(InstallerFrame.java:1617)
at com.izforge.izpack.installer.InstallerFrame.navigateNext(InstallerFrame.java:1590)
at com.izforge.izpack.installer.InstallerFrame$NavigationHandler.actionPerformed(InstallerFrame.java:1740)
at javax.swing.AbstractButton.fireActionPerformed(Unknown Source)
at javax.swing.AbstractButton$Handler.actionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.fireActionPerformed(Unknown Source)
at javax.swing.DefaultButtonModel.setPressed(Unknown Source)
at javax.swing.plaf.basic.BasicButtonListener.mouseReleased(Unknown Source)
at java.awt.AWTEventMulticaster.mouseReleased(Unknown Source)
at java.awt.Component.processMouseEvent(Unknown Source)
at javax.swing.JComponent.processMouseEvent(Unknown Source)
at java.awt.Component.processEvent(Unknown Source)
at java.awt.Container.processEvent(Unknown Source)
at java.awt.Component.dispatchEventImpl(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.LightweightDispatcher.retargetMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.processMouseEvent(Unknown Source)
at java.awt.LightweightDispatcher.dispatchEvent(Unknown Source)
at java.awt.Container.dispatchEventImpl(Unknown Source)
at java.awt.Window.dispatchEventImpl(Unknown Source)
at java.awt.Component.dispatchEvent(Unknown Source)
at java.awt.EventQueue.dispatchEvent(Unknown Source)
at java.awt.EventDispatchThread.pumpOneEventForFilters(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForFilter(Unknown Source)
at java.awt.EventDispatchThread.pumpEventsForHierarchy(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.pumpEvents(Unknown Source)
at java.awt.EventDispatchThread.run(Unknown Source)
Not sure it is a good error.
Cheers
Bastien
De : DURAND Bastien
[mailto:Bastien...@supinfo.com]
Envoyé : vendredi 22 mai 2009 13:47
À : us...@izpack.codehaus.org
Objet : RE: [izpack-user] Shortcut panel not shown
Hi,
I think the problem is the <createForPack name="foo" /> really requiring
the name of the pack, not the id (ie. the content of the pack's name
attribute).
The other problem is related to installer being unable to find the
ShellLink.dll, I think. Not sure why, however.
-Kjell
Do someone no how to resolve this issue?
Cheers,
Bastien
-----Message d'origine-----
De : Kjell Braden [mailto:kb+co...@kjellbraden.de]
Envoyé : vendredi 22 mai 2009 17:59
À : us...@izpack.codehaus.org
Objet : Re: [izpack-user] Shortcut panel not shown
(response below)
Hi,
-Kjell
---------------------------------------------------------------------
To unsubscribe from this list, please visit:
http://xircles.codehaus.org/manage_email
Apparently, my problem comes from
<native type="izpack" name="ShellLink.dll">
<os family="windows"/>
</native>
which doesn’t load ShellLink.dll.
What did I miss when I created my project? Is there a specific way to start an IzPack project in Eclipse to integrate this option works?
Any clue? Because it’s one of my two last problems to close my installer L
Cheers,
Bastien
Bastien,
you got me wrong here. You said, if you comment the createForPack tag,
you get a different problem. So, you have two problems:
1. ShortcutPanel not showing (related to the createForPack)
2. failing to create the shortcuts (related to ShellLink.dll not loading)
I told you the solution for 1.: either fix your createForPack tag, or
remove it.
For 2.: do you try to install it on a x64 machine in a 64-bit jvm? Does
the bin/native/izpack directory in your local IzPack installation
contain a ShellLink.dll *and* a ShellLink_x64.dll? Optionally, check the
created .jar file with your favorite unpacker (7-zip, for example) and
see whether it contains a native/ShellLink.dll and/or
native/ShellLink_x64.dll
-kjell
I apologize, i see later that what you said was also true and it is now fix.
In my jar, I have the following folders and files :
/res/
/res/allMyRessources
/packs/
/packs/MyPacks
/org/apache/regexp/lotsOfFiles
/native/ShellLink.dll
/META-INF/MANIFEST.MF
/langpacks/fra.xml
/langpacks/eng.xml
/img/lotsOfImages
/com/izforge/…
/com/incors/…
/vars
/rules
/panelsOrder
/installerrequirements
/info
/GUIPrefs
/dynvariables
/customData
And I’m not using x64 jvm so ShellLink_x64.dll isn’t necessary?
Thanks a lot to search and give me clues J
Cheers
Bastien
-----Message d'origine-----
De : Kjell Braden [mailto:kb+co...@kjellbraden.de]
Envoyé : samedi 23 mai 2009 17:12
À : us...@izpack.codehaus.org
Objet : Re: [izpack-user] Shortcut panel not shown
(response below)