Hello,
How to set iis:WebVirtualDir Directory="X" (Error CNDL0014 : The
iis:WebVirtualDir/@Directory attribute's value, '[TARGETDIR]', is not a
legal identifier)
The problem I can't seem to get around is that anything other than TARGETDIR
(which is preset to C:\something) will make the msi build fail with error
like this one:
C:\wix\Test.wxs(1791) : error CNDL0014 : The
iis:WebVirtualDir/@Directoryattribute's value, '[TARGETDIR]', is not a
legal identifier. Identifier's
may contain ASCII characters A-Z, a-z, digits, underscores (_), or periods
(.). Every identifier must begin with either a letter or an underscore.
So my question is:
How on earth do you set the Directory="TARGETDIR" to anything other (a
directory of my choice ;) than TARGETDIR ??
Actually I would like to go "even futher" and set it to "[TARGETDIR]/subdir"
so that my virtual directories VIRTUALDIRECTORYNAME2 VIRTUALDIRECTORYNAME3
etc would point to "[TARGETDIR]/subdir2" "[TARGETDIR]/subdir2" etc
Working config (with all virtualdirs pointing to C:/something ):
<iis:WebVirtualDir Id="ExistingTryOut_Test" Alias="[VIRTUALDIRECTORYNAME2]"
Directory="TARGETDIR">
<iis:WebDirProperties Id="IISWebVirtualDirPropertiesExisting2" Execute="yes"
Read="yes" DefaultDocuments="default.aspx,index.aspx,index.htm,index.html,
default.htm,default.html" />
<iis:WebApplication Id="WebApplicationExisting2" Name="[WEBAPPLICATIONNAME]"
WebAppPool="WebAppPoolExisting">
<iis:WebApplicationExtension Extension="*" CheckPath="no"
Executable="[ASPNETISAPIDLL]" Script="yes" Verbs="GET,HEAD,POST" />
Shoud it be done through CustomActions? This is wix3.0 setup and ANY info is
welcome.
Thanks.
-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users