I want to set the ACL on a directory based on whether IIS is installed (IISVERSION is the result of a registry search).  The code below works fine if I eliminate the first component (DataCompIIS5).  As soon as both components are there, the folder is created correctly, but the user is not added.  The MSI log shows that components are being correctly installed depending on the result of the condition.  Any ideas?

<Directory Id="DATADIR" Name="Data">
  <Component Id="DataCompIIS5" Guid="672618EA-746E-4948-AF4C-C419FFC95581" DiskId="1">
    <Condition><![CDATA[IISVERSION="#5"]]></Condition>
    <CreateFolder>
      <Permission User="ASPNET" Domain="[ComputerName]" GenericAll="yes" Extended="yes" />
    </CreateFolder>
  </Component>
  <Component Id="DataCompIIS6" Guid="4E1930D2-C6F8-42E3-8EF2-BA859007908D" DiskId="1">
    <Condition><![CDATA[IISVERSION="#6"]]></Condition>
    <CreateFolder>
      <Permission User="IIS_WPG" Domain="[ComputerName]" GenericAll="yes" Extended="yes" />
    </CreateFolder>
  </Component>
</Directory>

Thanks,
Dana

-------------------------------------------------------------------------
Using Tomcat but need to do more? Need to support web services, security?
Get stuff done quickly with pre-integrated technology to make your job easier
Download IBM WebSphere Application Server v.1.0.1 based on Apache Geronimo
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=120709&bid=263057&dat=121642
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to