
;/******************************************************************************
;** INTEL CONFIDENTIAL
;** Copyright 2007-2023 Intel Corporation. All Rights Reserved.
;**
;** The source code contained or described herein and all documents related 
;** to the source code ("Material") are owned by Intel Corporation or its 
;** suppliers or licensors. Title to the Material remains with Intel Corporation 
;** or its suppliers and licensors. The Material may contain trade secrets and 
;** proprietary and confidential information of Intel Corporation and its 
;** suppliers and licensors, and is protected by worldwide copyright and trade 
;** secret laws and treaty provisions. No part of the Material may be used, 
;** copied, reproduced, modified, published, uploaded, posted, transmitted, 
;** distributed, or disclosed in any way without Intel’s prior express written 
;** permission. 
;**
;** No license under any patent, copyright, trade secret or other 
;** intellectual property right is granted to or conferred upon you by 
;** disclosure or delivery of the Materials, either expressly, by implication, 
;** inducement, estoppel or otherwise. Any license under such intellectual 
;** property rights must be express and approved by Intel in writing.
;******************************************************************************/

;----------------------------------------------------------------------
; Version information
;----------------------------------------------------------------------
[Version] 
Signature 	= "$Windows NT$" 
Class 		= SoftwareComponent 
ClassGuid 	= {5c4c3332-344d-483c-8739-259e934c9cc8} 
Provider 	= %Mfg% 
CatalogFile     = XTUComponent.cat 
DriverVer = 06/21/2023,7.12.0.29

[DestinationDirs]
DefaultDestDir 			= 12
XTUComponent.CopyDriver = 12
XTUComponent.CopySvc  	= 16425
XTUComponent.CopyMSVC  = 16425

[Manufacturer]
%Mfg%           = IntelDevice, NTamd64.6.1, NTamd64

[IntelDevice.NTamd64.6.1] 
%INTELXTU.DeviceDesc% = XTUComponent_Install, SWC\PROVIDER_Intel_COMPONENT_XTU


;**************************************************************************
; Do-nothing section used to avoid "Unknown hardware" installation prompts
; on non-supported OS versions.

[IntelDevice.NTamd64]

;[IntelDevice.NTamd64.Services]

;----------------------------------------------------------------------
; NT install sections:
;----------------------------------------------------------------------
[XTUComponent_Install.NT]
CopyFiles 	= XTUComponent.CopyDriver, XTUComponent.CopySvc, XTUComponent.CopyMSVC


[XTUComponent.CopyDriver]
iocbios2.sys,,,2

[XTUComponent.CopySvc]
XtuService.exe,,,2
XtuCommon.dll,,,2
HardwareAccess.dll,,,2
HardwareAccessInterfaces.dll,,,2
HardwareServiceInterfaces.dll,,,2
HardwareServices.dll,,,2
Interop.IccProxy.dll,,,2
IccSdk.dll,,,2
Microsoft.Practices.Unity.dll,,,2
PerfTuneAppMutex.dll,,,2
PlatformDetection.dll,,,2
XtuApplication.dll,,,2
XtuApplicationInterfaces.dll,,,2
XtuCoreServer.dll,,,2
IntelBenchmarkSDK.dll,,,2
IntelOverclockingSDK.dll,,,2
Interop.IccProxy.dll,,,2
ProfileHelperModel.dll,,,2
XtuInterface.dll,,,2


[XTUComponent.CopyMSVC]
msvcr110.dll,,,2
msvcp110.dll,,,2

[XTUComponent_Install.NT.Services]
AddService = XTUComponent,2,IOCDriverService
;TODO: Add the right service name here
AddService = XTU3SERVICE, 0x000001f8, XTUAppService, ,Application, XTU

;----------------------------------------------------------------------
; Load IOCBios driver and XTU service as autostart service
;----------------------------------------------------------------------

[IOCDriverService]
ServiceType     = %SERVICE_KERNEL_DRIVER%
StartType       = %SERVICE_DEMAND_START%
ErrorControl    = %SERVICE_ERROR_NORMAL%
ServiceBinary   = %12%\iocbios2.sys

[XTUAppService]
DisplayName     = %OCServiceName%
Description     = %OCServiceDesc%
ServiceType     = %SERVICE_WIN32_OWN_PROCESS%
StartType       = %SERVICE_AUTO_START%
ErrorControl    = %SERVICE_ERROR_NORMAL%
ServiceBinary   = %16425%\XtuService.exe
AddReg          = XTUAppService.AddRegistry

;----------------------------------------------------------------------
; Service Registry section
;----------------------------------------------------------------------
[XTUAppService.AddRegistry]

;----------------------------------------------------------------------
; Source file information
;----------------------------------------------------------------------
[SourceDisksNames]
1 = %DiskName%,,,""

[SourceDisksFiles]
iocbios2.sys                    = 1
XtuCommon.dll                      = 1
HardwareAccess.dll              = 1
HardwareAccessInterfaces.dll    = 1
HardwareServiceInterfaces.dll   = 1
HardwareServices.dll            = 1
IntelBenchmarkSDK.dll           = 1
IntelOverclockingSDK.dll        = 1
Interop.IccProxy.dll            = 1
PlatformDetection.dll           = 1
ProfileHelperModel.dll          = 1
XtuApplication.dll              = 1
XtuApplicationInterfaces.dll    = 1
XtuCoreServer.dll               = 1
XtuService.exe                  = 1
IccSdk.dll                      = 1
PerfTuneAppMutex.dll            = 1
XtuInterface.dll                = 1
msvcp110.dll                    = 1
msvcr110.dll                    = 1
Microsoft.Practices.Unity.dll   = 1

;----------------------------------------------------------------------
; String Constants
;----------------------------------------------------------------------
[Strings]
Mfg                         = "Intel"
INTELXTU.DeviceDesc         = "Intel(R) XTU Component Device"
DiskName                    = "Intel(R) XTU Component Driver Disk"
OCServiceName               = "XTUOCDriverService"
OCServiceDesc               = "Intel(R) Overclocking Component Service"
ServiceDisplayName          = "XTU3SERVICE"
ServiceDescription          = "Intel(R) Extreme Tuning Utility Application Service"
ServiceFile                 = "XtuService.exe"
SERVICE_WIN32_OWN_PROCESS   = 0x00000010
SERVICE_KERNEL_DRIVER       = 1
SERVICE_SYSTEM_START        = 1
SERVICE_AUTO_START          = 0x2
SERVICE_DEMAND_START        = 0x3
SERVICE_ERROR_NORMAL        = 1
COPYFLG_NOSKIP              = 0x00000002

;------------------------------------------------------------------------------
; XTU Install Section
;------------------------------------------------------------------------------
;this is likely getting ignored, need to go back and confirm
;currentl security settings are actaully make in iocbios.c by the following define
;#define SEC_STRING L"D:P(A;;GA;;;SY)(A;;GA;;;BA)(A;;GR;;;WD)(A;;GR;;;RC)"
[XTUComponent_Install.NT.HW]
AddReg = XTUComponent.AddReg

[XTUComponent.AddReg]
HKR,,Security,,"D:P(A;;GA;;;SY)(A;;GA;;;BA)(A;;GR;;;WD)(A;;GR;;;RC)"
