To build Portable-VirtualBox from source do the following:
Obtain and install the following free tools
- AutoIt version 3.3.8.1 from https://www.autoitscript.com/autoit3/files/archive/autoit/autoit-v3.3.8.1-setup.exe
- 7zip from http://www.7-zip.org/
- Resource Hacker from http://www.angusj.com/resourcehacker/
Check out the source code from GitHub. For example by using GitHub on Windows or use git
from the command line like this:
git clone https://github.com/vboxme/Portable-VirtualBox.git
This will create a new folder named Portable-VirtualBox
.
Run the build.bat
script. The new version should appear in the build\release
directory.
- Go to the Start menu and select
All programs
->AutoIt v3
->Compile Script to .exe (x86)
- Use the browse functionality to set:
- Source:
Portable-VirtualBox\source\Portable-VirtualBox.au3
- Destination:
Portable-VirtualBox\Portable-VirtualBox.exe
- Custom Icon:
Portable-VirtualBox\source\VirtualBox.ico
- Click
Convert
A new .exe
file is created as Portable-VirtualBox.exe
. This is Portable-VirtualBox and can be run from the Portable-VirtualBox folder.
To make a release you also need to do the following:
- If you have run it in the Portable-VirtualBox folder delete the Portable-VirtualBox folder and do a new git clone and compile so its no junk in the data and app folders from previous runs
- Go back to the Portable-VirtualBox folder
- Right click on it and select
7zip
->Add to archive
- In the 7zip dialog select
Self extracting archive (SFX)
and clickOK
- This will make a new
.exe
file namedPortable-VirtualBox.exe
- Open the newly created
Portable-VirtualBox.exe
with Resource Hacker find the Icon Group->1->1033 - Use the Replace resource function to replace it with the icon at
Portable-VirtualBox\source\VirtualBox.ico
- Save & exit
Portable-VirtualBox uses a great and powerful scripting language known as AutoIt. Unfortunately some virus creators also use AutoIt with malicious intent. Each time a new version of AutoIt is released some virus is quickly written in it, and some anti-virus vendor then manages to marks sets of instructions found in all AutoIt made software as malicious. This causes many legitimate programs to be accidently flagged as viruses (this is what is known as a false positive).
Eventually software makers complain and the anti-virus maker realize there mistakes. AutoIt gets cleared again. However this vicious cycle means that if you do not want to get any falsely virus warnings when distributing software that you have built it is best to use an older version of AutoIt. We recommend version 3.3.8.1 that was released in November 2012.
However if you for some reason want to use the newest version you can download it from http://www.autoitscript.com/site/autoit/downloads/ ( you need "AutoIt Full Installation" ).