[wix-users] Registry Keys and permissions

Stephen Woolhead stephen at perfectphase.com
Thu Dec 10 03:29:58 PST 2015


Hi, very basic question (I hope).  I want to create a registry key and add permissions to an account to right to that key, but keep the inherited permissions intact, but can't seem to find a way to do this.  I'm using the following fragment


<RegistryKey Root="HKLM" Key="SOFTWARE\[Manufacturer]\myProduct\Services\MyThing" ForceCreateOnInstall="yes" >
                    <Permission User="[ServiceAccountFullyQualified]" GenericAll="yes"/>
 </RegistryKey>

This creates a new key at SOFTWARE\[Manufacturer]\myProduct\Services that has the permission added, but also has all inheritance disabled.  Also the permissions are created at a level below what I wanted, I wanted write access at the myProduct\Services\MyThing level, not at the myProduct\Services  I'm assuming that this is because this was the first node that was created.

So my questions are:

1) How do I create a key and retain inherited permissions
2) How do I apply the permissions only at the full key I specify, not at some parent.

Thanks,

Stephen.





More information about the wix-users mailing list