Here is code from an installer I have that works for me: <Component Id="CID_Logs" Guid="{837A1B74-98C9-4042-B51D-58F38448CE46}" Location="local" DiskId="1"> <CreateFolder> <Permission GenericAll="yes" User="Administrators" /> <Permission GenericRead="yes" GenericWrite="yes" User="Network Service" /> </CreateFolder> </Component>
-----Original Message----- From: Amy Rosewater [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 21, 2008 10:44 AM To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] grant permissions on a folder to a specific user if the user happens to be NT AUTHORITY\Network Service Hi All, How do you grant permissions to a folder for a specific user if the user happens to be the built in Network Service account? I have tried: <Component Id="AssignDataDirectoryPermissionsGeneric" Guid="5A9D6D2B-CBA0-4E4C-8935-FACA2446256E"> <CreateFolder Directory="DataDirectory"> <util:PermissionEx CreateFile="yes" GenericAll="yes" Read="yes" ReadAttributes="yes" WriteAttributes="yes" User="NetworkService" /> </CreateFolder> </Component> <Component Id="AssignDataDirectoryPermissionsGeneric" Guid="5A9D6D2B-CBA0-4E4C-8935-FACA2446256E"> <CreateFolder Directory="DataDirectory"> <util:PermissionEx CreateFile="yes" GenericAll="yes" Read="yes" ReadAttributes="yes" WriteAttributes="yes" User="[SQLSERVERSERVICEUSER]" /> </CreateFolder> </Component> In this scenario SQLSERVERSERVICEUSER is equal to "NT AUTHORITY\Network Service". <Component Id="AssignDataDirectoryPermissionsGeneric" Guid="5A9D6D2B-CBA0-4E4C-8935-FACA2446256E"> <CreateFolder Directory="DataDirectory"> <util:PermissionEx CreateFile="yes" GenericAll="yes" Read="yes" ReadAttributes="yes" WriteAttributes="yes" Domain="[SQLSERVERSERVICEDOMAIN]" User="[SQLSERVERSERVICEUSER]" /> </CreateFolder> </Component> In this scenario SQLSERVERSERVICEDOMAIN = "NT AUTHORITY" and SQLSERVERSERVICEUSER = "Network Service". <Component Id="AssignDataDirectoryPermissionsGeneric" Guid="5A9D6D2B-CBA0-4E4C-8935-FACA2446256E"> <CreateFolder Directory="DataDirectory"> <util:PermissionEx CreateFile="yes" GenericAll="yes" Read="yes" ReadAttributes="yes" WriteAttributes="yes" Domain="[ComputerName]" User="[SQLSERVERSERVICEUSER]" /> </CreateFolder> </Component> In this scenario SQLSERVERSERVICEUSER = "NT AUTHORITY\Network Service" Rather than just keep trying, does anyone know the answer to this one? Thanks, Amy Amy Rosewater SPECTRUM Human Resource Systems Corporation 707 17th Street Suite 3800 Denver CO, 80202 303.592.3403 [EMAIL PROTECTED] ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users ------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/ _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users