vboxme / Portable-VirtualBox

Portable-VirtualBox is a free and open source software tool that lets you run any operating system from a usb stick without separate installation.
Other
832 stars 234 forks source link

VBox 5.1.22 can't unpack VirtualBox 6.1.0 properly #73

Open d4k0 opened 4 years ago

d4k0 commented 4 years ago

VirtualBox 6.1.0 was just released and I tried to update the portable version. However, VBox 5.1.22 only creates a temp folder with a VirtualBox msi file inside it. VBox should unpack this msi installer to the app64 folder, but this doesn't happen. Instead, it deletes the temp folder. It seems that something changed inside the msi file.

If I unpack the msi file manually using UniExtract and place the files into the app64 folder, VBox 5.1.22 seems to work properly.

p060477 commented 4 years ago

..are you able to use the portable with network bridged..??

kekkc commented 4 years ago

Not even UniExtract ( https://github.com/Bioruebe/UniExtract2/releases ) works for me (only shows "file too big").

How did you manage to extract 6.1.0 or how can I do this on Windows?

cocoon commented 4 years ago

To extract:

https://www.virtualbox.org/manual/UserManual.html#installation_windows

VirtualBox-<version>-<revision>-Win.exe -extract

this extracts the msi from the exe to "c:\Temp\VirtualBox\VirtualBox-6.1.0-r135406.msi" (or where temp is located)

+ lessmsi to extract the msi (for me the administrative installation did not work "msiexec /a"):

https://github.com/activescott/lessmsi/releases

d4k0 commented 4 years ago

..are you able to use the portable with network bridged..??

I'm not sure ... Is this the default setting? My guest systems use the network/internet connection of the host system.

Not even UniExtract ( https://github.com/Bioruebe/UniExtract2/releases ) works for me (only shows "file too big").

How did you manage to extract 6.1.0 or how can I do this on Windows?

VBox creates a temp folder in its directory when it extracts the installer. I copied the msi file from this directory (you have to be fast) and used UniExtract2 afterwards. But cocoon's way is more convenient, that's why I'm using it now.

kekkc commented 4 years ago

Seems VBox is not regularly changing the installation directories. Is it not possible to update VBox Portable once?

Does anyone know what exact folders changed, compared to the last working version of VBox Portable?

yannismc commented 4 years ago

Successfully installed VirtualBox 6.1.6 on Windows 10

The problem lies on lines 1573, 1581, 1598 and 1608 of file "Portable-VirtualBox.au3"

The new installation file of Virtualbox has different command line switches and doesn't produce two files x86 and amd64. But only one

The following modification is proposed

Line 1573 Run (@ScriptDir & "\virtualbox.exe --extract --path temp", @ScriptDir, @SW_HIDE)

Line 1581 Run ($SourceFile & " --extract --path temp", @ScriptDir, @SW_HIDE)

Line 1598 RunWait ("cmd /c ren ""%CD%\temp\*.msi"" x86.msi", @ScriptDir, @SW_HIDE)

Line 1608 RunWait ("cmd /c ren ""%CD%\temp\*.msi"" amd64.msi", @ScriptDir, @SW_HIDE)

d4k0 commented 4 years ago

@yannismc Can you submit a pull request?

streetgt commented 4 years ago

@yannismc Can you submit a pull request?

https://github.com/vboxme/Portable-VirtualBox/pull/76/files

kekkc commented 4 years ago

Maybe we need to create a fork, since runarbu doesn't seem to be around anymore since 5 years.

p060477 commented 4 years ago

Maybe we need to create a fork, since runarbu doesn't seem to be around anymore since 5 years.

finally some other clever people has realized the incredible ABSENCE of Runar Buvik here.. thanks so much for yr witness cheers

AntarV1 commented 4 years ago

Bonjour à tous. Pour ma part je suis fan des chôses simples et je vous propose un fichier bat qui doit vous régler vos problèmes : echo extract msi C:\Users\ADMINI~1\Desktop\VBOX\VIRTUA~1.EXE --extract -path C:\Users\ADMINI~1\Desktop\VBOX\extract echo install Administrative msiexec /a "C:\Users\ADMINI~1\Desktop\VBOX\extract\VIRTUA~1.MSI" /qb TARGETDIR="C:\Users\ADMINI~1\Desktop\VBOX\temp" pause Le reste est un jeu d'enfants

p060477 commented 4 years ago

..in english pls...the matter is already difficult...so pls help us understand what you write.. thxs ;)

AntarV1 commented 4 years ago

Voilà le fichier bat : D'abord créer un dossier de travail "VBOX" ou autre Pour l'extraction echo extract msi C: 'Users’ADMINI1'Desktop’VBOX’VIRTUA1.EXE -extract -path C:'Users’ADMINI1'Desktop’VBOX Et pour l'installation administrative msiexec /a "C:'Users’ADMINI1'Desktop’VBOX’extract’VIRTUA1.MSI" /qb TARGETDIR'"C:'Users’ADMINI1'Desktop’VBOX’temp"

p060477 commented 4 years ago

..in english pls...the matter is already difficult...so pls help us understand what you write.. thxs ;)

