@IF NOT DEFINED CBIN (ECHO CBIN is not defined, suggesting CCP4 is not set up.) 
@IF NOT DEFINED CBIN (ECHO Manual uninstallation of ProSMART is required.)
@IF NOT DEFINED CBIN (PAUSE)
@IF NOT DEFINED CBIN (EXIT)

@ECHO ProSMART executables and library are being removed from: %CCP4%\bin and %CCP4%\share

@ERASE %CCP4%\bin\prosmart.exe
@ERASE %CCP4%\bin\prosmart_align.exe
@ERASE %CCP4%\bin\prosmart_restrain.exe
@RMDIR %CCP4%\share\prosmart_data /S/Q

@PAUSE