[Main]
Title=VMware (Virtual Machine)
Description=Runs your ISO in VMware
Selected=False
Level=9
Author=Kare;MaineCoon
Version=15.9
Date=05.12.2025
Disable=Virtual Test\VirtualBox.srt,Virtual Test\BestEmu.srt

[Interface]
Panel=1
pFrame1=,707070,0,0,0,0,400,105
pFrame2=Settings,707070,1:0,0,0,105,550,188
pFrame3=Finalization,707070,1:0,0,0,293,400,65

pTextLabel1=VMware runs ISO files in a virtual environment.,10,0,Default,20,20,370,40
pTextLabel2=NOTE:#$xVMware has to be installed on your PC,10,0,Bold,20,60,320,40
pTextLabel3=Allocated memory (Mb):,10,0,Default,20,130,180,20
pTextLabel4=ISO file:,10,0,Default,20,165,60,20
pTextLabel5=HDD Controller,9,1:0,Default,280,211,90,20
pTextLabel6=Re-execution of scripts#$x'0-PostConfig.srt' and 1-create_iso.srt',10,1:0,Default,20,314,230,40
pTextLabel7=Bootorder:,10,1:1,Default,375,242,60,18

pCheckBox1=True,Network,0,3,10,210,65,18
pCheckBox2=True,Audio,0,3,10,240,50,18
pButton2=Script-Select,,1:0,Refresh.bmp,428,161,25,25,Resfresh
pCheckBox3=True,Hard disk,1:0,0,200,241,68,18
pCheckBox5=False,UEFI Boot,1:0,0,200,210,70,18

pscrollbox1=3072,1,0,0,228,127,60,20,768,1024,1536,2048,2560,3072,4096
pScrollBox2=,1,0,0,110,162,310,22,
pScrollBox3=Intel 82545EM,1,0,0,80,209,105,20,Intel 82545EM,AMD 79C970
pScrollBox4=HDAudio,1,0,0,80,239,105,20,Creative ES1371,HDAudio
pScrollBox5=Used,1,1:0,0,280,240,70,20,New,Used,Custom
pScrollBox6=SCSI,0,1:0,0,375,209,70,20,IDE,SCSI
pScrollBox7=DVD,0,1:1,0,450,239,60,20,DVD,HDD

pFileBox1=,VHD (*.vhd;*.vmdk),1:1,FileDir,280,265,230,20

pButton1=all,Finalize,1:0,,325,315,60,25

pWebLabel1=https://my.vmware.com/en/web/vmware/free#desktop_end_user_computing/vmware_workstation_player/12_0#$dPLAYER-1259#$dproduct_downloads,Download Page,0,Web,420,25,100,20
pTextLabel8=USB,9,1:0,Default,25,272,40,18
pScrollBox8=USB 1.1,0,1:0,0,80,269,105,20,USB 1.1,USB 2.0,USB 3.1
//
tEcho1=Processing 'VMWare'...
tMsg_1=VMware is not installed on this PC.#$x#$xAborting script...
tMsg_2=No ISO file found
tMsg_3=No VMHDD file found
tMsg_4=VMware is already running
tMsg_5=Script setting for VMWare memory:#$x- %pScrollBox1% Mb#$x%VOS% needs at least:#$x- %RamNeed% MB.#$x#$xDo you want to aply this setting %RamNeed% Mb ?
tMsg_6=Starting VMware ( %DispName% )...
tMsg_7=System not recognized, choose Windows version
tmsg_8=Memory critical#$x#$xneeds at least: %RamNeed%#$xAvailable memory: %FreeRam%
tMsg_9=No UEFI support for %OS% or architecture %ArchIso%.#$x#$xSupported Operating Systems:#$x- Windows 7/8/8.1/10/11#$x#$xArchitecture:#$x- x64

tHalt_1=VMware needs at least %RamNeed% Mb. Aborting script...
tQuestion=SELECTION

