Find centralized, trusted content and collaborate around the technologies you use most.
Teams
Q&A for work
Connect and share knowledge within a single location that is structured and easy to search.
我想通过以下方式设置注册表项
如果操作系统是 Vista 则 HKLM\MyKey1\MyValue=1 否则 HKLM\MyKey2\MyValue=1
我知道如何在 WIX 中设置注册表项,但似乎无法在元素上设置条件。
从技术上讲,您应该使用两个不同的组件来安装这些注册表项,因为它们是完全不同的路径。然后您可以使用 VersionNT 属性调节组件。