;***********************************************************************
;
; mbts97w8x64.inf
;
; Copyright (C) 2013, Marvell International Ltd.  
; All Rights Reserved
;
; Installation script for Marvell AVASTAR Family USB Bluetooth Radio
;
;***********************************************************************
[Version]
 DriverVer=03/05/2013,14.69.17064.93
 Signature              = "$Windows NT$"
 Class                  = Bluetooth
 ClassGUID              = {e0cbf06c-cd8b-4647-bb8a-263b43f0f974}
 Provider               = %MRVL_VER_VENDOR_NAME_STR%
 CatalogFile            = mbtr97w8x64.cat

[Manufacturer]
 %MRVL_VER_VENDOR_NAME_STR% = mv14usb_models, NTamd64

[mv14usb_models.NTamd64]
 %MRVL_USB8797_DESC_STR% = mv14u6x.NTamd64, USB\VID_1286&PID_2044&MI_00


;********************************************************************************
;					x64 Install section for Windows 8
;********************************************************************************
[mv14u6x.NTamd64]
 Include=bth.inf
 Needs=BthUsb.NT
 CopyFiles = mv14usb.MrvlBtRadio.copyfiles.NTamd64
 CopyFiles = mv14usb.MrvlBtRadioService.copyfiles.NTamd64
 AddReg    = mv14usb.MrvlBtRadio.AddReg.NTamd64
 AddReg    = mv14usb.MrvlBtRadioService.AddReg.NTamd64

;********************************************************************************
;					x64 HW section for Windows 8
;********************************************************************************
[mv14u6x.NTamd64.HW]
Include=bth.inf
Needs=BthUsb.NT.HW

;*********************************************************************************************
;				x64 BT Service section
;*********************************************************************************************
[mv14u6x.NTamd64.Services]
 Include=bth.inf
 Needs =BthUsb.NT.Services
 AddService = %MRVL_USB8797_DESC_STR%,0x00000800,mv14u6x.Service.NTamd64

[mv14u6x.Service.NTamd64]
DisplayName   = %MRVL_USB8797_DESC_STR% 
ServiceType   = 0x10 
StartType     = 3 
ErrorControl  = 1 
ServiceBinary = %11%\mvbtrcsvcx64.exe install

;*********************************************************************************************
;				x64 BT radio DLL Registry section
;*********************************************************************************************
[mv14usb.MrvlBtRadio.AddReg.NTamd64]
 HKLM, "SYSTEM\CurrentControlSet\services\BTHPORT\Parameters\Radio Support", "SupportDLL", %REG_EXPAND_SZ%, "%11%\mvbtrcx64.dll"
 HKLM, "SYSTEM\CurrentControlSet\services\BTHPORT\Parameters\Radio Support", "MrvlRadioState", %REG_DWORD%, 1
 HKLM, "SYSTEM\CurrentControlSet\Control\DeviceOverrides\USB#VID_1286&PID_2044\LocationPaths\*", "Removable", %REG_DWORD%, 0

;*********************************************************************************************
;				x64 BT radio SERVICE APPLICATION Registry section
;*********************************************************************************************
[mv14usb.MrvlBtRadioService.AddReg.NTamd64]
 HKLM, "SYSTEM\CurrentControlSet\services\mvbtradio", "ImagePath", %REG_EXPAND_SZ%, "%11%\mvbtrcsvcx64.exe start"
 HKLM, "SYSTEM\CurrentControlSet\services\mvbtradio", "ObjectName", %REG_SZ%, "NT AUTHORITY\LocalService"
 HKLM, "SYSTEM\CurrentControlSet\services\mvbtradio", "DependOnService", %REG_MULTI_SZ%, "RpcSs"
 HKLM, "SYSTEM\CurrentControlSet\services\mvbtradio", "RequiredPrivileges", %REG_MULTI_SZ%, "SeChangeNotifyPrivilege SeCreateGlobalPrivilege SeImpersonatePrivilege"
 HKLM, "SYSTEM\CurrentControlSet\services\mvbtradio", "ServiceSidType", %REG_DWORD%, 1
 HKLM, "SYSTEM\CurrentControlSet\services\mvbtradio", "Start", %REG_DWORD%, 3
 HKLM, "SYSTEM\CurrentControlSet\services\mvbtradio", "Type", %REG_DWORD%, 32

;*********************************************************************************************
;				Common File copy section
;*********************************************************************************************
[DestinationDirs]
 DefaultDestDir                                  	= 12 ; %windir%\system32\drivers
 mv14usb.MrvlBtRadio.copyfiles                  	= 11 ; %windir%\system32\
 mv14usb.MrvlBtRadio.copyfiles.NTamd64          	= 11 ; %windir%\system32\
 mv14usb.MrvlBtRadioService.copyfiles           	= 11 ; %windir%\system32\
 mv14usb.MrvlBtRadioService.copyfiles.NTamd64           = 11 ; %windir%\system32\
 
[SourceDisksNames]
 1 = %INSTALL_DISK_STR%

[SourceDisksFiles]
 mvbtrcx64.dll = 1
 mvbtrcsvcx64.exe = 1

[mv14usb.MrvlBtRadio.copyfiles.NTamd64]
 mvbtrcx64.dll

[mv14usb.MrvlBtRadioService.copyfiles.NTamd64]
 mvbtrcsvcx64.exe
 
;*********************************************************************************************
[Strings]
;Non-Localizable
 SPSVCINST_ASSOCSERVICE= 0x00000002
 REG_SZ         = 0x00000000
 REG_MULTI_SZ   = 0x00010000
 REG_EXPAND_SZ  = 0x00020000
 REG_BINARY     = 0x00000001
 REG_DWORD      = 0x00010001

;Localizable
 MRVL_VER_VENDOR_STR		= "Marvell"
 MRVL_VER_VENDOR_NAME_STR	= "Marvell Semiconductor, Inc."
 INSTALL_DISK_STR		= "Marvell AVASTAR Radio Control Software Installation Disk #1"
 MRVL_USB8797_DESC_STR		= "Marvell AVASTAR Bluetooth Radio Adapter"
 
