Question

How can I remove a Windows registry key that has subkeys inside?

How can I remove a Windows registry key that has subkeys inside?

Answer:

You can remove a main Windows registry key using a <registryDelete> action without specifying any <name> and without a final \ in the <key> value. For example:


     <registryDelete>
             <key>HKEY_LOCAL_MACHINE\SOFTWARE\My Software\${product_fullname}\${product_version_short}</key>
     </registryDelete>