source: CMT/v1r18p20041201/mgr/cmt_uninstalldir_action.bat @ 1

Last change on this file since 1 was 1, checked in by arnault, 19 years ago

Import all tags

File size: 740 bytes
Line 
1
2@echo off
3
4rem
5rem 1  absolute source directory
6rem 2  file name (a directory)
7rem 3  absolute installation directory
8rem
9
10set source_dir=%1%
11set dir_name=%2%
12set install_dir=%3%
13
14if "%source_dir%"=="" exit /B 0
15if "%dir_name%"=="" exit /B 0
16if "%install_dir%"=="" exit /B 0
17
18set dest_file_path=%install_dir%\%dir_name%
19set ref_file=%dest_file_path%.cmtref
20set full_source_name=%source_dir%\%dir_name%
21
22cd %source_dir%
23
24if %install_dir%=="" exit /B 0
25
26if NOT exist %install_dir% echo "Cannot uninstall directory %dir_name%, no installation directory" & exit /B 0
27
28echo Removing directory %dir_name% from %install_dir%
29
30if exist %dest_file_path% rmdir /S/Q %dest_file_path%
31if exist %ref_file% del %ref_file%
Note: See TracBrowser for help on using the repository browser.