The text in the Description attribute is what is displayed for the
tooltip to the best of my knowledge.
Change it from "$(var.ProductName)" to "[INSTALLDIR]" and it should in
theory work but you may need to use a public property (e.g. TOOLTIPDIR)
and set it to INSTALLDIR using a Type 51 CustomAction which runs before
CreateShortcuts otherwise you may get the default value of INSTALLDIR
rather than the actual one set during the install.

Public Properties ->
http://msdn.microsoft.com/en-us/library/aa370912.aspx
Types of Custom Actions ->
http://msdn.microsoft.com/en-gb/library/aa372048.aspx
InstallExecuteSequence ->
http://msdn.microsoft.com/en-us/library/aa372038.aspx

Good luck.

Palbinder Sandher 
Software Deployment & IT Administrator
T: +44 (0) 141 945 8500 
F: +44 (0) 141 945 8501 

http://www.iesve.com 
**Design, Simulate + Innovate with the <Virtual Environment>**
Integrated Environmental Solutions Limited. Registered in Scotland No.
SC151456 
Registered Office - Helix Building, West Of Scotland Science Park,
Glasgow G20 0SP
Email Disclaimer
 
 

-----Original Message-----
From: Prabhat Nath [mailto:prabhat.n...@gmail.com] 
Sent: 16 April 2009 09:16
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] How to Display Installed Path in Icon Tooltip

Hello,



I have WiX project and here is how I create desktop shortcut and able to
show tooltip too. But how can I modify this to show the "Installed
Location"
as the tooltip?



<Component Id="C_AppPublic_1"
Guid="04A6C163-BEE7-4C94-93F0-00705ED27D3C"
DiskId="1">

  <File Id="F_Client_1" Name="MyClient.exe"
Source="$(var.COREDROP)\Client\"
Vital="yes" KeyPath="yes">

    <Shortcut Id="DesktopShortcut" Directory="DesktopFolder"
Advertise="yes"

              WorkingDirectory="INSTALLDIR" Name="$(var.ProductName)"
Icon="
Icon.exe"

              Description="$(var.ProductName)">

      <Icon Id="Icon2.exe" SourceFile="$(var.ICONNAME)"/>

    </Shortcut>

  </File>

  <File Id="F_Public_1" Name="EULA.rtf" Source="$(var.DOCDROP)\" />

</Component>



Any suggestion/pointer is appreciated.



Thanks,

Prabhat Nath


------------------------------------------------------------------------------
Stay on top of everything new and different, both inside and 
around Java (TM) technology - register by April 22, and save
$200 on the JavaOne (SM) conference, June 2-5, 2009, San Francisco.
300 plus technical and hands-on sessions. Register today. 
Use priority code J9JMT32. http://p.sf.net/sfu/p
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to