You'll want to use <util:PermissionEx> instead. Include  
WixUtilExtension.dll with and use:

<util:PermissionEx GenericAll="yes" Read="yes" Write="yes"  
User="NetworkService"/>

This will append the permissions rather than replacing them.

Remember to add xmlns:util="http://schemas.microsoft.com/wix/UtilExtension 
" in your <Wix> element.

-kevin



> I am using Wix Release 3.0.4102.0 and I want to grant Network  
> Service access
> to Application Event log. I am declaring this as:
>
>                <Component Id="RegKeyPermissionComponent" DiskId="1"
> Guid="A4FA2F01-DC4A-4CA7-995F-56947018EFCE" KeyPath="yes">
>                    <RegistryKey Id="ApplicationEventLogAccess"  
> Root="HKLM"
> Key="SYSTEM\CurrentControlSet\Services\Eventlog\Application"
> Action="create">
>                        <Permission User="NetworkService"  
> GenericAll="yes"
> Read="yes" Write="yes" />
>                    </RegistryKey>
>                    <RegistryKey Id="EventLogAccess" Root="HKLM"
> Key="SYSTEM\CurrentControlSet\Services\Eventlog" Action="create">
>                        <Permission User="NetworkService"  
> GenericAll="yes"
> Read="yes" Write="yes" />
>                    </RegistryKey>
>                </Component>
>
> This is working fine. However, all other user/group permissions are  
> not
> being retained after the installation ,i.e., I can find only System  
> and
> Network Service having access to the Event Log in the registry. As a  
> result,
> after installation, I am unable to see the event logs in Event Viewer.
>
> I am using Windows Server 2003 Enterprise x64 Edition Service Pack 2.
>
> Am I performing the registry operation correctly?

-------------------------------------------------------------------------
This SF.net email is sponsored by the 2008 JavaOne(SM) Conference 
Don't miss this year's exciting event. There's still time to save $100. 
Use priority code J8TL2D2. 
http://ad.doubleclick.net/clk;198757673;13503038;p?http://java.sun.com/javaone
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to