Uninstall all Zenith software

Forums

Forums
Forums, discussions, and Q&A for all products.

Uninstall all Zenith software

  • Does anyone have a script to uninstall all Zenith software?

    Legacy Forum Name: Uninstall all Zenith software,
    Legacy Posted By Username: trnetwork
  • I know I saw some scripts in the past. But I just searched the forum for Saaz and for Zenith, and couldn't find any matches.

    Legacy Forum Name: Scripts Forum,
    Legacy Posted By Username: lwolf
  • I have some AutoIT scripts that I've used in the past if you're interested.

    Legacy Forum Name: Scripts Forum,
    Legacy Posted By Username: lowray1975
  • Please share. I would be interested.

    Legacy Forum Name: Scripts Forum,
    Legacy Posted By Username: trnetwork
  • This was my first AutoIT script, wow the memories... The program exits with either a 0 for success or a 1 for failure. You can use this to write a log entry to the Kaseya script log. Make sure you watch for line wraps and whatnot.

    ; Author:		Joshua Cook
    ; Email: jcook@help-now.com
    ; Web: www.help-now.com / www.joshcook.net
    ;
    ; Script Function:
    ; Uninstalled Zenith Saaz Client
    ;
    ; Release Dates:
    ; 20080412 - Initial Release
    ;


    AutoItSetOption("TrayIconHide", 1)

    $logfile = @ScriptDir & "\UninstallSaazScript.log"
    $logfileSaaz = @ScriptDir & "\UninstallSaazExitCode.log"
    $rootprogrampath = "C:\Program Files\SAAZOD\"
    $uninstallpath = "C:\Program Files\SAAZOD\Uninstall\"
    $uninstallfile = "uninstall.exe"
    $error = FileExists($uninstallpath & $uninstallfile)

    FileWriteLine($logfile, "Uninstall Saaz Client (" & @MON & "/" & @MDAY & "/" & @YEAR & " @ " & @HOUR & ":" & @MIN & ":" & @SEC & ")")

    If $error = 1 Then

    ;Run install program for Saaz
    $exitcode = RunWait($uninstallpath & $uninstallfile & " /S /U:uninstall.xml", $uninstallpath, @SW_HIDE)
    FileWriteLine($logfile, " - Uninstall program")
    FileWriteLine($logfile, " Exit Code: " & $exitcode)

    FileWrite($logfileSaaz, $exitcode)

    ;Remove program file directory if still around
    DirRemove($rootprogrampath, 1)
    FileWriteLine($logfile, " - Removed program file directory")

    ;Remove start menu entry if still around
    DirRemove("C:\Documents and Settings\All Users\Start Menu\Programs\Remote Support", 1)
    FileWriteLine($logfile, " - Removed start menu entries")

    FileWriteLine($logfile, " * Completed")
    FileWriteLine($logfile, "")
    Exit(0)

    Else

    FileWriteLine($logfile, " * Error - Uninstall program not found")
    FileWriteLine($logfile, "")
    Exit(1)

    EndIf


    Legacy Forum Name: Scripts Forum,
    Legacy Posted By Username: lowray1975