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?

-- 
View this message in context: 
http://n2.nabble.com/Install-components-to-the-existing-folder.-tp1082233p1082233.html
Sent from the wix-users mailing list archive at Nabble.com.


-------------------------------------------------------------------------
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

Reply via email to