Skip to content

Commit c047c79

Browse files
enhance VirtualBox install to include uninstall
1 parent e04c8d6 commit c047c79

File tree

1 file changed

+14
-1
lines changed

1 file changed

+14
-1
lines changed

softwareupdaterXL.bat

Lines changed: 14 additions & 1 deletion
Original file line numberDiff line numberDiff 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+
)
7790
REM not silent step and file after not deleted
7891
(for %%a IN (Oracle*_VirtualBox_Extension_Pack*.vbox-extpack) DO echo %%a && explorer %%a )
7992

0 commit comments

Comments
 (0)