;
; Copyright (c) 2017 Roland
;
; Roland USB Audio Driver for Rubix Series KS setup information file
;
; This file supports:
;     Windows 10         Windows 10 x86
;

;******************************************************************************
; Version Section
;------------------------------------------------------------------------------
[Version]
Signature="$Windows NT$"
DriverVer=03/24/2017,1.0.0.11
Provider=%S_Provider%
CatalogFile=RolandRubixks.cat

Class=MEDIA
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}


[SignatureAttributes]
RolandRubixks.sys=SignatureAttributes.DRM

[SignatureAttributes.DRM]
DRMLevel=1300


;******************************************************************************
; Manufacturer
;------------------------------------------------------------------------------
[Manufacturer]
%S_Mfg%=_Models


;******************************************************************************
; Models sections
;------------------------------------------------------------------------------
[_Models]
"Roland Rubix 22"=_Install, TUSBAUDIO_ENUM\VID_0582&PID_01DF&KS
"Roland Rubix 24"=_Install, TUSBAUDIO_ENUM\VID_0582&PID_01E0&KS
"Roland Rubix 44"=_Install, TUSBAUDIO_ENUM\VID_0582&PID_01E1&KS

;******************************************************************************
; Install Sections x86
;------------------------------------------------------------------------------
[_Install.ntx86]
Include=ks.inf, wdmaudio.inf
Needs=KS.Registration, WDMAUDIO.Registration, mssysfx.CopyFilesAndRegister
CopyFiles=_CopyFiles_sys_x86,Driver.Files.Files,Driver.Files.Root,_CopyFiles_inf_x86
AddReg=_KSAddReg,_KSAddReg_x86,DriverAddReg.Uninst
;AddProperty=_KSAddProperty
RegisterDlls=_RegisterDlls_x86
ProfileItems=_ProCPL


[_Install.ntx86.Services]
AddService = %S_ServiceName%, 0x00000002, _AddService_x86, _EventLog_x86

[_AddService_x86]
ServiceType    = 1                  ; SERVICE_KERNEL_DRIVER
StartType      = 3                  ; SERVICE_DEMAND_START
ErrorControl   = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary  = %12%\RolandRubixks.sys

[_EventLog_x86]
AddReg=_EventLogAddReg_x86

[_EventLogAddReg_x86]
HKR,,EventMessageFile,%REG_EXPAND_SZ%,"%%SystemRoot%%\System32\IoLogMsg.dll;%%SystemRoot%%\System32\drivers\RolandRubixks.sys"
HKR,,TypesSupported,  %REG_DWORD%, 7

;******************************************************************************
; interface registration
;------------------------------------------------------------------------------
[_Install.ntx86.Interfaces]
AddInterface=%KSCATEGORY_AUDIO%,%KSNAME_Topology%,_KSTopology

[_KSTopology]
AddReg=_KSTopology_AddReg

[_KSTopology_AddReg]
HKR,,FriendlyName,,%S_TopologyDeviceName%
HKR,,CLSID,,%Proxy.CLSID%


;******************************************************************************
; make the driver available to the Multimedia system
;------------------------------------------------------------------------------
[_KSAddReg]
HKR,,AssociatedFilters,,"wdmaud,swmidi,redbook"
HKR,Drivers,SubClasses,,"wave,midi,mixer,aux"

HKR,Drivers\wave\wdmaud.drv,Driver,,wdmaud.drv
HKR,Drivers\midi\wdmaud.drv,Driver,,wdmaud.drv
HKR,Drivers\mixer\wdmaud.drv,Driver,,wdmaud.drv
HKR,Drivers\aux\wdmaud.drv,Driver,,wdmaud.drv

HKR,Drivers\wave\wdmaud.drv,Description,,%S_WdmAudDescription%
HKR,Drivers\midi\wdmaud.drv,Description,,%S_WdmAudDescription%
HKR,Drivers\mixer\wdmaud.drv,Description,,%S_WdmAudDescription%
HKR,Drivers\aux\wdmaud.drv,Description,,%S_WdmAudDescription%

[DriverAddReg.Uninst]
HKLM,%UNINST%,DisplayIcon,,%16422%\%PROGFOLDER%\%DEVFOLDER%\"uninstall.exe"
HKLM,%UNINST%,DisplayName,,"Roland USB Audio Driver for Rubix Series v1.0.0"
HKLM,%UNINST%,DisplayVersion,,"1.0.0"
HKLM,%UNINST%,InstallLocation,,%16422%\%PROGFOLDER%\%DEVFOLDER%"\"
HKLM,%UNINST%,NoModify,%REG_DWORD%,1
HKLM,%UNINST%,NoRepair,%REG_DWORD%,1
HKLM,%UNINST%,Publisher,,"Roland Corporation"
HKLM,%UNINST%,UninstallString,,%16422%\%PROGFOLDER%\%DEVFOLDER%\"uninstall.exe"
HKLM,%UNINST%,URLInfoAbout,,"http://www.roland.com/"

