[Main]
Title=Display Drivers
Description=Add Drivers to WinPE
Selected=False
Level=5
Author=Homes32, Kare
Version=1.1
Date=20.03.2024
Credits=


[Interface]
Panel=1
tEcho_1=Add Display Driver


[Interface.07]
Description=Display Teiberunterstützung für WinPE
Panel=1
tEcho_1=Füge Display Treiber hinzu


[Process]

Echo,%tEcho_1%
RegLoad,%RegSystem%,PE-SYSTEM
RegLoad,%target_sys%\config\DRIVERS,PE-Drivers
RegLoad,%Install_Sys%\config\DRIVERS,Ins-Drivers
RegLoad,%Install_Sys%\config\System,Ins-System

// BasisDisplay
Filecopy,%Install_win%\Inf\display.inf,%target_win%\Inf\
//Dircopy,%Install_sys%\DriverStore\FileRepository\display.inf*,%target_sys%\DriverStore\FileRepository\
RegCopy,Drv,Ins-Drivers\DriverDatabase,PE-Drivers\DriverDatabase,display.inf
RegCopy,Drv,Ins-Drivers\DriverDatabase,PE-Drivers\DriverDatabase,displayoverride.inf

// Monitor
Filecopy,%Install_win%\Inf\monitor.inf,%target_win%\Inf\
Filecopy,%Install_Sys%\drivers\monitor.sys,%target_Sys%\drivers\

Dircopy,%Install_sys%\DriverStore\FileRepository\monitor.inf*,%target_sys%\DriverStore\FileRepository\
RegCopy,Drv,Ins-Drivers\DriverDatabase,PE-Drivers\DriverDatabase,monitor.inf
RegCopy,HKLM,Ins-Drivers\DriverDatabase\DeviceIds\Monitor,PE-Drivers\DriverDatabase\DeviceIds\Monitor
RegCopy,HKLM,Ins-System\ControlSet001\Services\monitor,PE-System\ControlSet001\Services\monitor
RegWrite,HKLM,0x3,PE-Drivers\DriverDatabase\DeviceIds\*PNP09FF","monitor.inf",01,ff,00,00
RegWrite,HKLM,0x1,PE-Drivers\DriverDatabase\DriverFiles\monitor.sys","","monitor.inf"
If,Not,ExistRegKey,HKLM,PE-Drivers\DriverDatabase\DeviceIds\{4d36e96e-e325-11ce-bfc1-08002be10318},monitor.inf,then,RegWrite,HKLM,0x0,PE-Drivers\DriverDatabase\DeviceIds\{4d36e96e-e325-11ce-bfc1-08002be10318},monitor.inf

// C_Monitor.inf
RegCopy,HKLM,Ins-Drivers\DriverDatabase\DriverInfFiles\c_monitor.inf,PE-Drivers\DriverDatabase\DriverInfFiles\
RegRead,%DrvDir%,HKLM,Ins-Drivers\DriverDatabase\DriverInfFiles\c_monitor.inf,Active
RegCopy,HKLM,Ins-Drivers\DriverDatabase\DriverPackages\%DrvDir%,PE-Drivers\DriverDatabase\DriverPackages\
If,Not,ExistRegKey,HKLM,PE-Drivers\DriverDatabase\DeviceIds\{4d36e96e-e325-11ce-bfc1-08002be10318},c_monitor.inf,then,RegWrite,HKLM,0x0,PE-Drivers\DriverDatabase\DeviceIds\{4d36e96e-e325-11ce-bfc1-08002be10318},c_monitor.inf

RegUnLoad,PE-SYSTEM
RegUnLoad,PE-Drivers
RegUnLoad,Ins-Drivers
RegUnLoad,Ins-System


[Script-Pic]
0=2638,3288,ZLB64
1=eNqdlXs41Nsax9eYYcZtuyfaQ0Xu1bPLLZVJYkqnbZMM0rjkEkIqZnKb7nJp21GczY7kbjCnjYiYXGYI45YIMa4Rp8yE8WMuvzP2s885/5w/zjnftdbzvM9a632f9/OutZ4Ff4AngaKD/Sl7gEAggLe4AXgM2AIJBGKr/ymkJHJLUigUUhIthUZvDYy0rDQGI4NBo2XkZWRk5cRCS3+nIC/33Za9FWTLfctL3OUwaIzc/yz4DVDCgJPgJBKxG0goIZBKCLgNaAOAkET8IfCnEBJIlKSUOCUZWfGGGkVx+kikhDhZSRRKvBonXgcoJUnlXT/YSKk4+aB3R6geuPUoD6Nz/EWzmnM/R/eg79Xb0jLb1LdraO7R0zcwNDI1M7ewPGRle8LOHn/ylMNZl3OuBDd3j4t+/gGBl4KCr12PjCKRb0TfuXvvfsKDxKS09MdPMjL/+mvW8/yCwqLiktKy36uqa17W1r2qb2ltYzDbO952DrwbfD80/GFkdGp6Znbu0/zC50Xut5XVNd46tLG5xYUASMQ/9R+5lMRcEuIzQKG3uBASpK0NSijJXT9IKds4oX0iVHY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