Try setting Target="[#wish85.exe]"... or whatever your filename is.

On Mon, Nov 17, 2008 at 10:42 AM, JLM <[EMAIL PROTECTED]> wrote:

> Ok, I thought I had this working, but it is not. I think the quotes are
> getting set wrong. I know that if I open up the shortcut's properties page,
> and set the value in the
> target field to exactly this:
>
> "C:\Program Files\Tcl\bin\wish85.exe" "C:\...my_file"
>
> I can click on the shortcut and start my application. Now, however, WiX is
> setting the target to:
>
> "C:\Program Files\Tcl\bin\wish85.exe C:\...my_file"
>
> Notice the missing double quotes. I have Target set to
>
> Target="[wish_shortcut] [#file_10]"
>
> And the property wish_shortcut is:
>
> <Property Id="wish_shortcut" Value="C:\Program Files\Tcl\bin\wish85.exe" />
>
> I tried setting Target to:
>
> Target='"[wish_shortcut]" "[#file_10]"'
>
> But then the target no longer shows up in the start menu.
>
> wish85.exe is not my application; it is not part of my installation.
>
> Chris Lord wrote:
> > This is what I have used for my application.
> >
> > <Shortcut Id="StartMenuShortcut" Name="My Application" Description="My
> > Application Shorcut" WorkingDirectory="INSTALLDIR"
> > Target="[INSTALLDIR]MyApplication.exe" />
> >
> > The MyApplication.exe needs to be the exact filename of the executable
> > that the shortcut is pointing to.
> >
> > The use of [INSTALLDIR] instead of an absolute file reference is used in
> > my installer as it means that the shortcut always points to the
> > installed file even if the user changes the install directory.  If the
> > user cannot alter the install directory then using an absolute reference
> > (C:\Program Files\.... etc) to the file should work also.
> >
> > Chris
> >
> > -----Original Message-----
> > From: JLM [mailto:[EMAIL PROTECTED]
> > Sent: Monday, November 17, 2008 09:39
> > To: wix-users@lists.sourceforge.net
> > Subject: [WiX-users] Shortcut Target Attribute
> >
> > So in my last email I got a hint to use the Target attribute of the
> > shortcut tag. I need the shortcut's target to be:
> >
> > "C:\Program Files\Tcl\bin\wish85.exe" "path_to_tcl file"
> >
> > Unfortunately, the schema documentation for the shortcut tag is empty,
> > so I don't know exactly how to format this tag. I have set the Target
> > attribute to:
> >
> > Target='"C:\Program Files\Tcl\bin\wish85.exe" [#file_10]'
> >
> > But when I do this, I do not get any entry in the start menu. When I
> > remove this, but have WorkingDirectory="INSTALLDIR" I get an entry in
> > the start menu, but the target is wrong. Maybe the shortcut is in the
> > wrong place? I have it as a subtag of the file tag of the file I am
> > trying to make a shortcut to.
> >
> > What do I need to do to get the shortcut to show up in the start menu,
> > and have the correct target?
> >
> > Thanks.
> >
> > ------------------------------------------------------------------------
> > -
> > This SF.Net email is sponsored by the Moblin Your Move Developer's
> > challenge Build the coolest Linux based applications with Moblin SDK &
> > win great prizes Grand prize is a trip for two to an Open Source event
> > anywhere in the world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
> >
> >
> >
> > -------------------------------------------------------------------------
> > This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> > Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> > Grand prize is a trip for two to an Open Source event anywhere in the
> world
> > http://moblin-contest.org/redirect.php?banner_id=100&url=/
> > _______________________________________________
> > WiX-users mailing list
> > WiX-users@lists.sourceforge.net
> > https://lists.sourceforge.net/lists/listinfo/wix-users
>
> -------------------------------------------------------------------------
>  This SF.Net email is sponsored by the Moblin Your Move Developer's
> challenge
> Build the coolest Linux based applications with Moblin SDK & win great
> prizes
> Grand prize is a trip for two to an Open Source event anywhere in the world
> http://moblin-contest.org/redirect.php?banner_id=100&url=/
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to