Search code examples
inno-setupacl

Inno Setup - Deny ACL for registry keys


I need my setup to create a registry key or value which has deny-type read policy.

I've tried that:

Root: HKLM64; Subkey: "Software\mySoftware\myKey"; ValueType: string; ValueName: "PASSWORD"; ValueData: "{code:GetUserEnteredPassword}"; Permissions: admins-full system-read; 

Unfortunately, that way created value 'PASSWORD' is still readable for users.

Please let me know if there is any idea how to create deny permissions with Inno Setup.


Solution

  • It's not possible with Inno Setup. It does not support anything like users-deny-style permissions.

    What you can do, is to execute the regini command or PowerShell script from [Run] section or Pascal Script: