Registry permissions
Every key in the registry has a set of permissions saved to it that affects which users can read or write to it. You can see this in the Registry Editor by going to Run | regedit, right-clicking on a key, and selecting Permissions. WiX allows you to change these permissions with its PermissionEx
element.
PermissionEx
isn't in the default WiX namespace, but rather in WixUtilExtension
. So, you'll need to add a reference in your project to WixUtilExtension
, found in the WiX bin
directory, and add the UtilExtension
namespace to your Wix
element. Here's the updated Wix
element:
<Wixxmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension">
We've assigned the UtilExtension
namespace ...
Get WiX 3.6: A Developer's Guide to Windows Installer XML now with the O’Reilly learning platform.
O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.