[izpack-user] Shortcut panel not shown

431 visualizações
Pular para a primeira mensagem não lida

DURAND Bastien

não lida,
22 de mai. de 2009, 06:43:1222/05/2009
para IzPack User
Hi all, I’m using IzPack 4.2.1 and I’m expecting some troubles using Shortcut panel.
 
My panel won’t appears even if <skipIfNotSupported/> is commented.
Can someone help me?
 
Here is my shortcuts.xml:
 
 
And here is my part of my install.xml for the shortcut:
 
 
 
Cheers
 
Bastien
 
 
 
 
 
 
 
 

DURAND Bastien

não lida,
22 de mai. de 2009, 07:22:5022/05/2009
para IzPack User
Oops I see that there is a problem with the text area so here is the mail without them.
 
So as I said earlier, I’m trying to display the shortcut panel without achieve it. I tried all examples given in the doc but no way.
 
Cheers
Bastien
 
 
_____________________________________________
De : DURAND Bastien
Envoyé : vendredi 22 mai 2009 12:43
À : IzPack User
Objet : Shortcut panel not shown
 
 
Hi all, I’m using IzPack 4.2.1 and I’m expecting some troubles using Shortcut panel.
 
My panel won’t appears even if <skipIfNotSupported/> is commented.
Can someone help me?
 
Here is my shortcuts.xml:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
 
<shortcuts>
 
    <skipIfNotSupported/>
 
    <programGroup defaultName="Prog @build.number@" location="applications"/>
 
    <shortcut
            name="MyProg @ver@"
            programGroup="yes"
            desktop="yes"
            applications="no"
            startMenu="yes"
            startup="no"
            target="$INSTALL_PATH\prog\prog_windows.bat"
            commandLine=""
            description="This launch MyProg @ver@">
 
        <createForPack name="progClient.package"/>
    </shortcut>
</shortcuts>
 
 
And here is my part of my install.xml for the shortcut:
 
<installation>
.
.
.
 
                <resources>
                        .
.
.              
<res id="shortcutSpec.xml"                       src="/src/xml/Windows_shortcutSpec.xml"/>
        </resources>
 
<panels>
                <panel id="HelloPanel"                   classname="HelloPanel"                  />
                <panel id="userInputSpec"                classname="UserInputPanel"               />
                 <panel id="InfoPanel"                    classname="InfoPanel"                    />
                <panel id="LicencePanel"                 classname="LicencePanel"                 />
                <panel id="PacksPanel"                   classname="PacksPanel"                   />
                 <panel id="userInputSpec"                classname="UserInputPanel"               condition="izpack.selected.progServer.package"  />
                <panel id="userInputSpec"                classname="UserInputPanel"               condition="izpack.selected.progClient.package"  />
                <panel id="TargetPanel"          classname="TargetPanel"          />
                <panel id="ShortcutPanel"                classname="ShortcutPanel"               />
                <panel id="InstallPanel"                 classname="InstallPanel"                 />
                <panel id="SimpleFinishPanel"    classname="SimpleFinishPanel"    />
</panels>
.
.
.
<native type="izpack" name="ShellLink.dll" />
 
</installation>
 
 
Cheers
 
Bastien
 
 
 
 
 
 
 
 

Malkolm

não lida,
22 de mai. de 2009, 07:29:3822/05/2009
para us...@izpack.codehaus.org
Oops, all OK there.

2009/5/22 Malkolm <the.m...@gmail.com>
Im not a specialist but this line looks questionably

            target="$INSTALL_PATH\prog\prog_windows.bat"

Maybe INSTALL_PATH should have trailing "$" symbol?



2009/5/22 DURAND Bastien <Bastien...@supinfo.com>

Malkolm

não lida,
22 de mai. de 2009, 07:26:4322/05/2009
para us...@izpack.codehaus.org
Im not a specialist but this line looks questionably

            target="$INSTALL_PATH\prog\prog_windows.bat"

Maybe INSTALL_PATH should have trailing "$" symbol?



2009/5/22 DURAND Bastien <Bastien...@supinfo.com>
Oops I see that there is a problem with the text area so here is the mail without them.

DURAND Bastien

não lida,
22 de mai. de 2009, 07:46:5222/05/2009
para us...@izpack.codehaus.org

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

DURAND Bastien

não lida,
22 de mai. de 2009, 08:41:3522/05/2009
para us...@izpack.codehaus.org

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

Kjell Braden

não lida,
22 de mai. de 2009, 11:58:5222/05/2009
para us...@izpack.codehaus.org
(response below)
DURAND Bastien schrieb:

> I'm stilling trying some corrections but nothing append until I comment the "<createForPack/> " .
> Now I have a java error :
>
[snip]

>
> Not sure it is a good error.
>
> Cheers
> Bastien
>

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

signature.asc
signature.asc

DURAND Bastien

não lida,
22 de mai. de 2009, 12:27:4822/05/2009
para us...@izpack.codehaus.org
Thanks for your answer,
The problem don't come from the "<createForPack/>" because if I comment it doesn't change anything.
So the problem seems to be the shellLink.dll

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


DURAND Bastien

não lida,
23 de mai. de 2009, 08:50:4023/05/2009
para us...@izpack.codehaus.org

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

Kjell Braden

não lida,
23 de mai. de 2009, 11:12:1523/05/2009
para us...@izpack.codehaus.org
(response below)
DURAND Bastien schrieb:
> Thanks for your answer,
> The problem don't come from the "<createForPack/>" because if I comment it doesn't change anything.
> So the problem seems to be the shellLink.dll
>
> Do someone no how to resolve this issue?
>
> 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

signature.asc

DURAND Bastien

não lida,
23 de mai. de 2009, 11:49:5823/05/2009
para us...@izpack.codehaus.org

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

/packs.info

/langpacks.info

/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)

Responder a todos
Responder ao autor
Encaminhar
0 nova mensagem