TROUBLESHOOTING: Uninstall BES Clients (Non-Standard Installation Directory)
| 0 Votes |
Description
| If you want to remove the BES Clients from a computer, you can uninstall it using this task.
Note: You are not able to completely remove all traces of the BES Client because the client was not installed in a folder named "Enterprise Client" or "BES Client". This is a safety precaution to protect against erasing valuable data not associated with the BES Client. Important Note: The BES Clients will not be able to report the final status of the action because they will be removed before the action completes. Instead, the BES Clients will stop responding and the action status will report back as 'Evaluating', 'Failed', or 'Running'. You will need to manually remove the computer from the BES Console after the BES Client is uninstalled. |
Property Details
| 562 | |
| TROUBLESHOOTING: Uninstall BES Clients (Non-Standard Installation Directory) | |
| Troubleshooting | |
| 0 | |
| BigFix | |
| <Unspecified> | |
| Low | |
| 5/12/2003 12:00:00 AM | |
| BES Client Clients Note Relay | |
| besSupport on 10/17/2012 1:16:12 PM | |
| danielheth on 10/17/2012 1:16:12 PM | |
| 7413 Views / 7 Downloads | |
* Average over 0 ratings.
** Log In or Register to add your rating.
|
Relevance
| Used in 223 fixlets | * Results in a true/false |
| Used in 24 fixlets | * Results in a true/false |
| Used in 1 fixlet | * Results in a true/false |
| Used in 1 fixlet | * Session Relevance |
Actions
Action 1
// create a batch file to create the temp folder
delete __appendfile
delete tempdir.bat
appendfile @echo off
appendfile {if (exists variable "temp" of environment) then ("") else if (exists folder "temp" of windows folder) then ("") else ("mkdir " & pathname of windows folder as string & "\temp")}
move __appendfile tempdir.bat
wait "{pathname of client folder of site "BESSupport" & "\RunQuiet.exe"}" tempdir.bat
delete tempdir.bat
delete "{if (exists variable "temp" of environment) then (value of variable "temp" of environment as string & "\RunQuiet.exe") else (pathname of folder "temp" of windows folder as string & "\RunQuiet.exe")}"
delete "{if (exists variable "temp" of environment) then (value of variable "temp" of environment as string & "\delClient.iss") else (pathname of folder "temp" of windows folder as string & "\delClient.iss")}"
copy "{pathname of client folder of site "BESSupport" & "\RunQuiet.exe"}" "{if (exists variable "temp" of environment) then (value of variable "temp" of environment as string & "\RunQuiet.exe") else (pathname of folder "temp" of windows folder as string & "\RunQuiet.exe")}"
copy "{pathname of client folder of site "BESSupport" & "\delClient.iss"}" "{if (exists variable "temp" of environment) then (value of variable "temp" of environment as string & "\delClient.iss") else (pathname of folder "temp" of windows folder as string & "\delClient.iss")}"
// create a batch file to uninstall client and run BESRemove from a different directory
appendfile @echo off
appendfile cd {if (exists variable "temp" of environment) then (value of variable "temp" of environment as string) else (pathname of folder "temp" of windows folder as string)}
appendfile {(if it ends with "%00" then preceding text of first "%00" of it else it) of (value "UninstallString" of key ("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" & "%7B" & "BF7023BC-319B-4FE1-B569-C854A19F81F8" & "%7D") of registry as string)} {if value "UninstallString" of key ("HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\" & "%7B" & "BF7023BC-319B-4FE1-B569-C854A19F81F8" & "%7D") of registry as string as lowercase starts with "msiexec" then "/qn" else ("/s --uninstallsilent " & (if version of regapp "BESClient.exe" < "5.1" then " /f1 %22" & (if (exists variable "temp" of environment) then (value of variable "temp" of environment as string & "\delClient.iss") else (pathname of folder "temp" of windows folder as string & "\delClient.iss")) & "%22" else ""))}
// move batch file to temp directory
delete "{if (exists variable "temp" of environment) then (value of variable "temp" of environment as string & "\RunBESRemove.bat") else (pathname of folder "temp" of windows folder as string & "\RunBESRemove.bat")}"
copy "__appendfile" "{if (exists variable "temp" of environment) then (value of variable "temp" of environment as string & "\RunBESRemove.bat") else (pathname of folder "temp" of windows folder as string & "\RunBESRemove.bat")}"
// run batchfile
run "{if (exists variable "temp" of environment) then (value of variable "temp" of environment as string & "\RunQuiet.exe") else (pathname of folder "temp" of windows folder as string & "\RunQuiet.exe")}" "{if (exists variable "temp" of environment) then (value of variable "temp" of environment as string & "\RunBESRemove.bat") else (pathname of folder "temp" of windows folder as string & "\RunBESRemove.bat")}"
This action will be considered successful when the applicability relevance evaluates to false.
Sharing
| Social Media: |

