How to determine if a registry key exists in Wix

I want to determine if a registry key exists in Wix. I cannot make any assumptions about the names of values ​​in this key, but at least one exists. The default value is not set. Is it possible to check if a key exists (and, if desired, if it has any values) without using custom actions?

+3
source share
1 answer

Take a look at RegistrySearch

Usage example:

    <Property Id="MYRegSearch" Value="AVaLue" Secure="yes">
        <RegistrySearch Id="RegSearch" Root="HKLM" Key="Software\!(wix.Manufacturer)\!(wix.ShortProduct)" Name="Values" Type="raw"/>
    </Property>
+5
source

Source: https://habr.com/ru/post/1717938/


All Articles