Quantcast
Channel: Configuration Manager 2012 - Application Management forum
Viewing all articles
Browse latest Browse all 4762

Software uninstalls but Software Center says Removal Failed?

$
0
0

Hi All,

We use the Powershell App Deployment Toolkit for deploying applications in SCCM 2012. I'm currently working on uninstalling Sophos VPN from machines in a certain collection in our environment.

The problem is that clients will uninstall Sophos but won't remove the Sophos folder. The detection method is set to that folder, which leads to clients returning 'Removal Failed' errors, even though the program itself uninstalled.

--
IF (test-path 'HKLM:\SOFTWARE\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\Sophos SSL VPN Client')
{
Execute-Process -Path "$envProgramFilesx86\Sophos\Sophos SSL VPN Client\Uninstall.exe" -Parameters '/S'
Start-Sleep -s 120
Remove-Folder -Path "$envProgramFilesx86\Sophos\Sophos SSL VPN Client"

}

--

Yes, I Googled. There were batch files or small scripts that I really don't want to Frankenstein into the process.

Another part about this is that the way is installed requires you to login and it downloads a user specific (cert configured) .exe file.

I've tried


  1. Adding Remove-Folder later in the deployment script. (This didn't really have any impact. )

  2. Changing the Detection Method to the uninstall.exe (the uninstall.exe disappears when it's uninstalled). However, this method for whatever reason led to all the clients I put in the collection to succeed within SCCM without actually uninstalling the program.

  3. Changing the Detection Method to use the registry. This had the same result as the second effort.

Any suggestions or advice?



Viewing all articles
Browse latest Browse all 4762

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>