I had missed a space in part of the registry key name. Works great now. Thanks!
Bob On Mon, Sep 14, 2009 at 11:42 AM, Blair <os...@live.com> wrote: > Check a verbose debug log. I suspect that EG_INSTALLDIR isn't getting set. > If that property were set before CostFinalize ran, anything in the @Name > attribute would be ignored (along with the paths of any parent directories) > and you would get what you are trying to get (see > http://msdn.microsoft.com/en-us/library/aa367852.aspx). > > You may not need the @Name attribute at all in your > director...@id="EG_INSTALLDIR"] element. > > -----Original Message----- > From: Bob Uva [mailto:robert...@gmail.com] > Sent: Monday, September 14, 2009 9:59 AM > To: wix-users@lists.sourceforge.net > Subject: [WiX-users] using property in Directory Name attribute > > I want to be able to use a Property value in the Name attribute of a > Directory entry. I set the property by reading a directory path from > the registry, then want to indicate that that is the path into which I > will be installing. Here is a snippet, indicating that I want to > create a directory named 'Custom' in the installation directory > identified by the property EG_INSTALLDIR. Instead, [EG_INSTALLDIR] is > read literally, and a directory named '[EG_INSTALLDIR]' is created at > the c:\ root. Is there any way to indicate a property in a Directory's > Name attribute? > > Thanks, > Bob > > <Property Id="EG_INSTALLDIR"> > <RegistrySearch Id='EnterpriseGuideRegistry' Type='raw' > Root='HKLM' Key='Software\SAS Institute > Inc.\EnterpriseGuide\4.2' Name='InstallLocation' /> > </Property> > > > <Directory Id="TARGETDIR" Name="SourceDir"> > <Directory Id="EG_INSTALLDIR" Name="[EG_INSTALLDIR]" > > <Directory Id="EnterpriseGuideCustomTasksLocation" Name="Custom" /> > </Directory> > </Directory> > > > -- > Bob Uva > Software Development Consultant > Portland, OR > mobile: 503-810-6387 > eMail: robert...@gmail.com > > ---------------------------------------------------------------------------- > -- > 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 > > > ------------------------------------------------------------------------------ > 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 > -- Bob Uva Software Development Consultant Portland, OR mobile: 503-810-6387 eMail: robert...@gmail.com ------------------------------------------------------------------------------ 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