; ------------------------------------------------
; Copyright (c) 2022 Lenovo Corporation
; revision 0
; This is a setupfile for Y25-30
; ------------------------------------------------

[Version]
signature   = "$Windows NT$"
Class       = Monitor
ClassGuid   = {4D36E96E-E325-11CE-BFC1-08002BE10318}
Provider    = %Lenovo%
CatalogFile = Y25-30.cat
DriverVer   = 10/15/2019,1.0.0.0

[SourceDisksNames]
1=%DiskName%

[SourceDisksFiles]
Y25-30.icm=1

[DestinationDirs]
DefaultDestDir           = 12
Y25-30_HDMI 1.CopyFiles      = 23
Y25-30_HDMI 2.CopyFiles     = 23
Y25-30_DP.CopyFiles     = 23


[Manufacturer]
%Lenovo%=Lenovo,NTx86,NTAMD64

[Lenovo]
%Y25-30_HDMI 1%      = Y25-30_HDMI 1.Install, Monitor\LEN66F0
%Y25-30_HDMI 2%      = Y25-30_HDMI 2.Install, Monitor\LEN66F0
%Y25-30_DP%      = Y25-30_DP.Install, Monitor\LEN66F0

[Lenovo.NTx86]
%Y25-30_HDMI 1%      = Y25-30_HDMI 1.Install, Monitor\LEN66F0
%Y25-30_HDMI 2%      = Y25-30_HDMI 2.Install, Monitor\LEN66F0
%Y25-30_DP%      = Y25-30_DP.Install, Monitor\LEN66F0


[Lenovo.NTAMD64]
%Y25-30_HDMI 1%      = Y25-30_HDMI 1.Install, Monitor\LEN66F0
%Y25-30_HDMI 2%      = Y25-30_HDMI 2.Install, Monitor\LEN66F0
%Y25-30_DP%      = Y25-30_DP.Install, Monitor\LEN66F0

[ControlFlags]
ExcludeFromSelect = Monitor\LEN66F0
ExcludeFromSelect = Monitor\LEN66F0
ExcludeFromSelect = Monitor\LEN66F0


[Y25-30_HDMI 1.Install]
DelReg    = LEN_CURRENT_REG
AddReg    = Y25-30_HDMI 1.AddReg, 1920, DPMS
CopyFiles = Y25-30_HDMI 1.CopyFiles

[Y25-30_HDMI 2.Install]
DelReg    = LEN_CURRENT_REG
AddReg    = Y25-30_HDMI 2.AddReg, 1920, DPMS
CopyFiles = Y25-30_HDMI 2.CopyFiles

[Y25-30_DP.Install]
DelReg    = LEN_CURRENT_REG
AddReg    = Y25-30_DP.AddReg, 1920, DPMS
CopyFiles = Y25-30_DP.CopyFiles

[LEN_CURRENT_REG]
HKR,MODES
HKR,,MaxResolution
HKR,,DPMS
HKR,,ICMProfile

[1920]
HKR,,MaxResolution,,"1920,1080"

[DPMS]
HKR,,DPMS,,1

[Y25-30_HDMI 1.AddReg]
HKR,"MODES\1920,1080",Mode1,,"30.0-280.0,48.0-240.0,+,+"
HKR,,ICMProfile,0,"Y25-30.icm"

[Y25-30_HDMI 2.AddReg]
HKR,"MODES\1920,1080",Mode1,,"30.0-280.0,48.0-240.0,+,+"
HKR,,ICMProfile,0,"Y25-30.icm"

[Y25-30_DP.AddReg]
HKR,"MODES\3440,1440",Mode1,,"30.0-300.0,48.0-240.0,+,+"
HKR,,ICMProfile,0,"Y25-30.icm"

[Y25-30_HDMI 1.CopyFiles]
Y25-30.icm

[Y25-30_HDMI 2.CopyFiles]
Y25-30.icm

[Y25-30_DP.CopyFiles]
Y25-30.icm

[Y25-30_HDMI 1.Install.Services]
AddService = monitor, %SPSVCINST_ASSOCSERVICE%, Monitor_Service.Install

[Y25-30_HDMI 2.Install.Services]
AddService = monitor, %SPSVCINST_ASSOCSERVICE%, Monitor_Service.Install

[Y25-30_DP.Install.Services]
AddService = monitor, %SPSVCINST_ASSOCSERVICE%, Monitor_Service.Install

[Monitor_Service.Install]
DisplayName    = %Monitor.SVCDESC%
ServiceType    = 1                 ; SERVICE_KERNEL_DRIVER
StartType      = 3                 ; SERVICE_DEMAND_START
ErrorControl   = 1                 ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\monitor.sys

[Strings]
SPSVCINST_ASSOCSERVICE = 0x00000002
Monitor.SVCDESC        = "Microsoft Monitor Class Function Driver Service"
Lenovo                   = "Lenovo Inc."
DiskName               = "Lenovo Monitor installation disk"
Y25-30_HDMI 1          = "Lenovo Y25-30"
Y25-30_HDMI 2          = "Lenovo Y25-30"
Y25-30_DP          = "Lenovo Y25-30"

