[izpack-users] create ShortCuts depending on packages?

Bartz, Klaus Klaus.Bartz at coi.de
Fri Aug 4 09:15:47 CEST 2006


Hi Mika,
see context related...

Cheers

Klaus


>-----Original Message-----
>From: izpack-users-bounces at lists.berlios.de
>[mailto:izpack-users-bounces at lists.berlios.de]On Behalf Of mika
>Sent: Friday, August 04, 2006 8:54 AM
>To: izpack-users at lists.berlios.de
>Subject: [izpack-users] create ShortCuts depending on packages?
>
>
>Hello again,
>
>first I have to say that I haven't read the 
>ShortCut-documentation ( punch me if you want ;-) ).

Yes, I will do; why should I read the docu for you? OK, I have
not to do it because I have done it years ago and I have
a valid spec file now...

>But my question is wheather there is a option given to create 
>a shortcut depending on a package which has been selected or not.
>
>That means, if this package isn't selected the shortcut 
>shouldn't be created.
>And the other way round, if the package is selected, the 
>shortcut has to be created!
>

This is the behavior all people expect.


>Just give me an tipp wheater it is in the documentation or not ;-).
>But if you are kind you would post the way of doing this :-).
>

Following my ShortcutSpec.xml for our admin clients as example:

<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>

<shortcuts>

  <skipIfNotSupported />

  <programGroup defaultName="Xtrend" location="applications"/>

  <shortcut
     name="Administration"
     programGroup="yes"
     desktop="yes"
     applications="no"
     startMenu="no"
     startup="no"
     target="$INSTALL_PATH\bin\StartAdminClient.cmd"
     commandLine=""
     iconFile="$INSTALL_PATH\icons\admin.ico"
     iconIndex="0"
     initialState="noShow">
   
     <createForPack name="AdministrationClient"/>
--------^  that's it
     
   </shortcut>
  <shortcut
     name="Customizing"
     programGroup="yes"
     desktop="yes"
     applications="no"
     startMenu="no"
     startup="no"
     target="$INSTALL_PATH\bin\StartCustomizingClient.cmd"
     commandLine=""
     iconFile="$INSTALL_PATH\icons\custom.ico"
     iconIndex="0"
     initialState="noShow">
   
     <createForPack name="CustomizingClient"/>
--------^  this shortcut is for an other pack, you see     
   </shortcut>
   
</shortcuts>

>Thanks,
>mika
>-- 
>



More information about the izpack-users mailing list