You need to have a directory with an Id the same as the property, then have the sub-directories as child elements. When the property changes, all the sub-directories will get updated as well.
Rob Sergey Abakumoff wrote: > Hello, > I try to install VS.NET templates as part of the setup package. > To do that I first read the path to VS.NET: > <Property Id="VSNET2005"> > <RegistrySearch Id="VsNet2005" > Root="HKLM" > Key="SOFTWARE\Microsoft\VisualStudio\8.0" > Name="InstallDir" > Type="raw" /> > </Property> > Then try to install the templates using: > <DirectoryRef Id="[VSNET2005]ItemTemplates\CSharp\1033"> > <Component Id="Vs2005CSharpReportTemplate" > Guid="C2BD250B-E804-4932-ACF7-B48C62747F24"> > <File Id="Vs2005CSReport.template" > Source="$(var.DDRProgramFiles)\Visual > Studio\Templates\CSharpProjectItem\report.zip"/> > </Component> > </DirectoryRef> > > Indeed, Wix compiler providers the error: > The DirectoryRef/@Id attribute's value, > '[VSNET2005]ItemTemplates\CSharp\1033', is not a legal identifier. > Identifiers may contain ASCII characters A-Z, a-z, digits, underscores (_), > or periods (.). Every identifier must begin with either a letter or an > underscore. > > However, I don't have ideas about how to refer to the directory with path > that read from the registry. > Can anyone help to solve this problem? > ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users