Uninstall custom registry keys and paths

Answered

Comments

1 comment

  • Avatar
    DevHopeful_2012

    I will paraphrase here, to avoid plaguarizing Bitrock Support. Bitrock intends on adding a setting that will allow you to define if a path and/or registry key will be uninstalled by the automagically created uninstaller.

    Until then, the following was added to the preUninstallationActionList to handle this:

    <preUninstallationActionList>
       <registryDelete>
          <key>HKEY_LOCAL_MACHINE\\SOFTWARE\\${project.shortname}\\${project.fullname} ${project.version}</key>
       </registryDelete>
       <removeDirectoryFromPath>
          <path>${installdir}/bin</path>
       </removeDirectoryFromPath>
    </preUninstallationActionList>
    

    They were also kind enough to update the "Uninstaller" section of their docs. I wanted to pass along this useful information to the forum community. Tested and verified the code above. Issue resolved.

Please sign in to leave a comment.