@ECHO OFF& TITLE 卸载
Md "%WinDir%\System32\test_permissions" 2>NUL||(Echo 请使用右键管理员身份运行&&Pause >NUL&&Exit)
taskkill /f /im Xshell* 2
sc stop "FlexNet Licensing Service"
sc delete "FlexNet Licensing Service"
taskkill /f /im Xshell* >NUL 2>NUL
rd/s/q "%ProgramData%\NetSarang\Xshell" 2>NUL
rd/s/q "%AllUsersProfile%\NetSarang\Xshell"2>NUL
reg delete HKCU\Software\NetSarang\Xshell /F>NUL 2>NUL
reg delete HKLM\SOFTWARE\NetSarang\Xshell /F>NUL 2>NUL
reg delete HKLM\SOFTWARE\Wow6432Node\NetSarang\Xshell /F>NUL 2>NUL
