Can't you do something like this:

<Property Id='ShortcutTarget' Value='WorkingDirectory'/>
<CustomAction Id='SetShortcutTarget' Property='ShortcutTarget'
Value='%ComSpec% [\/]k [WorkingDirectory]wix\doc\wix.chm'/>

I thought I read somewhere on MSDN (can't find the doc right now) you can do
[\x] and it will print a literal 'x'.  Maybe try that?


On 1/10/07, Jason Van Eaton <[EMAIL PROTECTED]> wrote:

 I should have mentioned that I had already tried \/ to no avail.
However, your comment about it being XML makes a lot of sense.  I will try
the escape sequence for / and see what happens.  Thanks!



JVE


 ------------------------------

*From:* Brian Patton [mailto:[EMAIL PROTECTED]
*Sent:* Tuesday, January 09, 2007 4:31 PM
*To:* Jason Van Eaton
*Cc:* wix-users@lists.sourceforge.net
*Subject:* Re: [WiX-users] Setting the target of a shortcut



Perhaps you could try backslashing the forward-slash characters? (i.e.
'\/' for each instance of '/' you want to show up)


At least for ampersand (&), I've noticed I have to use &amp; because WiX
is an XML format. Perhaps it would also accept some hex representation of
the forward-slash.


On 1/9/07, *Jason Van Eaton* <[EMAIL PROTECTED]> wrote:

I want to set the Target of a Shortcut as follows (please not the location
of the quotes and direction of the forward slash)...

%ComSpec% /k "C:\Program Files\<MyApp>\wix\doc\wix.chm"

<Shortcut Id='Shortcut_Desktop'
         Directory='DesktopFolder'
         Name='MyApp'
         WorkingDirectory='WorkingDirectory'
         Icon='Icon_MyApp.ico'
         Target='[ShortcutTarget]'>
</Shortcut>

<Property Id='WorkingDirectory' Value='INSTALLDIR'/>
<CustomAction Id='SetWorkingDirectory' Property='WorkingDirectory'
Value='[INSTALLDIR]'/>

<Property Id='ShortcutTarget' Value='WorkingDirectory'/>
<CustomAction Id='SetShortcutTarget' Property='ShortcutTarget'
Value='%ComSpec% /k [WorkingDirectory]wix\doc\wix.chm'/>

What I get is...

"%ComSpec% \k C:\Program Files\<MyApp>\wix\doc\wix.chm"

So the 2 problems I need to overcome are the location of the double quote
and the changing of the direction of the forward slash to a back slash.

Furthermore, I am a little confused why the WorkingDirectory attribute of
the Shortcut accepts a Property Id without the []'s and the Target attribute
does not.  That is more of an inconsistency in my current understanding.

Thanks!

JVE


-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users




--
===========
Brian Patton
http://people.bu.edu/bjp/
http://people.bu.edu/reallife/ourstories.html

-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV

_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users



-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to