Registered member login:
Register Now
Altirigos » Homepage2

» Current Poll
Do you leave the Aclient enabled?
YES - 82.31%
107 Votes
NO - 17.69%
23 Votes
Total Votes: 130
You may not vote on this poll.
» Stats
Members: 9,497
Threads: 11,751
Posts: 55,302
Top Poster: Nick (4,981)
Welcome our newest member, bobsha
» Online Users: 57
5 members and 52 guests
bobsha, g00ner, gerardsweeney, jahnemar, tmsmith2
Most users online at once 294, 06-30-2007 at 12:24 PM.
» March 2010
S M T W T F S
28 1 2 3 4 5 6
7 8 9 10 11 12 13
14 15 16 17 18 19 20
21 22 23 24 25 26 27
28 29 30 31 123
View Single Post
Old 01-06-2009, 04:50 AM   #2 (permalink)
gerardsweeney
 
Status: Altiris Admin
Join Date: 10-30-2008
Location: Glasgow
Posts: 34


I knocked together a VERY quick Autoit script, which you're more than welcome to use :-)

It's a slight variation on the official KB, as it gets rid of all of the Altiris registry entry, and the uninstall is done over 3 runs, rather than 1..

This is based on Juice tech tip 2249 (I can't post the link yet as I don't have enough postings)


Forgive my code - I am teh suck, or something...

Dim $Exe
Dim $Syntax
Dim $BAT
Dim $RegKey
Dim $Dir

$Dir = "C:\Program Files\Altiris\ALTIRIS AGENT"
$Exe = $Dir & "\AeXAgentUtil.exe"

; Check file exists first, exit if not.
If FileExists($Exe) = 0 then
msgbox(16, "File error", $Exe & " not found. Exiting", 2)
EXIT
EndIf


; Got this far, so here we go..

; Generate the uninstall BAT file
$Syntax = "@ECHO OFF" & @CRLF
$Syntax = $Syntax & Chr(34) & $EXE & Chr(34) & " /DeleteDevices" & @CRLF
$Syntax = $Syntax & Chr(34) & $EXE & Chr(34) & " /UninstallAgents" & @CRLF
$Syntax = $Syntax & Chr(34) & $EXE & Chr(34) & " /Clean" & @CRLF


$BAT = @TempDir & "\CleanAlt.bat"
$Write = FileOpen($BAT, 2)
FileWriteLine($Write, $Syntax)
FileClose($Write)
RunWait($BAT, @TempDir, @SW_HIDE)
FileDelete($BAT)

; Get rid of Altiris registry entry
RegDelete("KEY_LOCAL_MACHINE\SOFTWARE\Altiris")


; Get rid of Altiris* Classes
For $i= 1 to 65535
$RegKey = "HKEY_LOCAL_MACHINE\SOFTWARE\Classes"
$RegVal = RegEnumKey($RegKey, $i)
If @error <> 0 then ExitLoop
If StringMid($RegVal, 1, 7) = "Altiris" then
RegDelete($RegKey & "\" & $RegVal)
EndIf
Next


; Get rid of AppID
RegDelete("HKEY_LOCAL_MACHINE\SOFTWARE\Classes\App ID\{5E038245-CF81-44BE-8018-9A2981B9DC9B}")

; Get rid of AEX*.* under Windows directory
FileDelete(@WindowsDir & "\AeX*.*")

; Get rid of the Agent Program folder
DirRemove($Dir, 1)
gerardsweeney is online now   Reply With Quote
 
Powered by vBadvanced CMPS v3.0 RC2

All times are GMT -4. The time now is 08:05 AM.


Powered by vBulletin® Version 3.7.4
Copyright ©2000 - 2010, Jelsoft Enterprises Ltd.
vB.Sponsors
Altirigos