[Interface.07]
Panel=1
Description=Startet die erstellte ISO-Datei in einer Virtuellen Maschine
pframe1=,707070,0,0,0,0,400,105
pframe2=Einstellungen,707070,1:0,0,0,105,550,188
pframe3=Finalisierung,707070,1:0,0,0,295,400,60
ptextlabel1=VMware führt ISO-Dateien in einer virtuellen Umgebung aus.,10,0,Default,20,25,370,20
ptextlabel2=WICHTIG:#$xVMware muss auf Ihrem PC installiert sein,10,0,Bold,20,60,320,40
ptextlabel3=Zugewiesener Speicher (MB):,10,0,Default,20,130,180,20
ptextlabel4=ISO-Datei:,10,0,Default,20,165,80,20
ptextlabel5=HDD-Controller,9,1:0,Default,280,211,90,20
ptextlabel6=Erneute Ausführung der Skripte#$x'0-PostConfig.srt' und 1-create_iso.srt',10,1:0,Default,20,314,230,36
pcheckbox1=True,Netzwerk,0,3,10,210,65,18
pcheckbox2=True,Audio,0,3,10,240,50,18
pcheckbox3=True,Festplatte,1:0,0,200,240,68,18
pCheckBox5=False,UEFI Boot,1:0,0,200,210,80,18
pScrollBox1=3072,1,1:0,0,228,127,60,20,1024,1536,2048,2560,3072,4096
pScrollBox2=,1,0,0,110,162,310,22,
pButton2=Script-Select,,1:0,Refresh.bmp,428,161,25,25,Aktualisieren
pscrollbox3=Intel 82545EM,1,0,0,80,209,105,20,Intel 82545EM,AMD 79C970
pscrollbox4=HDAudio,1,0,0,80,239,105,20,Creative ES1371,HDAudio
pscrollbox5=Benutzt,1,1:0,0,280,240,70,20,Neu,Benutzt,Eigene
pscrollbox6=SCSI,0,1:0,0,375,209,70,20,IDE,SCSI
pfilebox1=,VHD (*.vhd;*.vmdk),1:1,FileDir,280,269,230,20
pbutton1=all,Finalisieren,1:0,,310,315,80,25
pweblabel1=https://my.vmware.com/de/web/vmware/free#desktop_end_user_computing/vmware_workstation_player/12_0#$dPLAYER-1259#$dproduct_downloads,Download Seite,0,Web,420,25,120,20
pScrollBox7=DVD,0,1:1,0,450,239,60,20,DVD,HDD
pTextLabel7=Bootorder:,10,1:1,Default,375,242,60,18

tEcho1='VMWare' wird ausgeführt.
tmsg_1=VMware ist auf diesem Computer nicht installiert.#$x#$xSkript wird abgebrochen.
tmsg_2=Keine übereinstimmende ISO-Datei gefunden
tmsg_3=VMHDD-Datei wurde nicht gefunden
tmsg_4=VMware wird bereits ausgeführt
tmsg_5=Skript-Einstellung für den VMware-Speicher:#$x- %pScrollBox1% MB#$x%VOS% benötigt mindestens:#$x- %RamNeed% MB.#$x#$xWollen Sie die Einstellung auf %Val% MB übernehmen ?
tmsg_6=VMware wird gestartet ( %DispName% )...
tmsg_7=System nicht erkannt, wähle Windowsversion
tmsg_8=Arbeitsspeicher kritisch#$x#$x%VOS% benötigt mindestens: %RamNeed%#$xVerfügbarer Speicher: %FreeRam%
tMsg_9=Keine UEFI-Unterstützung für %OS% oder Architektur %ArchIso%.#$x#$xUnterstützte Betriebssysteme:#$x- Windows 7/8/8.1/10/11#$x#$xArchitektur:#$x- x64

thalt_1=VMware benötigt mindestens %RamNeed% MB. Skript wird abgebrochen...
tquestion=AUSWAHL
pTextLabel8=USB,9,1:0,Default,25,272,40,18
pScrollBox8=USB 2.0,0,1:0,0,80,269,105,20,USB 1.1,USB 2.0,USB 3.1

[Script-Select]
Search,%AllIsos%,File,%IsoDir%,*.iso
Interface,Set,,pScrollBox2,%IsoFileName%,%AllIsos%

