Thanks Blair! Yes, the util:PermissionEx works fine. And to my surprise, it works on my Vista machine with WI4.0 as well. (I've changed the account to "NT Authority\LocalService" for ServiceInstall, but the folder PermissionEx still use "NT Service\AtlGateway") I thought it might fail because http://msdn.microsoft.com/library/aa369774.aspx from here I see Windows Installer versions earlier than Windows Installer 5.0 ignore the MsiLockPermissionsEx Table. Windows Installer 5.0 can install an package that contains the LockPermissions Table. I guess the util:PermissionEx will put the permissions to MsiLockPermissionsEx table if it is WI5.0, but still put them to LockPermissions table if is earlier than WI5.0?
Another question about permission: Seems the installer added more permissions than I required. In my code, I only add permissions for <util:PermissionEx GenericAll="yes" User="Administrator" /> <util:PermissionEx GenericAll="yes" User="CREATOR OWNER" /> <util:PermissionEx CreateChild="yes" User="Authenticated Users" /> <util:PermissionEx GenericAll="yes" User="NT Service\AtlGateway" /> But the result is: it also adds some special permissions for TrustInstaller, SYSTEM, Administrators and Users. These permissions are inhereted from c:\Program Files. If I use Permission, not the util:PermissionEx, these extra permissions won't be added. Is this the by design behavior of PermissionEx. What should I do to avoid this? Thanks, -Elfe -- View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Unable-to-add-permission-for-virtual-account-tp5247894p5249951.html Sent from the wix-users mailing list archive at Nabble.com. ------------------------------------------------------------------------------ This SF.net email is sponsored by Sprint What will you do first with EVO, the first 4G phone? Visit sprint.com/first -- http://p.sf.net/sfu/sprint-com-first _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users