mirror of
				https://github.com/mintty/wsltty.git
				synced 2025-10-31 15:12:08 +00:00 
			
		
		
		
	uninstall to remove desktop shortcut (#184)
This commit is contained in:
		| @@ -275,6 +275,14 @@ config () { | ||||
|         cmd /C del "%APPDATA%\\Microsoft\\Windows\\Start Menu\\Programs\\$name Terminal.lnk" | ||||
|         cmd /C del "%LOCALAPPDATA%\\Microsoft\\WindowsApps\\$name.bat" | ||||
|         cmd /C del "%LOCALAPPDATA%\\Microsoft\\WindowsApps\\$name~.bat" | ||||
|  | ||||
|         if [ "$name" = "WSL" ] | ||||
|         then | ||||
|               # determine actual Desktop folder | ||||
|               desktopkey='\HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders\Desktop' | ||||
|               desktop=`regtool get "$desktopkey"` | ||||
|               cmd /C del "$desktop\\$name Terminal.lnk" | ||||
|         fi | ||||
|       else | ||||
|         # desktop shortcut in %USERPROFILE% -> Start Menu - WSLtty | ||||
|         cscript /nologo mkshortcut.vbs "/name:$name Terminal %" | ||||
|   | ||||
		Reference in New Issue
	
	Block a user