开发者

How to search a (Default) registry entry with value (value not set) from WIX?

How can we search a (Default) registry entry with value (value no开发者_运维百科t set) from WIX?I tried by using RegistrySearch without Name attribute still its not working.Anyhelp would be appreciated.


(value not set) is not a real value. It's just what you see in regedit when the (Default) value for the key is actually not set.

If you do a RegistrySearch search for a value that is not set, or a registry key that does not exists, then in both cases the windows installer property will not be set. You cannot make the distinction between both.

So how do you verify that a registry key is present or not? The simplest way is to search for another value that is always set when the key is present, instead of searching for (Default). Typically there is one. If not, you'll have to write your own custom action as detailed in this answer.

0

上一篇:

下一篇:

精彩评论

暂无评论...
验证码 换一张
取 消

最新问答

问答排行榜