HKLM,%UNINST_INI%,InstallPath,,%16422%\%PROGFOLDER%\%DEVFOLDER%
HKLM,%UNINST_INI%,UninstallCmd,,%16422%\%PROGFOLDER%\%DEVFOLDER%\"uninstall.exe"
HKLM,%UNINST_INI%,UninstallCmdArgs,,""
HKLM,%UNINST_INI%,DriverMajorVer,,""
HKLM,%UNINST_INI%,DriverMinorVer,,""
HKLM,%UNINST_INI%,DriverSubVer,,""
HKLM,%UNINST_INI%,DriverBuildNb,,""
HKLM,%UNINST_INI%,DriverVersion,,"1.0.0"
HKLM,%UNINST_INI%,ProductName,,"Roland USB Audio Driver for Rubix Series"
HKLM,%UNINST_INI%,Language,,"1033"

[_KSAddReg_x86]
HKR,,Driver,,RolandRubixks.sys


;******************************************************************************
; Copy file sections
;------------------------------------------------------------------------------
[_CopyFiles_sys_x86]
RolandRubixks.sys,,,0x00000004

[_CopyFiles_inf_x86]
RolandRubixks.inf

[Driver.Files.Files]
custom.ini
RolandRubixapi.dll
RolandRubixasio.dll
RolandRubixCplApp.exe
RolandRubixCplApp.xml

[Driver.Files.Root]
setup.bmp
setup.ini
uninstall.exe


;******************************************************************************
; Create shortcut sections
;------------------------------------------------------------------------------
[_ProCPL]
Name		= %CPLSHORTCUTNAME%
SubDir		= %SCPROGFOLDER%\%DEVFOLDER%
CmdLine		= 16422,%PROGFOLDER%\%DEVFOLDER%\W10,RolandRubixCplApp.exe
WorkingDir	= 16422,%PROGFOLDER%\%DEVFOLDER%\W10
IconPath	= 16422,%PROGFOLDER%\%DEVFOLDER%\W10,RolandRubixCplApp.exe


;******************************************************************************
; Register DLLs sections
;------------------------------------------------------------------------------
[_RegisterDlls_x86]
16422,%PROGFOLDER%\%DEVFOLDER%\W10,RolandRubixapi.dll,1
16422,%PROGFOLDER%\%DEVFOLDER%\W10,RolandRubixasio.dll,1


;******************************************************************************
; Destination Directories
;------------------------------------------------------------------------------
[DestinationDirs]
DefaultDestDir  = 12  ; %windir%\system32\drivers 
_CopyFiles_sys_x86 = 12
_CopyFiles_inf_x86		= 16422,%PROGFOLDER%\%DEVFOLDER%\W10
Driver.Files.Root		= 16422,%PROGFOLDER%\%DEVFOLDER%
Driver.Files.Files		= 16422,%PROGFOLDER%\%DEVFOLDER%\W10


;******************************************************************************
; Disk Layout
;------------------------------------------------------------------------------
[SourceDisksNames.x86]
1=%S_DiskName%,,0

[SourceDisksFiles.x86]
RolandRubixks.sys=1
custom.ini=1
RolandRubixapi.dll=1
RolandRubixasio.dll=1
RolandRubixCplApp.exe=1
RolandRubixCplApp.xml=1
setup.bmp=1
setup.ini=1
uninstall.exe=1
RolandRubixks.inf=1


;******************************************************************************
; Text Strings
;------------------------------------------------------------------------------
[Strings]
;
; Non-Localizable Strings, DO NOT MODIFY!
;
REG_SZ         = 0x00000000
REG_MULTI_SZ   = 0x00010000
REG_EXPAND_SZ  = 0x00020000
REG_BINARY     = 0x00000001
REG_DWORD      = 0x00010001

KSCATEGORY_AUDIO="{6994AD04-93EF-11D0-A3CC-00A0C9223196}"
KSCATEGORY_RENDER="{65E8773E-8F56-11D0-A3B9-00A0C9223196}"
KSCATEGORY_CAPTURE="{65E8773D-8F56-11D0-A3B9-00A0C9223196}"
KSCATEGORY_TOPOLOGY="{DDA54A40-1E4C-11D1-A050-405705C10000}"
Proxy.CLSID="{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
KSSTRING_Filter="{9B365890-165F-11D0-A195-0020AFD156E4}"
KSNAME_Topology="Topology"


;
; Localizable Strings, modify as required
;
; provider
S_Provider="Roland Corporation"
S_Mfg="Roland"


; disk name
S_DiskName="Roland USB Audio Driver for Rubix Series"

S_WdmAudDescription="Roland Audio Class Driver"
S_TopologyDeviceName="Roland Audio Class Mixer"


; service name, should be set to x86 binary executable name without .sys extension
S_ServiceName="RolandRubixks"

PROGFOLDER="Roland"
SCPROGFOLDER="Roland"
DEVFOLDER="Rubix_Driver"
CPLSHORTCUTNAME="Rubix Control Panel"

UNINST="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Software_Roland_RolandRubix_Setup"
UNINST_INI="SOFTWARE\Roland\RolandRubix\Setup"

;;;;;;;;;;;;;;;;;;;;;; EOF ;;;;;;;;;;;;;;;;;;;;;;;;;;;;;
