To build Portable-VirtualBox from source do the following:
Obtain and install the following free tools
- AutoIt from http://www.autoitscript.com/site/autoit/downloads/ ( you need "AutoIt Full Installation" )
- 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 make a new folder named "Portable-VirtualBox".
Run the build.bat script. Run the build.bat script. A 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 brows function 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 click "ok"
- This will make a new .exe file named Portable-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