ppc-lang/scripts/uninstall.bat

20 lines
504 B
Batchfile
Raw Normal View History

2022-09-19 07:34:19 +00:00
@echo off
set location=C:\bin
@set /p location=Location of install (%location%):
mkdir "%location%" 2> NUL
choice /N /M "Remove everything (additional data included)? (y/n) "
if %errorlevel% equ 1 echo Deleting data...
echo Uninstalling libraries...
del "%location%\libppc-*.dll" 2> NUL
echo Uninstalling ++C...
del "%location%\++c.exe" 2> NUL
@REM else set everything=no
@REM choice /N /M "Add location to PATH? (y/n) "
@REM if %errorlevel% equ 1 setx PATH "%PATH%;%location%"