[pScrollBox5]
Update,InterfaceVar
Interface,GetIndex,,pScrollBox5,%HDDSt%
Set,%Var%,Hide
If,%HDDSt%,=,3,Then,Set,%Var%,Show
Interface,State,,%Var%,pFileBox1,pTextLabel7,pScrollBox7

[Process]

Echo,%tEcho1%
//----ÜBERPRÜFUNG AUF INSTALLIERTE VERSION
//++++++++++++++++++++++++++++++++++++++++

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
	Message,%tMsg_1%,ERROR,6
	Exit
End

StrFormat,%VM_Filename%,Filename,%VM_Path%
If,ExeRunning,%VM_Filename%,Then,Message,%tMsg_4%,Exit

Set,%AskOS%,0
Set,%Bootorder%,0
//----AUSWAHL DER ISO-DATEI
//+++++++++++++++++++++++++
If,%BuildMode%,<,2,Then
	Search,%AllIsos%,File,%IsoDir%,*.iso
	Interface,Set,,pScrollBox2,%IsoFileName%,%AllIsos%
	Set,%ArchIso%,%arch%
Else
	// %OS% und %Arch% aus dem Namen der ISO-Datei auslesen
	// 16.09.2019
	If,%pscrollbox2%,=,,Then,Message,%tMsg_2%,Exit
	Set,%ISOfile%,%ISODir%\%pscrollbox2%
	StrFormat,%DispName%,FILENAMEEX,%pScrollBox2%
	String,%ArchIso%,RIGHT,%DispName%,3
	String,%Pos%,FIND,%pScrollBox2%,[
	// LSP-MergePE
	If,%Pos%,>,9,Then,String,%Pos%,FIND,%pScrollBox2%,_

	Math,%Pos%,%Pos%-1
	// %OS% der ISO-Datei
	String,%OS%,LEFT,%pScrollBox2%,%Pos%
	If,%OS%,=,,Then,Set,%AskOS%,1

	Set,%IsoFile%,%IsoDir%\%pScrollBox2%
End
If,Not,ExistFile,%IsoFile%,Then,Message,%IsoFileName%:#$x%tMsg_2%,Exit


//----Erstellung der .vmx-Datei
//+++++++++++++++++++++++++++++
StrFormat,%FileName%,FILENAME,%IsoFile%
StrFormat,%DispName%,FILENAMEEX,%FileName%

If,ExistFile,%ScriptDir%\VMWare\LSP.vmx,Then,DirRemove,%ScriptDir%\VMWare,1

DirMake,%ScriptDir%\VMWare
TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,.encoding = #$qwindows-1252#$q,Bottom
TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,config.version = #$q8#$q,Bottom

Retrieve,%Var%,FileVersion,%VM_Path%
String,%Var%,Split,%var%,.,1
Set,%HWLst%,4|4|7|8|9|10|11|||||12||14|16|18|20||||||||22
String,%HWVer%,Split,%HWLst%,|,%Var%
TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,virtualHW.version = #$q%HWVer%#$q,Bottom
TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,displayName = %DispName%,Bottom

//If,%OS%,=,Win10, Then,
TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,hpet0.present = #$qTRUE#$q,Bottom

// Scsi Adapter
TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,scsi0.present = #$qTRUE#$q,Bottom
TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,scsi0.virtualDev = #$qlsisas1068#$q,Bottom

// CD-ROM
TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,ide0:0.present = #$qTRUE#$q,Bottom
TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,ide0:0.fileName = #$q%ISOfile%#$q,Bottom
TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,ide0:0.deviceType = #$qcdrom-image#$q,Bottom
//	TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,scsi0:0.deviceType = #$qcdrom-image#$q,Bottom
//	TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,scsi0:0.fileName = #$q%ISOfile%#$q,Bottom
//	TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,scsi0:0.present = #$qTRUE#$q,Bottom

// Floppy
TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,floppy0.present = #$qFALSE#$q,Bottom

// HDD
If,%pCheckBox3%,=,True,Then
	Set,%VMDDPath%,%BaseDir%\Temp\VMHDD\lsp.vmdk
	Interface,GetIndex,,pScrollBox5,%HDDSt%
	If,%HDDSt%,=,1,Then,FileCopy,%BaseDir%\Temp\VMHDD\HDD.vmdk,%BaseDir%\Temp\VMHDD\lsp.vmdk
	If,Not,Existfile,%BaseDir%\Temp\VMHDD\LSP.vmdk,Then,FileCopy,%BaseDir%\Temp\VMHDD\HDD.vmdk,%BaseDir%\Temp\VMHDD\lsp.vmdk
	If,%HDDSt%,=,3,Then

		Set,%VMDDPath%,%pFileBox1%
		Interface,GetIndex,,pScrollBox7,%BOIdx%
		if,%BOIdx%,=,2,then
			Set,%AskOS%,1
			Set,%Bootorder%,1
		End
	End

	If,ExistFile,%VMDDPath%,Then
		Interface,GetIndex,,pScrollBox6,%HDDcn%
		If,%HDDcn%,=,1,Then
			// IDE
			TXTAddLine,%Scriptdir%\VMWare\LSP.vmx,ide0:1.deviceType = #$qdisk#$q,Bottom
			TXTAddLine,%Scriptdir%\VMWare\LSP.vmx,ide0:1.present = #$qTRUE#$q,Bottom
			TXTAddLine,%Scriptdir%\VMWare\LSP.vmx,ide0:1.fileName = #$q%VMDDPath%#$q,Bottom
		End
		If,%HDDcn%,=,2,Then
			// SCSI
			TXTAddLine,%Scriptdir%\VMWare\LSP.vmx,Scsi0:1.present = #$qTRUE#$q,Bottom
			TXTAddLine,%Scriptdir%\VMWare\LSP.vmx,Scsi0:1.fileName = #$q%VMDDPath%#$q,Bottom

		End
	Else
		Message,%tMsg_3%#$x#$x%VMDDPath%,VHD
	End
End

// Betriebssysteme
// ---------------
if,%AskOS%,=,1,then
	Set,%osLst%,Win10|x64#$xWin10|x86#$xWin8|x64#$xWin8|x86#$xWin7|x64#$xWin7|x86#$xWinXP|x64#$xWinXP|x86
	message,Windows 10 64Bit#$xWindows 10 32Bit#$xWindows 8 64Bit#$xWindows 8 32Bit#$xWindows 7 64Bit#$xWindows 7 32Bit#$xWindows XP 64Bit#$xWindows XP 32Bit,Listbox|%tmsg_7%
	if,%exitcode%,=,0,then,Halt,Windowsversion abort by User
	String,%Item%,Split,%osLst%,#$x,%exitcode%
	String,%os%,Split,%Item%,|,1
	String,%ArchIso%,Split,%Item%,|,2
	Set,%VMRam%,0
end

Set,%VOS%,%os%
Set,%VMOS%,windows9
If,%OS%,=,WinXP,Then,Set,%VMOS%,WinXPPro
If,%OS%,=,Win2003,Then,Set,%VMOS%,WinNetStandard
If,%OS%,=,WinVista,Then,Set,%VMOS%,WinVista
If,%OS%,=,Win7,Then,Set,%VMOS%,windows7
If,%OS%,=,Win8,Then,Set,%VMOS%,windows8
If,%OS%,=,Win81,Then,Set,%VMOS%,windows8
If,%OS%,=,Win10,Then,Set,%VMOS%,windows9
if,%ArchIso%,=,x64,then,Set,%VMOS%,%VMOS%-64
TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,guestOS = #$q%VMOS%#$q,Bottom

//Bootorder
if,%Bootorder%,=,0,then
	TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,bios.bootOrder = "cdrom#$chdd#$q,Bottom
else
	TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,bios.bootOrder = "hdd#$ccdrom#$q,Bottom
end 

// Net
If,%pCheckBox1%,=,True,Then
	TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,Ethernet0.present=#$qTRUE#$q,Bottom
//	TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,Ethernet0.connectionType=#$qbridged#$q,Bottom
	TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,Ethernet0.connectionType=#$qnat#$q,Bottom
	TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,Ethernet0.addressType=#$qgenerated#$q,Bottom
	Interface,GetIndex,,pScrollBox3,%Var%
	// Intel 82545EM
	If,%Var%,=,1,Then,TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,Ethernet0.virtualDev=#$qe1000#$q,Bottom
	// AMD 79C970
	If,%Var%,=,2,Then,TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,Ethernet0.virtualDev=#$qvlance#$q,Bottom
	//TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,Ethernet0.virtualDev=#$qvmxnet#$q,Bottom
End

// Sound
If,%pCheckBox2%,=,True,Then
	TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,sound.present = #$qTRUE#$q,Bottom
	TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,sound.fileName = #$q-1#$q,Bottom
	TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,sound.autodetect = #$qTRUE#$q,Bottom
	Interface,GetIndex,,pScrollBox4,%Var%
	// Creative ES1371
	If,%Var%,=,1,Then,TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,sound.virtualDev = #$qes1371#$q,Bottom
	// HDAudio
	If,%Var%,=,2,Then,TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,sound.virtualDev = #$qhdaudio#$q,Bottom
End

// USB
TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,usb.present = #$qTRUE#$q,Bottom
Interface,GetIndex,,pScrollBox8,%Var%
If,%Var%,=,2,Then,TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,ehci.present = #$qTRUE#$q,Bottom
If,%Var%,=,3,Then
  TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,ehci.present = #$qTRUE#$q,Bottom
  TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,usb_xhci.present = #$qTRUE#$q,Bottom
End

// UEFI Boot
If,%pCheckBox5%,=,True,Then
	If,%ArchIso%,=,x64,and,%WIM_BUILD%,=>,7600,Then
		TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,firmware = #$qefi#$q,Bottom
	Else
		Message,%tMsg_9%,INFORMATION
	end
end

// pciBridge
TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,pciBridge0.pciSlotNumber = #$q17#$q,Bottom
TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,pciBridge0.present = #$qTRUE#$q,Bottom
TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,pciBridge4.functions = #$q8#$q,Bottom
TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,pciBridge4.pciSlotNumber = #$q21#$q,Bottom
TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,pciBridge4.present = #$qTRUE#$q,Bottom
TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,pciBridge4.virtualDev = #$qpcieRootPort#$q,Bottom
//TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,pciBridge5.functions = #$q8#$q,Bottom
//TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,pciBridge5.pciSlotNumber = #$q22#$q,Bottom
//TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,pciBridge5.present = #$qTRUE#$q,Bottom
//TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,pciBridge5.virtualDev = #$qpcieRootPort#$q,Bottom
//TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,pciBridge6.functions = #$q8#$q,Bottom
//TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,pciBridge6.pciSlotNumber = #$q23#$q,Bottom
//TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,pciBridge6.present = #$qTRUE#$q,Bottom
//TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,pciBridge6.virtualDev = #$qpcieRootPort#$q,Bottom
//TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,pciBridge7.functions = #$q8#$q,Bottom
//TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,pciBridge7.pciSlotNumber = #$q24#$q,Bottom
//TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,pciBridge7.present = #$qTRUE#$q,Bottom
//TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,pciBridge7.virtualDev = #$qpcieRootPort#$q,Bottom


//----SPEICHERBEDARF
//++++++++++++++++++
Set,%RamNeed%,1536
Set,%RamList%,WinXP=512|Win2003=256|WinVista=768|Win7=768|Win8=1024|Win81=1024|Win10=1536

String,%cnt%,SPLIT,%RamList%,|,0
For,%x%,1,%cnt%
	String,%tmp%,SPLIT,%RamList%,|,%x%
	String,%OS_Lst%,SPLIT,%tmp%,=,1
	If,%OS%,=,%OS_Lst%,then
		String,%RamNeed%,SPLIT,%tmp%,=,2
		ExitLoop
	End
Next
Math,%RamNeed%,%RamNeed%+256+%VMRam%

For,%x%,1,5
	System,FreeRam,%FreeRam%
	math,%FreeRam%,(%FreeRam%/1048576),Round_Down
	math,%DifRam%,%FreeRam%-%RamNeed%
	if,%DifRam%,>,5,then,exitloop
	wait,200
next
if,%DifRam%,<,-260,then,message,%tmsg_8%,Confirmation

Set,%tmp%,%pScrollBox1%
If,%pScrollBox1%,<,%RamNeed%,Then
    Set,%val%,
    Interface,Get,,pScrollBox1,%Var%,all
    String,%Cnt%,Split,%Var%,#$x,0
    For,%x%,1,%Cnt%
	String,%Val%,Split,%Var%,#$x,%x%
	if,%val%,>,%RamNeed%,then,Exitloop
    Next
    if,%val%,=,,then,Set,%val%,4096
    set,%pScrollBox1%,%Val%
    Interface,Set,,pScrollBox1,%Val%

// Message,%tQuestion%:#$x#$x%tMsg_5%,Question
 //   If,%ExitCode%,=,No,Then,Halt,#$s%tHalt_1%
//	Set,%pScrollBox1%,%RamNeed%
End
//message,Scrollbox aktuell: %tmp%#$xRam-Apps: %VMRam%#$xInsgesamt: %RamNeed%#$xScrollbox neu: %pScrollBox1%
   
TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,memsize = #$q%pScrollBox1%#$q,Bottom
TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,mem.hotadd = #$qTRUE#$q,Bottom

// Boot-Verzögerung
TxtAddLine,%ScriptDir%\VMWare\LSP.vmx,bios.bootdelay=#$q3000#$q,Bottom
// Hyper-V aktiviert
TxtAddLine,%ScriptDir%\VMWare\LSP.vmx,ulm.disableMitigations = #$qTRUE#$q,Bottom
// CPU
TXTAddLine,%ScriptDir%\VMWare\LSP.vmx,numvcpus = #$q2#$q,Bottom


Echo,%tMsg_6%
Start,show,%VM_Path%,#$q%ScriptDir%\VMWare\LSP.vmx#$q
Wait,2000

[all]
Update,InterfaceVar
System,GetLangTxt,181,%Txt%
System,ProcessMode,%Txt%

if,ExistFile,%ProjectDir%\Finish\0-PostConfig.srt,Then
	System,SwitchScript,%ProjectDir%\Finish\0-PostConfig.srt
	Run,%ProjectDir%\Finish\0-PostConfig.srt,Process
	System,SwitchScript,Back
End

System,SwitchScript,%ProjectDir%\Finish\1-create_iso.srt
Run,%ProjectDir%\Finish\1-create_iso.srt,Process
System,SwitchScript,Back

Set,%BuildMode%,0
Run,%ScriptFile%,Process


[Script-Pic]
0=4955,6412,ZLB64
1=eNqllldU09u2xv9KUbAA0qQoSu9IE4gUEQk7obeEoiglQAgYKdFQhK1SRJpSAkqxxBBCxIAkdEGaCggYwCC9BinSgtIhh33Gveflvtxx7zdf1hzzYf3mmGOt+bF/sMcBfigYAgYOHcTNgwDY+4CUlbnp1XNOCG//W+hAtB8SEXoOcstb/RxMU/2CJsAeAsyAw/9PHdxiwBvl7xni442+HR6ldUFTW+OCloam5jlNLZCuLkj7Iq8TIjRMzc6M96o5zNzK1k7tgrmWqT5YB2C3HHoNAIe4Dv1bwH/p0GEOTi7uI0d5eI8dAjgO/bf+R5EfOHyIg+MwJwcXFyfnQeXeQQ3gFOA6dV7TlFvQ3vOIdLCQ1v2nr47KXClrFHagr8hqe4U84OEVET0tJi4nr6CopKyje1FP3wBkdtUcbPEXBOro5AyDu7i6efsgfP38kQGhYZg7d7HhEQ9j4+ITHiU+Ts/IzMJl5zx7/hr/hlBILCIVvy+n0ioqq6prmppbWj99/tLW3tPb953R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