Problems with Open-Source Downloads read https://www.qt.io/blog/problem-with-open-source-downloads and https://forum.qt.io/post/638946

Delete windows registry during uninstallation



  • Hi All,
    I need to delete windows registry key during UNINSTALLATION in "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\XYZ".

    I have already tried following two ways.

    1. installerScript.js
      // component.addElevatedOperation("Execute","UNDOEXECUTE","cmd /C reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\XYZ" /f");

    2. ControlScript.js
      installer.performOperation("Execute", "cmd /C reg delete "HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\XYZ" /f");

    Your reply will be much appreciated.
    Thanks


Log in to reply