File tree Expand file tree Collapse file tree 1 file changed +14
-1
lines changed
Expand file tree Collapse file tree 1 file changed +14
-1
lines changed Original file line number Diff line number Diff line change @@ -73,7 +73,20 @@ REM (for %%a IN (AnyDesk.exe) DO echo %%a && %%a --install "%ANYDESKPROG%\AnyDes
7373(for %%a IN (TeamViewer_Setup*.exe) DO echo %%a && %%a /S && del %%a )
7474
7575:install-virtualbox
76- (for %%a IN (VirtualBox*.exe) DO echo %%a && %%a --silent && del %%a )
76+ for %%a IN (VirtualBox*.exe) DO (
77+ echo %%a
78+
79+ for /f " tokens=8* delims=^\" %%i in ('reg query " HKLM\SOFTWARE\WOW6432Node\Microsoft\Windows\CurrentVersion\Uninstall" /s /f " Oracle VirtualBox" ^ | findstr " HKEY" ') do (
80+ echo Uninstall: %%i
81+ msiexec.exe /x%%i /q /norestart
82+ )
83+ for /f " tokens=7* delims=^\" %%i in ('reg query " HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall" /s /f " Oracle VirtualBox" ^ | findstr " HKEY" ') do (
84+ echo Uninstall: %%i
85+ msiexec.exe /x%%i /q /norestart
86+ )
87+
88+ %%a --silent && del %%a
89+ )
7790REM not silent step and file after not deleted
7891(for %%a IN (Oracle*_VirtualBox_Extension_Pack*.vbox-extpack) DO echo %%a && explorer %%a )
7992
You can’t perform that action at this time.
0 commit comments