AnsweredAssumed Answered

Uninstall does not remove folder path

Question asked by blackjack on Dec 20, 2018
Latest reply on Dec 21, 2018 by blackjack

Hi,

 

Can someone tell me the correct way to uninstall the agent to leave no trace?

 

Here are the steps in my testing:

 

  • I install the msi via Admin Powershell or CMD ".\snowagent-6.0.2.x64.msi /quiet"
  • The agent service is now installed and the folder structure created in C:\Program Files\Snow Software\Inventory\Agent\
  • I go to uninstall via the MSI with /uninstall and I get an error about the patch package could not be opened (See below)
  • I uninstall via the snowagent.exe.
    • This uninstalls the Service
    • But it does NOT delete the folder structure. It shows the error Could not remove uninstall information. This needs admin rights.

 

I have tested this process on Windows 10 and Server 2016 with the same problem.

 

Any tips?

We're looking to get this into SCCM, but I'm just testing manually for now.

 

PS C:\Temp> Get-Service *snow*
PS C:\Temp> test-path "C:\Program Files\Snow Software\Inventory\Agent"
False
PS C:\Temp> cd C:\Temp\mp^C
PS C:\Temp> .\snowagent-6.0.2.x64.msi /quiet
PS C:\Temp> Get-Service *snow*

Status Name DisplayName
------ ---- -----------
Running SnowInventoryAg... Snow Inventory Agent


PS C:\Temp> test-path "C:\Program Files\Snow Software\Inventory\Agent"
True
PS C:\Temp> .\snowagent-6.0.2.x64.msi /uninstall <<<< THIS ERRORS

 


PS C:\Temp> Get-Service *snow*

Status Name DisplayName
------ ---- -----------
Running SnowInventoryAg... Snow Inventory Agent


PS C:\Temp> test-path "C:\Program Files\Snow Software\Inventory\Agent"
True
PS C:\Temp> C:\"Program Files"\"Snow Software"\Inventory\Agent\snowagent.exe uninstall
Removed the service.
Could not remove uninstall information. This needs admin rights.
PS C:\Temp> Get-Service *snow*
PS C:\Temp> test-path "C:\Program Files\Snow Software\Inventory\Agent"
True <<<< Files still here
PS C:\Temp>

Outcomes