cancel
Showing results for 
Search instead for 
Did you mean: 
Highlighted
New Contributor

uninstall cleanup script

Hello I need to be able to in a script way completely uninstall all log me in products, clean up the registry using our client management environment. I am a little bit perplexed that this issue has not been raised before and that there is a solution to do this?

 

Thank You

2 REPLIES 2
LogMeIn Contributor

Re: uninstall cleanup script

New Contributor

Re: uninstall cleanup script

Hello,

 

Thank You for that link. That does not, in fact, uninstall previous versions.

 

I am also trying vbscript way recommended in another forum but it's hitting other keys besides the ones I want which contain LogMeIn

On Error Resume Next
Const HKEY_LOCAL_MACHINE = &H80000002
strComputer = "."
Set WshShell = CreateObject("Wscript.Shell")
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_
strComputer & "\root\defaultSmiley FrustratedtdRegProv")
strKeyPath = "SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall"
oReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubKeys
For Each subkey In arrSubKeys
   strDisplayName = WshShell.RegRead ("HKLM\" & strKeyPath & "\" & subkey & "\Contact")
   If InStr(1, strDisplayName, "LogMeIn") Then
   msgbox "C:\Windows\system32\msiexec.exe /norestart /X " & strDisplayName & " /qn" ' Just for debugging
   WScript.Sleep 20000
   WshShell.Run "cmd /c C:\Windows\System32\msiexec.exe /X" & SubKey & " /L*V msilog.txt", 1, True
   End If
Next

Any ideas how I can clean up our old instances within our environment of several hundred PCs?

 

Thank You!