基于ALLUSERS属性设置注册表项的条件属性的问题。

基于ALLUSERS属性设置注册表项的条件属性的问题。

问题描述:

我使用安装项目创建了一个MSI包。我必须根据用户选择的"Everyone"添加注册表项。或"Just Me"选项。因此,对于我需要为所有用户创建的所有条目,我设置了"条件"。所有键的属性为"ALLUSERS = 2"。
但是,当我运行安装程序并选择"Just Me"时它仍然会创建这些条目。另外我试图将条件从根密钥设置为所有子密钥并仍然复制所有子密码。你能不能告诉我在哪里做错了。

I creating a MSI package using the Setup project. I have to add registry entries based on users' chosen "Everyone" or "Just Me" options. So, for all the entries that I need to create for all users, I set the "Condition" property for all the keys to "ALLUSERS=2". However, when I run the installer and select "Just Me" it still creates these entries. In addition I have tried to set the condition from the root key to all sub-keys and still copies all.Could you tell me where I might be doing it wrong.

谢谢,

Rajat

只需将您的注册表项放在"User / Machine Hive"中即可。在IDE中,这将自动发生。
Just put your registry entries in the "User/Machine Hive" in the IDE and that will happen automatically.