Only my first shortcut's "target" is working properly

Questions and answers for all installation-related topics for Servoy products

Only my first shortcut's "target" is working properly

Postby erikd » Mon Jun 04, 2012 2:47 am

Hi,

I posted my enquiry here because some of you might have encountered this already.

I have just finished creating our installer using IzPack. It was installed in"$INSTALL_PATH\" folder. Now, I'd like to create 3 shortcuts, "Server App","Client App", and "Uninstaller", in "All Programs" under "App Name".

My shortcutSpec.xml looks like the following:
<?xml version="1.0" encoding="UTF-8" standalone="yes" ?>
<shortcuts>
<skipIfNotSupported/>
<programGroup defaultName="App Name" location="applications"/>
<shortcut
name="Client App"
target="$INSTALL_PATH\client.url"
description="Launch client application"
iconFile="$INSTALL_PATH\application_server\client.ico"
programGroup="yes"
desktop="yes"
applications="no"
startMenu="no"
startup="no">
</shortcut>
<shortcut
name="Server App"
target="$INSTALL_PATH\server.url"
description="Open server admin page"
iconFile="$INSTALL_PATH\application_server\server.ico"
programGroup="yes"
desktop="no"
applications="no"
startMenu="no"
startup="no">
</shortcut>
<shortcut
name="Uninstall"
description="Uninstaller"
programGroup="yes"
desktop="no"
applications="no"
startMenu="no"
startup="no"
target="javaw.exe"
workingDirectory="$INSTALL_PATH"
commandLine="-jar Uninstaller\uninstaller.jar"
iconFile="$INSTALL_PATH\application_server\uninstall.ico">
</shortcut>
</shortcuts>

When I install it in Windows 7, I can see the shortcuts in "All Programs"->"App Name"->"Client App", "Server App",and "Uninstaller". The "Client App" shortcut runs well, but the "Server App" and "Uninstaller" runs the "Client App"'s "target".

Does anybody have the same problem as mine? It seems that the succeeding "target" property are disregarded and the "target" property of the first link is replicated to all shortcuts.
erikd
 
Posts: 445
Joined: Wed Aug 11, 2010 2:32 am

Re: Only my first shortcut's "target" is working properly

Postby erikd » Fri Jun 08, 2012 7:10 am

I found the problem to this shortcut issue. The shortcutSpec.xml is valid and has no syntax problem.

It looks like the problem occurs when I include a url file in the package. I guess I just need to change the target and exclude url files in the shortcut.
erikd
 
Posts: 445
Joined: Wed Aug 11, 2010 2:32 am


Return to Installation

Who is online

Users browsing this forum: No registered users and 4 guests