/build/static/layout/Breadcrumb_cap_w.png

How to uninstall all previous versions when deploying the latest .msi?

The GoToMeeting IT installer installs right on top of the old version, leaving multiple entries in the Programs list and in C:\Program Files (x86)\Citrix\GoToMeeting.



Does anyone know a way to cleanly deploy the latest version? I'm using KACE.

0 Comments   [ + ] Show comments

Answers (3)

Posted by: Hannibal226 9 years ago
White Belt
0
Hey,

I don't really know KACE, but I'm sure it has the same function as every softwaredeploy service.
So when u create a new package and give the parameters for installing,
u should check at this point if the uninstall path of the older version exists and if yes,
it should start the delete of this.

Maybe u read a bit deeper into the KACE service, but I'm quiet sure it's not the solution to install parallely ;)

CHEERS!
Posted by: Nico_K 9 years ago
Red Belt
0
had a similar issue recently.
I used this .vbs to uninstall all old versions:
---------------
On Error Resume Next 
Const HKEY_LOCAL_MACHINE = &H80000002 
strComputer = "." 
Set WshShell = CreateObject("wscript.Shell") 
Set oReg=GetObject("winmgmts:{impersonationLevel=impersonate}!\\" &_ 
strComputer & "\root\default:StdRegProv") 
strKeyPath = "SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" 
oReg.EnumKey HKEY_LOCAL_MACHINE, strKeyPath, arrSubKeys 
For Each subkey In arrSubKeys 
   strDisplayName = WshShell.RegRead ("HKLM\" & strKeyPath & "\" & subkey & "\DisplayName") 
   If  strDisplayName = "GoToMeeting" Then 
    WshShell.Run "msiexec.exe /norestart /X " & SubKey & " /qn", 7, True 
   End If 
Next
-----------
create for software, which is needing this handling a script.
1. run this vbs
2. run the correct msi
roll it out via scripting or managed installs depending on your preferences.

Comments:
  • Thanks for posting this, Nico. Do some of the values need to be changed for my PC? I ran it as-is but nothing happened. Not very familiar with VBS scripts, obviously :) - vmann 9 years ago
Posted by: EdT 9 years ago
Red Belt
0
You will need to check for older versions and uninstall them if found, before installing the latest. 
Whether or not you can leverage KACE to audit for old versions is outside my knowledge.
However, if the GoToMeeting application is written as an MSI, then any competent MSI packager should be able to create a transform that removes older versions using the upgrade table.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