I did not know there was an Arguments attribute to the shortcut tag. Unless I 
am missing some crucial documentation, the schema for the shortcut tag is blank 
in the Manual 
WiX 2.0 on the web site.

That finally worked, though. Thanks for your help.

Rob Mensching wrote:
> The Target should point to the executable you want launched.  I recommend 
> using the technique that Chad Miles notes below.  The rest of the arguments 
> to the shortcut target go in the Arguments attribute.
> 
> -----Original Message-----
> From: JLM [mailto:[EMAIL PROTECTED]
> Sent: Monday, November 17, 2008 08:19
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Shortcut Target Attribute
> 
> Ok, I have managed to get the string I think I need into the Target of the 
> shortcut, but, Windows still says it needs to find the executable when I 
> click on the shortcut.
> 
> I have set the property to:
> 
> <Property Id="wish_shortcut" Value='C:\Program Files\Tcl\bin\wish85.exe" "' />
> 
> and the target is:
> 
> Target="[wish_shortcut][#file_10]"
> 
> And this gives me the correct string in the Target field of the shortcut when 
> I open its properties. This is very odd. What I have found is if I open the 
> shortcut's
> properties dialog, click anywhere in the Target field and add a space, and 
> then delete the space, and the click OK, then the shortcut works. How can 
> this be? The string in
> the target field is not changed, and yet something happens to make this work?
> 
> There must be something fundamental about WiX programming, or Windows in 
> general that I am not getting.
> 
> Thanks again.
> 
> Chad Miles wrote:
>> 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
> 
> -------------------------------------------------------------------------
> 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