Kristoffer Lindvall
Kristoffer Lindvall

Reputation: 2682

Wix RegistrySearch on multiple places

Is it possible to search the registry in multiple places for a value?

I want to get the value from key X, but if it's not there, I want to get it from key Y.

Upvotes: 11

Views: 1913

Answers (1)

Yan Sklyarenko
Yan Sklyarenko

Reputation: 32270

You can author a number of RegistrySearch elements under a single Property element. Remember that if a number of keys/values are found, the last will end up as a property values. So, you should probably start with the key/value which will most likely exist, and add those which might not underneath. Play with it before putting into production :-)

Upvotes: 10

Related Questions