How to uninstall the Task Synchronization Agent in Software Delivery Solution?

book

Article ID: 179700

calendar_today

Updated On:

Products

Management Platform (Formerly known as Notification Server)

Issue/Introduction

 

Resolution

Question
Can the Task Synchronization Agent that comes with Software Delivery Solution be completely removed?

Answer
The steps to completely uninstall the Task Synchronization Agent are:

1) Unregistered the ‘AeXTaskSynchAgent.dll’ using
     regsvr32 -u "<Install Dir of Altiris Agent>\AeXTaskSynchAgent.dll"

2) To Remove from Add or Remove Programs
     a) Delete Key - HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\
        {2851123E-5786-41BE-A3F1-A9B21E499EEB}
     b) Delete Key - HKEY_CLASSES_ROOT\Installer\Products\E32115826875EB143A1F9A2BE194E9BE
     c) Delete Key - HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\Altiris Agent\Plugin Objects\Agents\Task Synchronization

3) Delete the Folder/Files
     a) Delete the Folder  “Task Synchronization” from "<Install Dir of Altiris Agent>”
     b) Delete the File “AeXTaskSynchAgent.dll” from "<Install Dir of Altiris Agent>”

This process can be automated by running the attached "19896.vbs".

The contents of the VBS are as follows:

On Error Resume Next
Dim FSO, WshShell, agentDir

Set FSO = CreateObject("Scripting.FileSystemObject")
Set WshShell = WScript.CreateObject("WScript.Shell" )

agentDir = WshShell.RegRead ("HKLM\Software\Altiris\Altiris Agent\InstallDir")

If FSO.FileExists(agentDir & "\AeXTaskSynchAgent.dll") Then

 WshShell.run "regsvr32 -u -s " & Chr(34) & agentDir & "\AeXTaskSynchAgent.dll" & Chr(34), 1, true

 WshShell.RegDelete "HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\{2851123E-5786-41BE-A3F1-A9B21E499EEB}\"
 WshShell.RegDelete "HKEY_CLASSES_ROOT\Installer\Products\E32115826875EB143A1F9A2BE194E9BE\SourceList\Media\"
 WshShell.RegDelete "HKEY_CLASSES_ROOT\Installer\Products\E32115826875EB143A1F9A2BE194E9BE\SourceList\Net\"
 WshShell.RegDelete "HKEY_CLASSES_ROOT\Installer\Products\E32115826875EB143A1F9A2BE194E9BE\SourceList\"
 WshShell.RegDelete "HKEY_CLASSES_ROOT\Installer\Products\E32115826875EB143A1F9A2BE194E9BE\"
 WshShell.RegDelete "HKEY_LOCAL_MACHINE\SOFTWARE\Altiris\Altiris Agent\Plugin Objects\Agents\Task Synchronization\"

 If FSO.FolderExists(agentDir & "\Task Synchronization") Then
    FSO.deleteFolder agentDir & "\Task Synchronization"
 End If
 
 If FSO.FileExists(agentDir & "\AeXTaskSynchAgent.dll") Then
    FSO.DeleteFile agentDir & "\AeXTaskSynchAgent.dll"
 End If

End If

Set FSO = NOTHING
Set WshShell = NOTHING
Set agentDir = NOTHING

 

Attachments

19896.vbs get_app
19896.vbs get_app