Jump to content
Kevin Carbonaro

[SOLVED] utorrent uninstallation script - need help on last bit

Recommended Posts

Posted (edited)

I am trying to automatically uninstall utorrent, however it's own uninstaller is leaving registry stuff behind, one of them being its entry in the add/remove list in Windows.

Automate will still detect it as being installed even though it is not there anymore.

My script does the following:

Shell Enhanced: taskkill /IM utorrent.exe /F
Shell Enahnced: "c:\users\%ComputerUsername%\appdata\roaming\utorrent\utorrent.exe" /UNINSTALL /S

The registry key I need to remove is under HKCU:


On the physical machine running cmd as admin I tested successfully reg delete and Powershell, however the same commands in a labtech script will not delete the key and its sub-keys.

The Powershell as admin script command I tried:
Remove-Item -Path HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\uTorrent -Recurse

The Registry Delete Key command I tried:
reg delete HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\uTorrent /F

Any ideas of how I can remove the registry key?

Attached the current status of the script in case you need to test.

Uninstall uTorrent.xml

Edited by Kevin Carbonaro
attached script

Share this post

Link to post
Share on other sites
Posted (edited)

I tried the normal ones but did not work either, however managed to get it working using the Registry Delete Key

The uninstall/removal process is as follows:


Notice the trailing backslash at the end of the Delete Registry line. Once I added that, the key was deleted successfully.

Edited by Kevin Carbonaro

Share this post

Link to post
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Create New...