2016-09-16 13:58:30 +02:00
|
|
|
@echo off
|
|
|
|
|
2017-05-19 22:19:20 +02:00
|
|
|
if "%installdir%" == "" set installdir=%LOCALAPPDATA%\wsltty
|
2016-09-16 13:58:30 +02:00
|
|
|
|
|
|
|
|
|
|
|
:shortcuts
|
|
|
|
|
2016-11-16 16:46:50 +01:00
|
|
|
rem delete Start Menu Folder
|
|
|
|
set smf=%APPDATA%\Microsoft\Windows\Start Menu\Programs\WSLtty
|
|
|
|
rmdir /S /Q "%smf%"
|
|
|
|
|
2017-07-28 14:14:51 +02:00
|
|
|
rem delete Desktop Shortcuts (not installed anymore)
|
|
|
|
rem del "%USERPROFILE%\Desktop\WSL % in Mintty.lnk"
|
|
|
|
rem del "%USERPROFILE%\Desktop\WSL ~ in Mintty.lnk"
|
|
|
|
|
|
|
|
|
|
|
|
:start menu
|
|
|
|
|
|
|
|
cd %installdir%
|
|
|
|
bin\dash.exe config-distros.sh -shortcuts-remove
|
2016-09-16 13:58:30 +02:00
|
|
|
|
|
|
|
|
2016-11-16 16:46:50 +01:00
|
|
|
:explorer context menu
|
2016-09-16 13:58:30 +02:00
|
|
|
|
2017-07-28 14:14:51 +02:00
|
|
|
cd %installdir%
|
|
|
|
bin\dash.exe config-distros.sh -contextmenu-remove
|
2016-09-16 13:58:30 +02:00
|
|
|
|
2016-11-16 16:46:50 +01:00
|
|
|
|
|
|
|
:undeploy
|
|
|
|
|
2017-05-19 22:19:20 +02:00
|
|
|
cd %installdir%
|
2016-11-16 16:46:50 +01:00
|
|
|
rem currently not removing software
|
2016-09-16 13:58:30 +02:00
|
|
|
|
|
|
|
|
|
|
|
:end
|