I use this type of search in WiX 3.5 successfully but I have not tried to 
confirm its behavior in  WiX 3.6.

<Property Id="SQLCMDEXE">
  <RegistrySearch Id="SQLCMDEXE" Root="HKLM" Key="SOFTWARE\Microsoft\Microsoft 
SQL Server\100\Tools\ClientSetup" Name="Path" Type="directory">
    <FileSearch Name="SQLCMD.EXE"/>
  </RegistrySearch>
</Property>

Edwin G. Castro
Software Developer - Staff
Digital Channels
Fiserv
Office: 503-746-0643
Fax: 503-617-0291
www.fiserv.com
Please consider the environment before printing this e-mail


> -----Original Message-----
> From: Pally Sandher [mailto:pally.sand...@iesve.com]
> Sent: Tuesday, November 08, 2011 2:19 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Wix or MSI bug ?
> 
> Phil the bug is that the path returned by FileSearch is of the format
> C:\Directory\Filename.ext\ The trailing slash after the filename makes the 
> path
> returned by FileSearch all but useless unless you use a custom action to 
> remove
> it first, in which case you may as well just use a custom action to return the
> correct value in the first place.
> 
> Palbinder Sandher
> Software Platform Engineer
> 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: Wilson, Phil [mailto:phil.wil...@invensys.com]
> Sent: 07 November 2011 17:58
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Wix or MSI bug ?
> 
> And most Windows Installer paths end with a \ too, in the path properties.
> 
> Phil Wilson
> 
> 
> -----Original Message-----
> From: Pally Sandher [mailto:pally.sand...@iesve.com]
> Sent: Monday, November 07, 2011 6:45 AM
> To: General discussion for Windows Installer XML toolset.
> Subject: Re: [WiX-users] Wix or MSI bug ?
> 
> Old bug with FileSearch which has been "closed" but never actually fixed as 
> far
> as I can see ->
> http://sourceforge.net/tracker/?func=detail&atid=642714&aid=1648267&grou
> p_id=105970 &
> http://sourceforge.net/tracker/index.php?func=detail&aid=1273447&group_id=
> 105970&atid=642714
> 
> Palbinder Sandher
> Software Platform Engineer
> 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: Nicolas Penin [mailto:n.pe...@happly.fr]
> Sent: 07 November 2011 09:02
> To: General discussion for Windows Installer XML toolset.
> Subject: [WiX-users] Wix or MSI bug ?
> 
> Dear all,
> 
> I believe this is a bug in wix 3.6, but not sure...
> 
> If I do the following :
> <Property Id="SQLCMDPATH">
>       <RegistrySearch Id="SqlBinsRegistry" Root="HKLM"
> Key="SOFTWARE\Microsoft\Microsoft SQL Server\100\Tools\ClientSetup"
> Type="directory" Name="Path">
>         <FileSearch Name="SQLCMD.EXE" />
>       </RegistrySearch>
>     </Property>
> 
> I have the appropriate path, except it is terminating with a \
> 
> If I change the Type of RegistrySearch to file, the content of SQLCMDPATH is
> 'C:\'
> 
> Any idea ?
> 
> Regards,
> Nicolas Penin
> 
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> 
> 
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> 
> *** Confidentiality Notice: This e-mail, including any associated or attached
> files, is intended solely for the individual or entity to which it is 
> addressed. This
> e-mail is confidential and may well also be legally privileged. If you have
> received it in error, you are on notice of its status. Please notify the 
> sender
> immediately by reply e-mail and then delete this message from your system.
> Please do not copy it or use it for any purposes, or disclose its contents to 
> any
> other person. This email comes from a division of the Invensys Group, owned by
> Invensys plc, which is a company registered in England and Wales with its
> registered office at 3rd Floor, 40 Grosvenor Place, London, SW1X 7AW
> (Registered number 166023). For a list of European legal entities within the
> Invensys Group, please go to http://www.invensys.com/en/legal/default.aspx.
> 
> You may contact Invensys plc on +44 (0)20 3155 1200 or e-mail
> recept...@invensys.com. This e-mail and any attachments thereto may be
> subject to the terms of any agreements between Invensys (and/or its
> subsidiaries and affiliates) and the recipient (and/or its subsidiaries and
> affiliates).
> 
> 
> 
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
> 
> 
> 
> ------------------------------------------------------------------------------
> RSA(R) Conference 2012
> Save $700 by Nov 18
> Register now
> http://p.sf.net/sfu/rsa-sfdev2dev1
> _______________________________________________
> WiX-users mailing list
> WiX-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/wix-users
------------------------------------------------------------------------------
RSA(R) Conference 2012
Save $700 by Nov 18
Register now
http://p.sf.net/sfu/rsa-sfdev2dev1
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to