Hi,

Thanks for your answer. Changing to [PROWCINI_PATH] didn't work at first
glance, so after deeper investigations, I found the value returned by
RegistrySearch wasn't correct. Changing attribute Type to "raw" (and
removing $ sign before PROWCINI_PATH ! ) gives me a correct result.
So I now have a working solution, but is it normal that using attribute
Type="file" gives me an incorrect result (I get parent directory instead of
file name) ?

Best regards

Gilles QUERRET

-----Message d'origine-----
De : Mike Dimmick [mailto:[EMAIL PROTECTED]
Envoyé : mardi 3 octobre 2006 11:28
À : Gilles Querret; wix-users@lists.sourceforge.net
Objet : RE: [WiX-users] Problem creating shortcut


The $ symbol is used in the Target attribute to find a component's path.
You need to evaluate the value of the property, so your Target should be
[PROWCINI_PATH].

References:

Shortcut table:
http://msdn.microsoft.com/library/en-us/msi/setup/shortcut_table.asp
Shortcut data type:
http://msdn.microsoft.com/library/en-us/msi/setup/shortcut.asp
Formatted data type:
http://msdn.microsoft.com/library/en-us/msi/setup/formatted.asp

-- 
Mike Dimmick 

-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of Gilles
Querret
Sent: 03 October 2006 08:06
To: 'wix-users@lists.sourceforge.net'
Subject: [WiX-users] Problem creating shortcut

[2nd try, first one never appeared on mailing list]

Hi,

I have a problem in my installer with creating shortcuts : basically, I
need to create a shortcut where the executable isn't part of my
installer and I just need to provide parameters.

I retrieve the executable path using :
<Property Id="PROWCINI_PATH">
 <RegistrySearch Id="ProwcIniPath" Root="HKLM"
Key="Software\PSC\WebClient" Name="ProwciniPath" Type="file"/>
</Property>

And I add icon using :
<Shortcut Id="Shortcut1" Advertise="no" Directory="DesktopFolder"
Name="MyShortcut" Target="[$PROWCINI_PATH]"
Arguments=" <http://localhost/foo/bar>"/>

Problem is that when running the installer, I get my icon created in
desktop folder, but executable path isn't the value of PROWCINI_PATH,
but to its parent directory. WiX help says for target attribute that the
value will be defaulted to the parent File when nested under a File
element.

So how is it possible to create a shortcut using the correct executable
path ?


Best regards

--

Gilles QUERRET


------------------------------------------------------------------------
-
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=DEVDE
V
_______________________________________________
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