MayADevBe Blog

A Blog about Computer Science

Manually updating VM Virtualbox


When trying to update my VirtualBox on my Windows machine, I have encountered an error like the following: ‘Oracle VM Virtualbox X.X.X Setup Wizard ended prematurely’ multiple times. In the picture below, you can see an example:

Virtualbox Setup Wizard

This error leads to a failed installation, stating a ‘fatal error’.

Virtualbox Installation Error

I have done some research and found a solution that worked for me (1).


Instead of using the Windows Setup Wizard, I had to extract the ‘.msi’ file to manually install/update VirtualBox.

  1. Download the latest (or whatever version you want) VirtualBox installation file.
  2. Open the command prompt, either with windows key + X and look for Powershell or type ‘CMD’ / ‘Powershell’ in the search bar.
  3. Go to the folder where you downloaded the ‘.exe’ installer file. Type in cd <path> and replace <path> with the folder path (most likely ‘Downloads’).
  4. Extract the ‘.msi’ file from the ‘.exe’ file. MSI is short for Microsoft Installer and as the name suggests it is what installs or updates software. The command for extracting is the following: VirtualBox-X.X.X-XXXXXX-Win.exe /extract. You only have to replace the ‘X’s with the correct version. (If you do not know the version type in dir to see the files in the folder.)


22.01.2022  11:39    <DIR>          .
22.01.2022  11:39    <DIR>          ..
22.01.2022  11:39       106.926.080 VirtualBox-6.1.32-r149290.msi
			   1 Datei(en),    106.926.080 Bytes
			   2 Verzeichnis(se), 60.840.660.992 Bytes frei

>VirtualBox-6.1.32-149290-Win.exe /extract
  1. Next go to the folder with the extracted ‘.msi’ file. Just change <your_username> to your username in the following command: cd C:/users/<your_username>/appdata/local/temp/virtualbox.

  2. Run the ‘.msi’ file to install or update VirtualBox. Use the dir command to see the correct name for the ‘.msi’ file. Change the ‘X’s in the ‘.log’ file name to the correct version. You might need to adjust the ‘TARGETDIR’ path, depending on where you have saved or want to save your VirtualBox software.

msiexec /i VirtualBox-X.X.X-rXXXXXX.msi /L*vx VirtualBox-X.X.X-install.log /QB TARGETDIR="C:\Program Files\Oracle\VirtualBox" ADDLOCAL=VBoxNetworkFlt
  1. Now you should be able to open VirtualBox. It should be the newer version.

Commands Overview

C:\Users\<Username>\Downloads>VirtualBox-6.1.28-147628-Win.exe /extract                                                                                                                                                                              C:\Users\<Username>\Downloads>cd C:/users/<Username>/appdata/local/temp/virtualbox                                                                                                                                                                        C:\Users\<Username>\AppData\Local\Temp\VirtualBox>dir                                       ...                                                                                                          27.10.2021  18:44    <DIR>          .                                                 27.10.2021  18:44    <DIR>          ..                                                27.10.2021  18:44       106.991.616 VirtualBox-6.1.28-r147628.msi                                    1 Datei(en),    106.991.616 Bytes                                                    2 Verzeichnis(se), 75.867.729.920 Bytes frei                                                                                                                                                                                     C:\Users\<Username>\AppData\Local\Temp\VirtualBox>msiexec /i VirtualBox-6.1.28-r147628.msi /Lvx VirtualBox-6.1.28-install.log /QB TARGETDIR="C:\Program Files\Oracle\VirtualBox" ADDLOCAL=VBoxNetworkFlt  

Share on: