I often get a question how to uninstall software using Altiris Deployment Solution. This is not alway's as easy as we think. Below is a script that I wrote for a customer that can be used.
The script uninstalls Novell Groupwise, and it can be used as a sample to get the job done.
The example describes the uninstall for a XP client, A laptop with XP and a terminal server.
Change the variables as you wish.
::setting variables SET DEPLOY_DRV=z: SET DEPLOY_PATH=\novell.groupwise.uninstall set SRC=%DEPLOY_DRV%%DEPLOY_PATH% if not exist "%SYSTEMDRIVE%\temp" md "%SYSTEMDRIVE%\temp" if not exist "%SYSTEMDRIVE%\temp\client" md "%SYSTEMDRIVE%\temp\client" goto %CLNT% echo No client variable set! exit :DESKTOP xcopy "%SRC%\*.*" "%SYSTEMDRIVE%\apps\Novell\GroupWise\" /s /e /v /y cd /d "%SYSTEMDRIVE%\apps\Novell\GroupWise\" NXGWCR65.EXE /noui if exist "C:\Documents and Settings\All Users\Menu Start\Programma's\Opstarten\GroupWise Notify.lnk" del /q /f "C:\Documents and Settings\All Users\Menu Start\Programma's\Opstarten\GroupWise Notify.lnk" if exist "C:\Documents and Settings\All Users\Bureaublad\GroupWise.lnk" del /q /f "C:\Documents and Settings\All Users\Bureaublad\GroupWise.lnk" if exist "c:\apps\Microsoft\Office\Office\Xlstart\gwxl97.xla" del /q /f "c:\apps\Microsoft\Office\Office\Xlstart\gwxl97.xla" cd /d c:\apps rd novell /s /q goto end1 :LAPTOP xcopy "%SRC%\*.*" "%SYSTEMDRIVE%\apps\Novell\GroupWise\" /s /e /v /y cd /d "%SYSTEMDRIVE%\apps\Novell\GroupWise\" NXGWCR65.EXE /noui if exist "C:\Documents and Settings\All Users\Menu Start\Programma's\Opstarten\GroupWise Notify.lnk" del /q /f "C:\Documents and Settings\All Users\Menu Start\Programma's\Opstarten\GroupWise Notify.lnk" if exist "C:\Documents and Settings\All Users\Menu Start\Programma's\Novell Groupwise" rd "C:\Documents and Settings\All Users\Menu Start\Programma's\Novell Groupwise" /s /q if exist "C:\Documents and Settings\All Users\Bureaublad\GroupWise.lnk" del /q /f "C:\Documents and Settings\All Users\Bureaublad\GroupWise.lnk" if exist "c:\apps\Microsoft\Office\Office\Xlstart\gwxl97.xla" del /q /f "c:\apps\Microsoft\Office\Office\Xlstart\gwxl97.xla" cd /d c:\apps rd novell /s /q goto end1 :TSERVER xcopy "%SRC%\*.*" "w:\apps\Novell\GroupWise\" /s /e /v /y cd /d "w:\apps\Novell\GroupWise\" NXGWCR65.EXE /noui if exist "v:\Documents and Settings\All Users\Start Menu\Programs\Startup\GroupWise Notify.lnk" del /q /f "v:\Documents and Settings\All Users\Start Menu\Programs\Startup\GroupWise Notify.lnk" if exist "v:\Documents and Settings\All Users\Desktop\GroupWise.lnk" del /q /f "v:\Documents and Settings\All Users\Desktop\GroupWise.lnk" if exist "w:\apps\Microsoft\Office\Office\Xlstart\gwxl97.xla" del /q /f "w:\apps\Microsoft\Office\Office\Xlstart\gwxl97.xla" cd /d w:\apps rd novell /s /q goto end1 :end1 echo deleting GroupWise Notifier startup shortcut if exist "%ALLUSERSPROFILE%\Start Menu\Programs\Startup\GroupWise Notify.lnk" del /q /f "%ALLUSERSPROFILE%\Start Menu\Programs\Startup\GroupWise Notify.lnk" if exist "%ALLUSERSPROFILE%\Desktop\GroupWise.lnk" del /q /f "%ALLUSERSPROFILE%\Desktop\GroupWise.lnk" if exist "%ALLUSERSPROFILE%\Bureaublad\GroupWise.lnk" del /q /f "%ALLUSERSPROFILE%\Bureaublad\GroupWise.lnk" if exist "%ALLUSERSPROFILE%\Menu Start\Programma's\Opstarten\GroupWise Notify.lnk" del /q /f "%ALLUSERSPROFILE%\Menu Start\Programma's\Opstarten\GroupWise Notify.lnk" echo done exit
Use this script to your advantage and uninstall any local software as you wish.
Regards Erik Westhovens