[Main]
Title=Run ISO in VirtualBox
Type=script
Level=8
Description=Runs your PE ISO in VirtualBox
Selected=False
Locked=true
Author=Peter Schlang & modify by NightMan
Version=12
Date=20.07.2008
Download_Level=1
Mandatory=False

[Variables]
%VBExe%=
%BoxName%=WinBuilderBox

[Process]
System,ERROROFF
RegRead,HKLM,SOFTWARE\InnoTek\VirtualBox,InstallDir,%VBPath%
If,NOTEXISTVAR,%VBPath%,RegRead,HKLM,"SOFTWARE\Sun\xVM VirtualBox",InstallDir,%VBPath%
#Message,"_%VBPath%_",Information
If,_%VBPath%_,Equal,__,Run,%ScriptFile%,NotInstalled
If,_%VBPath%_,NotEqual,__,Run,%ScriptFile%,Installed

[Installed]
Set,"%VBExe%","%VBPath%VBoxManage.exe"
echo,"Running %IsoFile% in VirtualBox.."
ShellExecute,Hide,"%VBExe%","createvm -name %BoxName% -register"
ShellExecute,Hide,"%VBExe%","registerimage dvd #$q%IsoFile%#$q"
ShellExecute,Hide,"%VBExe%","modifyvm %BoxName% -memory %pNumberBox1% -dvd #$q%IsoFile%#$q"
ShellExecute,Hide,"%VBExe%","startvm %BoxName%"
ShellExecute,Hide,"%VBExe%","modifyvm %BoxName% -dvd none"
ShellExecute,Hide,"%VBExe%","unregisterimage dvd #$q%IsoFile%#$q"
ShellExecute,Hide,"%VBExe%","unregistervm %BoxName% -delete"

[NotInstalled]
Beep,Error
Message,"VirtualBox must be installed in order to run it!",Error

[Interface]
pTextLabel1="VirtualBox is an OpenSource Virtual Machine",1,1,10,19,345,18,9,Bold
pTextLabel2="Allocated Memory for VirtualBox",1,1,10,131,171,18,8,Normal
pTextLabel3="VirtualBox must be installed on your system!",1,1,10,60,315,18,9,Bold
pWebLabel1=Info,1,10,345,21,200,18,http://www.virtualbox.org/
pWebLabel2=Download,1,10,345,60,180,18,http://www.virtualbox.org/download/1.4.0/VirtualBox_1.4.0_Win_x86.msi
pNumberBox1=pNumberBox1,1,2,182,130,45,22,512,256,1024,128
pTextLabel4=MB,1,1,229,131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