I would expect that it's actually the CreateFolders action that reads the LockPermissions table when it's invoked to create the folders - and likewise for the other actions support LockPermissions.
I think the problem is that the LockPermissions table is keyed by LockObject and Table while CreateFolder is keyed by Directory_ (not Component_). Therefore you'll see in Orca (guessing, haven't tested it): CreateFolder: Directory_ | Component_ fldTest | ProductComponent1 fltTest | ProductComponent2 LockPermissions: LockObject | Table | Domain | User | Permission fldTest | CreateFolder | [ComputerName] | ASPNET | (whatever) fldTest | CreateFolder | [ComputerName] | IUSR_[ComputerName] | (whatever) When the (unconditional) ProductComponent1 is installed, CreateFolders looks for all LockPermissions that match the Directory_ key, and finds all fldTest rows in LockPermissions and applies them. Even if you added a condition to ProductComponent1, you'd still get the same problem - if it were either/or you'd be OK, but if you added the condition to ProductComponent1, to get what you want you'd need to add ASPNET in <Permission> under ProductComponent2 anyway. I really don't think it's possible with the LockPermissions table. -- Mike Dimmick -----Original Message----- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Bob Arnson Sent: 26 September 2006 17:28 To: Dana Gutride Cc: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Conditional Folder Permission Dana Gutride wrote: > I've encountered a similar problem, it seems the permission element > doesn't take into account the condition of the component it's within. > This also seems to occur both with the generic MSI way of doing this > and the extended WiX secureobj custom actions. I'm not sure how the LockPermissions table works in MSI -- it's not documented which actions access that table -- but the SecureObj CA scheduler explicitly checks component install-action state (using WcaIsInstalling). If you have a repro, please post a bug. -- sig://boB http://bobs.org ------------------------------------------------------------------------ - Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE V _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- Take Surveys. Earn Cash. Influence the Future of IT Join SourceForge.net's Techsay panel and you'll get the chance to share your opinions on IT & business topics through brief surveys -- and earn cash http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users