On Thu, 30 Jul 2009 12:05:00 -0500 Qi Ning <qin...@microsoft.com> wrote: >Hi, > >I am new using wix (v3.0). Here are a question that I cannot >figure out with the user manual. > >The question is about how to specify a directory: >I used the following to find out where the VS2010 is installed. > ><Property Id = "VS2010INSTALLDIR"> > <RegistrySearch Id="VS2010InstallDir" >Key=SOFTWARE\Microsoft\VisualStudio\10.0" Name="InstallDir" >Root="HKLM" Type="raw" /> ></Property> > >I will get back something likeVS2010INSTALLDIR=C:\Program >Files\Microsoft Visual Studio 10.0\Common7\IDE\ > >My question is how to write a Wix Directory element to install my >files into >VS2010INSTALLDIR\extensions\MyCompany\MyFeature\v1.0. > >The examples given in the manual do not show clues to do this. Do
>I need to parse VS2010INSTALLDIR? > >-- >Qi Hi Qi, Definitely read these excellent tutorials, at least Lesson 1: http://www.tramontana.co.hu/wix/lesson1.php I accomplished what you intended with the following snippet: <Wix ...> <Product ...> <Package ... /> <Property Id="VS2010INSTALLDIR"> <RegistrySearch Id="www" Type="directory" Root="HKLM" Key="SOFTWARE\Microsoft\VisualStudio\10.0" Name="InstallDir" /> </Property> <Directory Id="TARGETDIR" Name="SourceDir"> <Directory Id="VS2010INSTALLDIR" Name="xxx"> <Component Id="yyy" Guid="PUT-YOUR-OWN-GUID-HERE"> <File Id="zzz" Name="MyFile.Ext" DiskId="1" Source="MyFile.Ext" /> </Component> </Directory> </Directory> ... P.S. Don't forget the tutorials! http://www.tramontana.co.hu/wix/ ------------------------------------------------------------------------------ Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day trial. Simplify your report design, integration and deployment - and focus on what you do best, core application coding. Discover what's new with Crystal Reports now. http://p.sf.net/sfu/bobj-july _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users