It looks completely fine to me & should work.

I just tested

    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="WindowsFolder" />
    </Directory>

Which is fine & almost identical to your code.

The only thing I can think it could be is some formatting characters are 
present in the Identifier but even that would show up in the error message. You 
could try pasting the code into something like notepad then copying it back & 
see if it fixes but I can't see anything wrong with what you pasted below.

Palbinder Sandher 
Software Deployment 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: Akshat Sharma [mailto:aks...@microsoft.com] 
Sent: 11 May 2011 06:21
To: wix-users@lists.sourceforge.net
Subject: [WiX-users] Illegal identifier Directory Id="WindowsFolder" ?

Hi I have a fragment where I define the directory structure as follows (I 
re-use the components defined later in other .wxs):

<Fragment>
    <Directory Id="TARGETDIR" Name="SourceDir">
      <Directory Id="WindowsFolder">
        <Directory Id="Dir.HelpFolder" Name="Help" >
                .
                .
                .
                .

“For some reason which seem to grasp, I keep getting the Error                
611 The Directory/@Id attribute's value, 'WindowsFolder', 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. “

What could be the issue here?

Thanks,
Akshat
------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


------------------------------------------------------------------------------
Achieve unprecedented app performance and reliability
What every C/C++ and Fortran developer should know.
Learn how Intel has extended the reach of its next-generation tools
to help boost performance applications - inlcuding clusters.
http://p.sf.net/sfu/intel-dev2devmay
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to