WIX: How can the registry key be changed based on the OS on which the installer is running?

前端 未结 1 961
广开言路
广开言路 2021-01-03 05:09

I want to set registry keys in following way

if OS is Vista then HKLM\\MyKey1\\MyValue=1 else HKLM\\MyKey2\\MyValue=1

I know how to set Registry keys

相关标签:
1条回答
  • 2021-01-03 06:03

    Technically speaking, you should use two different Components to install those Registry keys since they are completely different paths. Then you can Condition the Components with the VersionNT property.

    0 讨论(0)
提交回复
热议问题