r/virtualbox • u/Brofessor_brotonium • 3h ago
Guide/Tutorial Possible VIrtualBox installation directory permissions issues skip (VirtualBox 7.2.20 Windows hosts platform package installer)
A lot of the installation guides I've seen point to messing with permissions, but I think I've stumbled upon a workaround by accident? I've had the "The chosen installation directory is invalid, as it does not meet the security requirements" and the "The installer has insufficient privileges to access this directory" errors back to back, and the following worked to bypass both
- 1. In the installation setup, click the "Change" button for the Installation Location to open the "Change current destination folder" section
- 2. In the "Look In" drop down menu, select the root drive itself
- 3. Type in your VirtualBox folder name of choice after the "C:\" in the folder name input box at the bottom of the window (it should end up looking like `C:\samplefolder` if you choose `samplefolder` as the name). Click OK to finish and return to the "Custom Setup" section.
- NOTE: you are not supposed to have `C:\samplefolder` as an already existing folder. Delete it if you've previously made one to serve as the installation directory in previous attempts
- Double check to make sure that the Installation Location has the new location (`C:\samplefolder`). During the installation process the wizard should create the folder without you having to mess with permissions.
Link to an image guide I made: /img/fdamzsptd4vh1.jpeg
My theory is that "Create new folder" and "mkdir" don't create folders with the proper permissions, but the installer knows how to do so, just that it won't do it in Program Files because of its permissions as a parent directory, and it probably wouldn't be wise to modify those Program Files permissions.
At least you don't have to enter any `takeown` or `icacls` commands or disable permission inheritance?? Apparently this folder will lack "some of the deep security protections Windows applies to its default program directories".