-
Notifications
You must be signed in to change notification settings - Fork 8
/
uninstall-mixedvr-manager.bat
41 lines (33 loc) · 1.75 KB
/
uninstall-mixedvr-manager.bat
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
@echo off
:: NOTE: This installer must be run as administrator (ty: https://stackoverflow.com/a/11995662/2611730)
echo Administrative permissions required. Detecting permissions...
net session >nul 2>&1
if %errorLevel% == 0 (
echo Success: Administrative permissions confirmed. Proceeding with uninstall...
) else (
echo Failure: Current permissions inadequate. Please right click on file and select "Run as Administrator"
timeout 10 >NUL
exit
)
:: find location of Mixed VR Manager
set MixedVRManagerFolder=%~dp0
:: kill mixedvr-manager if currently running
taskkill /f /t /fi "Windowtitle eq Administrator: MixedVR Manager"
taskkill /f /t /fi "Windowtitle eq MixedVR Manager"
:: delete scheduled task
schtasks /Delete /TN "VR\Mixed VR Manager" /F
:: undo any processes here that people would expect to be undone, like re-enable the HMD
echo MixedVR-Manager is changing state of USB device, the HMD, to /enable just in case it was off...
"%MixedVRManagerFolder%bin\USBDeview.exe" /RunAsAdmin /enable "HoloLens Sensors"
echo *******************************************************************
echo *****PLEASE READ***********PLEASE READ**********PLEASE READ********
echo *******************************************************************
echo MixedVR-Manager uninstalled.
echo If MixedVR manager wasn't working correctly for you, try the following:
echo * Double clicking on mixedvr-manager.bat inside the bin/ folder
echo * Opening SteamVR
echo * Send a screenshot of the output to /u/monstermac77 on Reddit, or post it on the Github
echo *******************************************************************
echo *****PLEASE READ***********PLEASE READ**********PLEASE READ********
echo *******************************************************************
timeout 60 >NUL