1
0
mirror of https://github.com/mintty/wsltty.git synced 2025-01-31 02:01:01 +00:00
This commit is contained in:
mintty 2016-11-18 00:17:56 +01:00
parent d8c9b21b9c
commit c3c54a397f

View File

@ -18,8 +18,9 @@ copy uninstall.bat "%installdir%"
copy wsl.bat "%installdir%" copy wsl.bat "%installdir%"
copy wsl~.bat "%installdir%" copy wsl~.bat "%installdir%"
copy wsl-l.bat "%installdir%" copy wsl-l.bat "%installdir%"
copy "add to context menu.bat" "%installdir%" copy "config-context-menu.bat" "%installdir%"
copy "remove from context menu.bat" "%installdir%" copy "add to context menu.lnk" "%installdir%"
copy "remove from context menu.lnk" "%installdir%"
rem does not work without admin rights: rem does not work without admin rights:
rem copy wsl.bat "%SYSTEMROOT%\System32" rem copy wsl.bat "%SYSTEMROOT%\System32"
rem copy wsl~.bat "%SYSTEMROOT%\System32" rem copy wsl~.bat "%SYSTEMROOT%\System32"
@ -43,14 +44,17 @@ mkdir "%installdir%\home\%USERNAME%"
rem create Start Menu Folder rem create Start Menu Folder
set smf=%APPDATA%\Microsoft\Windows\Start Menu\Programs\WSLtty set smf=%APPDATA%\Microsoft\Windows\Start Menu\Programs\WSLtty
mkdir "%smf%" mkdir "%smf%"
echo on
copy "wsltty home & help.url" "%smf%" copy "wsltty home & help.url" "%smf%"
copy "WSL Bash % in Mintty.lnk" "%smf%" copy "WSL Bash %% in Mintty.lnk" "%smf%"
copy "WSL Bash ~ in Mintty.lnk" "%smf%" copy "WSL Bash ~ in Mintty.lnk" "%smf%"
copy "WSL Bash -l in Mintty.lnk" "%smf%" copy "WSL Bash -l in Mintty.lnk" "%smf%"
mkdir "%smf%\context menu shortcuts" mkdir "%smf%\context menu shortcuts"
copy "add to context menu.lnk" "%smf%\context menu shortcuts"
copy "remove from context menu.lnk" "%smf%\context menu shortcuts"
rem create Desktop Shorcuts rem create Desktop Shorcuts
copy "WSL Bash % in Mintty.lnk" "%USERPROFILE%\Desktop" copy "WSL Bash %% in Mintty.lnk" "%USERPROFILE%\Desktop"
copy "WSL Bash ~ in Mintty.lnk" "%USERPROFILE%\Desktop" copy "WSL Bash ~ in Mintty.lnk" "%USERPROFILE%\Desktop"