[Main]
Title=BestEmu
Author=Kare
Description=Runs your ISO with best possible (available) virtual machine (emulator)
Level=9
Author=Kare
Version=4.3
Date=04.07.2025
Selected=True
Disable=Virtual Test\VMware.srt,Virtual Test\VirtualBox.srt

[Interface]
Panel=1
pFrame1=,707070,0,0,0,0,500,130
pTextLabel2=Supported VM:,11,0,Bold,20,30,120,20
ptextlabel1=- VMWare#$x- VirtualBox ,11,0,Default,20,65,100,40
pButton1=process,Start VM,0,,170,170,110,25
pTextLabel3=Default:,11,0,Default,170,65,70,18
pScrollBox1=VMWare,0,0,0,245,64,80,20,VMWare,Virtualbox

tmsg01=No virtual machine installed.
tEcho01=- Start virtual Machine...
tEcho02=Searching virtual machine...

[Interface.07]
Description=Startet deine ISO mit der best möglichen verfügbaren virtuellen Maschine#$x
Panel=1
pFrame1=,707070,0,0,0,0,500,130
pTextLabel2=Unterstützte VM:,11,0,Bold,20,30,140,20
ptextlabel1=- VMWare#$x- VirtualBox ,11,0,Default,20,65,100,40
pButton1=process,Starte VM,0,,170,170,110,25
pTextLabel3=Standard:,11,0,Default,170,65,70,18
pScrollBox1=VMWare,0,0,0,245,64,80,20,VMWare,Virtualbox

tmsg01=Keine virtuelle Maschine installiert.
tEcho01=- Start virtual Machine...
tEcho02=Suche virtuelle Maschine...

[Process]

Echo,%tEcho02%
if,%BuildMode%,=,3,then
    Update,InterfaceVar
    system,log,on,1
    System,ProcessMode,%tEcho01%
End

// VMware Player
// -------------
RegRead,%VM_Path%,HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\vmplayer.exe,Path
If,Not,%VM_Path%,=,,Then
	Set,%VM_Path%,%VM_Path%vmplayer.exe
Else
// VMware Workstation
// ------------------
	RegRead,%VM_Path%,HKLM,SOFTWARE\Microsoft\Windows\CurrentVersion\App Paths\vmware.exe,Path
	If,Not,%VM_Path%,=,,Then
		Set,%VM_Path%,%VM_Path%vmware.exe
	End
End

//FindVirtualBox
set,%VBPath%,
RegRead,%VBPath%,HKLM,SOFTWARE\InnoTek\VirtualBox,InstallDir
If,%VBPath%,=,,then,RegRead,%VBPath%,HKLM,"SOFTWARE\Sun\xVM VirtualBox",InstallDir

If,%VBPath%,=,,then
	System,REGREDIRECT,64
	RegRead,%VBPath%,HKLM,"SOFTWARE\Sun\xVM VirtualBox",InstallDir
	System,REGREDIRECT,OFF
End
If,%VBPath%,=,,then
	System,REGREDIRECT,64
	RegRead,%VBPath%,HKLM,SOFTWARE\Sun\VirtualBox,InstallDir
	System,REGREDIRECT,OFF
End
If,%VBPath%,=,,then
	System,REGREDIRECT,64
	RegRead,%VBPath%,HKLM,SOFTWARE\Oracle\VirtualBox,InstallDir
	System,REGREDIRECT,OFF
End
Set,%VBoxManage%,%VBPath%VBoxManage.exe

if,existfile,%VM_Path%,and,ExistFile,%VBoxManage%,then
    Interface,GetIndex,,pScrollBox1,%Var%
    If,%Var%,=,1,Then
	Set,%VBoxManage%,
    else
	Set,%VM_Path%,
    end
End
if,existfile,%VM_Path%,then
  System,switchScript,%ProjectDir%\Virtual Test\VMware.srt
  Set,%BuildMode%,0
  Run,%ProjectDir%\Virtual Test\VMware.srt,Process
  System,switchScript,back
  Exit
end

If,ExistFile,%VBoxManage%,then
  System,switchScript,%ProjectDir%\Virtual Test\VirtualBox.srt
  Set,%BuildMode%,0
  Run,%ProjectDir%\Virtual Test\VirtualBox.srt,Process
  System,switchScript,back
  Exit
end
Message,%tmsg01%


[Script-Pic]
0=3193,3952,ZLB64
1=eNqdVns4VOsa/8YMIykNMnJpClEo2z01e6ayxRATFYVIct903KUpykbJZVOySVEScpkil8JM7lTkFhnCDONexiXGmJl1xt77nH2e85w/zjm/9b1rvc+73m99v99632etD/oMjYJt5scJxwEMBgMXBAeA6MDeJMzLHQBLS6AOABAFwnAYEBZ4MIGZw+G/XzcMWG/7w984WaMA4o/41gZryb/8jTwAi8kG4GUSNAiMgRAMtjH+BFwYvgERBAIujBRBIjdMdNPmTaKiYqJIpNgWMbHN4gIgN22V2CK+dcPfeMjG9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