' $Header: uninstall.vbs 10-apr-2007.10:05:39 ndutko Exp $ ' ' uninstall.vbs ' ' Copyright (c) 2006, Oracle. All rights reserved. ' ' NAME ' uninstall.vbs - CCR Package deinstall software script ' ' DESCRIPTION ' This script is invoked by the Oracle CCR package deployment ' to deinstall the current version. ' ' MODIFIED (MM/DD/YY) ' ndutko 04/10/07 - Movement of calconfig.jar to sysman subtree ' nemalhot 05/22/06 - Fixing null value checks ' kgupta 05/03/06 - Bringing in sync with linux label ' jsutton 03/13/06 - Clean up syntax problems ' jsutton 01/24/06 - Creation; lifted from unix .sh variant ' Option Explicit ' ' LiveLink installation and deployment of the LiveLink Engines package ' Dim WshShell,WshEnv Dim ExecCommand Dim oExec,oStdErr,oStdOut Dim FSO Const ForReading = 1 Const ForWriting = 2 Const ForAppending = 8 Dim CCRHome ' ' CCR installation and deployment of the CCR Engines package ' Set WshShell = WScript.CreateObject("WScript.Shell") Set WshEnv = WshShell.Environment("PROCESS") Set FSO = CreateObject("Scripting.FileSystemObject") CCRHome = WshEnv("CCR_HOME") If (isUninitialized(CCRHome)) Then WScript.Echo "CCR Home is not defined" WScript.Quit(1) End If If FSO.FolderExists(CCRHome & "\\sysman") Then Call FSO.DeleteFolder(CCRHome & "\\sysman", True) End If WScript.Quit(0) 'Check whether var is initialized or not Public Function isUninitialized(ByVal var) If (IsEmpty(var) Or IsNull(var) Or Len(var)=0) then isUninitialized = True Else isUninitialized = False End If End Function