kekkc commented 4 years ago

@streetgt thx for the PR. I tried it & compiled it with the 2 changed files, but unfortunately VB is not extracting the new "VirtualBox-6.1.8-137981-Win.exe" (x64 selected).

streetgt commented 4 years ago

@streetgt thx for the PR. I tried it & compiled it with the 2 changed files, but unfortunately VB is not extracting the new "VirtualBox-6.1.8-137981-Win.exe" (x64 selected).

It worked for me, anyway I gave up on this software ;)

candrapersada commented 4 years ago

how to update VirtualBox 6.1.0 to 6.1.8 for Portable?

Shuunen commented 4 years ago

I just downloaded https://download.virtualbox.org/virtualbox/6.0.24/VirtualBox-6.0.24-139119-Win.exe and gave it to Portable-VirtualBox, works like a charm

d4k0 commented 4 years ago

@Shuunen VirtualBox 6.0.x still works, the problem started with VirtualBox 6.1.x.

p060477 commented 4 years ago

I just downloaded https://download.virtualbox.org/virtualbox/6.0.24/VirtualBox-6.0.24-139119-Win.exe and gave it to Portable-VirtualBox, works like a charm

..fine... are you able to use network -bridged-..? ..having win 10 as s.o host..?

Shuunen commented 4 years ago

I just downloaded https://download.virtualbox.org/virtualbox/6.0.24/VirtualBox-6.0.24-139119-Win.exe and gave it to Portable-VirtualBox, works like a charm

..fine... are you able to use network -bridged-..? ..having win 10 as s.o host..?

I have w10 but sadly the bridged connection does not work with this solution. Bridged network seems to rely on the driver packaged into the virtualbox setup we all want to avoid.

p060477 commented 4 years ago

this so frustrating issue is there since the very late 2015.. what a real pity.. :(

candrapersada commented 3 years ago

why the download linkhasn't been updated yet?

AntarV1 commented 3 years ago

Bonjour à tous, pour ceux qui ont des problèmes d'extraction je vous donne la marche à suivre que j'utilise depuis des années Pour extraire le msi (chemin où est virtualbox.exe) --extract -path (chemin où vous voulez l'extraire) exemple : %USERPROFILE%\Desktop\Appz\Virtualbox.exe --extract -path %USERPROFILE%\Desktop\Extract Pour son installation administrative msiexec /a (chemin où virtualbox.msi" /qb TARGETDIR=chemin du dossier qui contiendra l'installation)" exemple : msiexec /a "%USERPROFILE%\Desktop\Extract\Virtualbox.msi" /qb TARGETDIR="%USERPROFILE%\Desktop\install" Bonne journée

Peppernrino commented 9 months ago

https://portableapps.com/node/70284