2016-09-16 13:58:30 +02:00
|
|
|
@echo off
|
|
|
|
|
2020-01-20 00:00:00 +01:00
|
|
|
if "%installdir%" == "" set installdir="%LOCALAPPDATA%\wsltty"
|
2020-04-02 14:44:32 +02:00
|
|
|
call dequote installdir
|
2016-09-16 13:58:30 +02:00
|
|
|
|
|
|
|
|
|
|
|
:shortcuts
|
|
|
|
|
2016-11-16 16:46:50 +01:00
|
|
|
rem delete Start Menu Folder
|
2020-01-20 00:00:00 +01:00
|
|
|
set smf="%APPDATA%\Microsoft\Windows\Start Menu\Programs\WSLtty"
|
2020-04-02 14:44:32 +02:00
|
|
|
call dequote smf
|
2016-11-16 16:46:50 +01:00
|
|
|
rmdir /S /Q "%smf%"
|
|
|
|
|
2017-07-28 14:14:51 +02:00
|
|
|
|
|
|
|
:start menu
|
|
|
|
|
2020-03-05 00:00:00 +01:00
|
|
|
cd /D "%installdir%"
|
2017-07-28 14:14:51 +02:00
|
|
|
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
|
|
|
|
2020-03-05 00:00:00 +01:00
|
|
|
cd /D "%installdir%"
|
2017-07-28 14:14:51 +02:00
|
|
|
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
|
|
|
|
|
2020-03-05 00:00:00 +01:00
|
|
|
cd /D "%installdir%"
|
2016-11-16 16:46:50 +01:00
|
|
|
rem currently not removing software
|
2016-09-16 13:58:30 +02:00
|
|
|
|
|
|
|
|
|
|
|
:end
|