Problems with Open-Source Downloads read and

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.

Log in to reply