-
Notifications
You must be signed in to change notification settings - Fork 27
/
ResetEnvironment.cmd
23 lines (16 loc) · 1.14 KB
/
ResetEnvironment.cmd
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
rd /S /Q %~dp0build
rd /S /Q %LocalAppData%\Microsoft\VisualStudio\14.0Exp
rd /S /Q %LocalAppData%\Microsoft\VisualStudio\Exp
reg delete HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio\14.0Exp /f
reg delete HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio\14.0Exp_Config /f
reg delete HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio\14.0Exp_Remote /f
"C:\Program Files (x86)\Microsoft Visual Studio 14.0\VSSDK\VisualStudioIntegration\Tools\Bin\CreateExpInstance.exe" /Reset /VSInstance=14.0 /RootSuffix=Exp
rd /S /Q %LocalAppData%\Microsoft\VisualStudio\15.0Exp
rd /S /Q %LocalAppData%\Microsoft\VisualStudio\15.0*Exp
rd /S /Q %LocalAppData%\Microsoft\VisualStudio\Exp
reg delete HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio\15.0Exp /f
reg delete HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio\15.0Exp_Config /f
reg delete HKEY_CURRENT_USER\SOFTWARE\Microsoft\VisualStudio\15.0Exp_Remote /f
"C:\Program Files (x86)\Microsoft Visual Studio\2017\Professional\VSSDK\VisualStudioIntegration\Tools\Bin\CreateExpInstance.exe" /Reset /VSInstance=15.0 /RootSuffix=Exp
REM wait for 1 second, so you can see what's happing
timeout 2 > NUL