我正在尝试安装只能由特定用户访问的注册表项。安装程序的每个其他部分都工作(安装服务并注册一个组件)。这是片段。Wix RegistryKey权限
<Component Id="cmpXXX" Guid="{YYY}">
<RegistryKey Root="HKLM" Key="Software\ZZZ" Action="createAndRemoveOnUninstall">
<RegistryKey Key="Machine" Action="createAndRemoveOnUninstall">
<Permission User="Administrators" GenericAll="yes" />
<RegistryValue Type="string" Name="ID" Value="SecretID" />
<RegistryValue Type="string" Name="Key" Value="SecretKey" />
</RegistryKey>
</RegistryKey>
</Component>
安装程序完成后,所有用户都可以读取密钥(而不仅仅是管理员)。我的命令行安装是这样的:
msiexec /i installer.msi /l*v installlog.txt
日志没有提到有关权限。 当我在Orca中打开数据库时,LockPermissions表显示权限行,它看起来很好。
我在做什么错?