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:

HKCU\Software\Microsoft\Windows\CurrentVersion\Uninstall\uTorrent

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:
 

image.thumb.png.20898cb84b2cff373cb1b21aab55ab04.png

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

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

×