; Installation inf for the OCTA-CAPTURE
;
; Copyright (c) 2017 Roland Corporation
;
[Version]
Signature="$Windows NT$"
Class=MEDIA
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%MfgName%
CatalogFile=RDID1110.CAT
DriverVer=01/18/2017,2.00.00.0002

;---------------------------------------------------------------;

[DestinationDirs]
Driver.Files.Asio		= 11
Driver.Files.User		= 11
Driver.Files.As32		= 10,syswow64
Driver.Files.Ext		= 10,system32\drivers ; %SystemRoot%\system32\drivers
Driver.Files.Root		= 16422,%PROGFOLDER%\%DEVFOLDER%
Driver.Files.Files		= 16422,%PROGFOLDER%\%DEVFOLDER%\Files
Driver.Files.Readme		= 16422,%PROGFOLDER%\%DEVFOLDER%\Readme
Driver.Files.RHTML		= 16422,%PROGFOLDER%\%DEVFOLDER%\Readme\html
DefaultDestDir 	    	= 10,system32\drivers ; %SystemRoot%\system32\drivers

[SourceDisksNames]
1=%DriverDiskName%,,

[SourceDisksFiles]
Uninstall.exe=1
RDWM1110.SYS=1,Files
RDAS1110.DLL=1,Files
RDDP1110.EXE=1,Files
RDCP1110.CPL=1,Files
RDAW1110.DLL=1,Files
RDAH1110.DAT=1,Files
RdUninst.dat=1,Files
Readme.htm=1
Readme_EN.htm=1,Readme
Readme_JP.htm=1,Readme
ReadmeEN1.htm=1,Readme\html
ReadmeEN2.htm=1,Readme\html
ReadmeEN3.htm=1,Readme\html
ReadmeJP1.htm=1,Readme\html
ReadmeJP2.htm=1,Readme\html
ReadmeJP3.htm=1,Readme\html

;---------------------------------------------------------------;

[Manufacturer]
%MfgName%=Roland,NTamd64.10

[Roland]
;; - Windows 8.1
;; not supported

[Roland.NTamd64.10]
;; Windows10
%DriverDeviceDesc%=DriverInstall, USB\VID_0582&PID_FF0A ; OCTA-CAPTURE
%DriverExDeviceDesc%=DriverInstall, USB\VID_0582&PID_FF0B ; OCTA-CAPTURE ExtendMode

;===============================================================;

[DriverInstall.NTamd64]
Include=ks.inf,wdmaudio.inf
Needs=KS.Registration,WDMAUDIO.Registration
CopyFiles=Driver.Files.User,Driver.Files.Ext,Driver.Files.Asio,Driver.Files.Ext,Driver.Files.Root,Driver.Files.Files,Driver.Files.Readme,Driver.Files.RHTML,Driver.Files.As32
AddReg=DriverAddReg,DriverAddReg.Asio,DriverAddReg.Ext,DriverAddReg.Inst,DriverAddReg.Uninst,DriverAddReg.As32
ProfileItems=ProCPL

[ProCPL]
Name       = %CPLSHORTCUTNAME%
SubDir     = %PROGFOLDER%\%DEVFOLDER%
CmdLine    = 16422,%PROGFOLDER%\%DEVFOLDER%,"Files"\%RDDPFILE%
WorkingDir = 16422,%PROGFOLDER%\%DEVFOLDER%
IconPath   = 16422,%PROGFOLDER%\%DEVFOLDER%,"Files"\%RDDPFILE%

[DriverAddReg]
HKR,,DevLoader,,"*ntkern"
HKR,,AssociatedFilters,,"wdmaud,swmidi,redbook"
HKR,,Driver,,%RDWMFILE%
HKR,,NTMPDriver,,"%RDWMFILE%"

HKR,Drivers,SubClasses,,"wave,midi,mixer"

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\wave\wdmaud.drv,Description,,%DriverDeviceDesc%
HKR,Drivers\midi\wdmaud.drv, Description,,%DriverDeviceDesc%
HKR,Drivers\mixer\wdmaud.drv,Description,,%DriverDeviceDesc%

HKLM,%MediaCategories%\%WDM.Tp11.szPname.GUID%,Name,,%WDM.Tp11.szPname%
HKLM,%MediaCategories%\%WDM.Tp11.szPname.GUID%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%WDM.Tp12.szPname.GUID%,Name,,%WDM.Tp12.szPname%
HKLM,%MediaCategories%\%WDM.Tp12.szPname.GUID%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%WDM.Tp13.szPname.GUID%,Name,,%WDM.Tp13.szPname%
HKLM,%MediaCategories%\%WDM.Tp13.szPname.GUID%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%WDM.Tp14.szPname.GUID%,Name,,%WDM.Tp14.szPname%
HKLM,%MediaCategories%\%WDM.Tp14.szPname.GUID%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%WDM.Tp15.szPname.GUID%,Name,,%WDM.Tp15.szPname%
HKLM,%MediaCategories%\%WDM.Tp15.szPname.GUID%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%WDM.Tp16.szPname.GUID%,Name,,%WDM.Tp16.szPname%
HKLM,%MediaCategories%\%WDM.Tp16.szPname.GUID%,Display,1,00,00,00,00

[DriverAddReg.Asio]
HKLM,SOFTWARE\ASIO\%ASIONAME%,CLSID,0,%ASIOGUID%
HKLM,SOFTWARE\ASIO\%ASIONAME%,Description,0,%ASIONAME%
HKCR,CLSID\%ASIOGUID%,,0,%ASIONAME%
HKCR,CLSID\%ASIOGUID%\InprocServer32,,0,%11%\%RDASFILE%
HKCR,CLSID\%ASIOGUID%\InprocServer32,ThreadingModel,0,Apartment

[DriverAddReg.As32]
HKLM,SOFTWARE\Wow6432Node\ASIO\%ASIONAME%,"CLSID",0,%ASIOGUID%
HKLM,SOFTWARE\Wow6432Node\ASIO\%ASIONAME%,Description,0,%ASIONAME%
HKCR,Wow6432Node\CLSID\%ASIOGUID%,,0,%ASIONAME%
HKCR,Wow6432Node\CLSID\%ASIOGUID%\InprocServer32,,0,%10%\SysWOW64\%RDAWFILE%
HKCR,Wow6432Node\CLSID\%ASIOGUID%\InprocServer32,"ThreadingModel",0,"Apartment"

[DriverAddReg.Ext]
HKCR, "%EXT%",							,0x00020000,%EXTFUNC%
HKCR, "%EXTFUNC%\DefaultIcon",			,0x00020000,"%%systemroot%%\system32\"%RDDPFILE%,-129
HKCR, "%EXTFUNC%\Shell",				,		   ,"Open"
HKCR, "%EXTFUNC%\Shell\Open",			,0x00020000,"@%%systemroot%%\system32\"%RDCPFILE%,-8
HKCR, "%EXTFUNC%\Shell\Open\Command",	,0x00020000,"%%systemroot%%\system32\"%RDDPFILE%

[DriverAddReg.Uninst]
HKLM, %UNINST%, "DisplayName",,%DEVFOLDER%
HKLM, %UNINST%, "UninstallString",,%16422%\%PROGFOLDER%\%DEVFOLDER%\"Uninstall.exe"
HKLM, %UNINST%, "DisplayIcon",,%16422%\%PROGFOLDER%\%DEVFOLDER%\"Uninstall.exe,2"
HKLM, %UNINST%, "Publisher",,"Roland Corporation"

[DriverAddReg.Inst]
HKCR, %INSTPATH%,			"",			,"RdDrv"
HKCR, %INSTPATH%\%DEVRDID%,	"",			,%16422%\%PROGFOLDER%\%DEVFOLDER%
HKCR, %INSTPATH%\%DEVRDID%,	"version",	,"for Evaluation"
HKCR, %INSTPATH%\%DEVRDID%,	"copyright",,"Copyright (C) 2017 Roland Corporation."
HKCR, %INSTPATH%\%DEVRDID%,	"As44",	0x00010001,96
HKCR, %INSTPATH%\%DEVRDID%,	"As48",	0x00010001,97
HKCR, %INSTPATH%\%DEVRDID%,	"As96",	0x00010001,110
HKCR, %INSTPATH%\%DEVRDID%,	"As192",0x00010001,131

[DriverInstall.NTamd64.Services]
AddService = %SRVRDID%, 0x00000002, Driver_Service_Inst

[Driver_Service_Inst]
DisplayName   = %DriverDeviceDesc%
ServiceType   = 1                  ; SERVICE_KERNEL_DRIVER
StartType     = 3                  ; SERVICE_DEMAND_START
ErrorControl  = 1                  ; SERVICE_ERROR_NORMAL
ServiceBinary = %10%\system32\Drivers\%RDWMFILE%

;;;
;;
[Driver.Files.Ext]
%RDWMFILE%

[Driver.Files.User]
%RDCPFILE%
%RDDPFILE%

[Driver.Files.Asio]
%RDASFILE%

[Driver.Files.As32]
%RDAWFILE%
%RDAHFILE%

[Driver.Files.Root]
Uninstall.exe
README.htm

[Driver.Files.Files]
RdUninst.dat
%RDDPFILE%

[Driver.Files.Readme]
Readme_EN.htm
Readme_JP.htm

[Driver.Files.RHTML]
ReadmeEN1.htm
ReadmeEN2.htm
ReadmeEN3.htm
ReadmeJP1.htm
ReadmeJP2.htm
ReadmeJP3.htm

[DriverInstall.NTamd64.Interfaces]
AddInterface=%KSCATEGORY_AUDIO%,    %KSNAME_Wv11%, WDM.Interface.Wv11
AddInterface=%KSCATEGORY_RENDER%,   %KSNAME_Wv11%, WDM.Interface.Wv11
AddInterface=%KSCATEGORY_CAPTURE%,  %KSNAME_Wv11%, WDM.Interface.Wv11
AddInterface=%KSCATEGORY_AUDIO%,    %KSNAME_Wv12%, WDM.Interface.Wv12
AddInterface=%KSCATEGORY_RENDER%,   %KSNAME_Wv12%, WDM.Interface.Wv12
AddInterface=%KSCATEGORY_CAPTURE%,  %KSNAME_Wv12%, WDM.Interface.Wv12
AddInterface=%KSCATEGORY_AUDIO%,    %KSNAME_Wv13%, WDM.Interface.Wv13
AddInterface=%KSCATEGORY_RENDER%,   %KSNAME_Wv13%, WDM.Interface.Wv13
AddInterface=%KSCATEGORY_CAPTURE%,  %KSNAME_Wv13%, WDM.Interface.Wv13
AddInterface=%KSCATEGORY_AUDIO%,    %KSNAME_Wv14%, WDM.Interface.Wv14
AddInterface=%KSCATEGORY_RENDER%,   %KSNAME_Wv14%, WDM.Interface.Wv14
AddInterface=%KSCATEGORY_CAPTURE%,  %KSNAME_Wv14%, WDM.Interface.Wv14
AddInterface=%KSCATEGORY_AUDIO%,    %KSNAME_Wv15%, WDM.Interface.Wv15
AddInterface=%KSCATEGORY_RENDER%,   %KSNAME_Wv15%, WDM.Interface.Wv15
AddInterface=%KSCATEGORY_CAPTURE%,  %KSNAME_Wv15%, WDM.Interface.Wv15
AddInterface=%KSCATEGORY_AUDIO%,    %KSNAME_Wv16%, WDM.Interface.Wv16
AddInterface=%KSCATEGORY_RENDER%,   %KSNAME_Wv16%, WDM.Interface.Wv16
AddInterface=%KSCATEGORY_CAPTURE%,  %KSNAME_Wv16%, WDM.Interface.Wv16

AddInterface=%KSCATEGORY_AUDIO%,    %KSNAME_Md11%, WDM.Interface.Md11
AddInterface=%KSCATEGORY_RENDER%,   %KSNAME_Md11%, WDM.Interface.Md11
AddInterface=%KSCATEGORY_CAPTURE%,  %KSNAME_Md11%, WDM.Interface.Md11
AddInterface=%KSCATEGORY_AUDIO%,    %KSNAME_Md12%, WDM.Interface.Md12
AddInterface=%KSCATEGORY_RENDER%,   %KSNAME_Md12%, WDM.Interface.Md12
AddInterface=%KSCATEGORY_CAPTURE%,  %KSNAME_Md12%, WDM.Interface.Md12

AddInterface=%KSCATEGORY_AUDIO%,    %KSNAME_MdEx11%, WDM.Interface.MdEx11
AddInterface=%KSCATEGORY_RENDER%,   %KSNAME_MdEx11%, WDM.Interface.MdEx11
AddInterface=%KSCATEGORY_CAPTURE%,  %KSNAME_MdEx11%, WDM.Interface.MdEx11
AddInterface=%KSCATEGORY_AUDIO%,    %KSNAME_MdEx12%, WDM.Interface.MdEx12
AddInterface=%KSCATEGORY_RENDER%,   %KSNAME_MdEx12%, WDM.Interface.MdEx12
AddInterface=%KSCATEGORY_CAPTURE%,  %KSNAME_MdEx12%, WDM.Interface.MdEx12

AddInterface=%KSCATEGORY_AUDIO%,    %KSNAME_Topology%,  WDM.Interface.Topology

[WDM.Interface.Wv11]
AddReg=WDM.Interface.Wv11.AddReg
[WDM.Interface.Wv11.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%WDM.Wv11.szPname%
[WDM.Interface.Wv12]
AddReg=WDM.Interface.Wv12.AddReg
[WDM.Interface.Wv12.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%WDM.Wv12.szPname%
[WDM.Interface.Wv13]
AddReg=WDM.Interface.Wv13.AddReg
[WDM.Interface.Wv13.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%WDM.Wv13.szPname%
[WDM.Interface.Wv14]
AddReg=WDM.Interface.Wv14.AddReg
[WDM.Interface.Wv14.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%WDM.Wv14.szPname%
[WDM.Interface.Wv15]
AddReg=WDM.Interface.Wv15.AddReg
[WDM.Interface.Wv15.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%WDM.Wv15.szPname%
[WDM.Interface.Wv16]
AddReg=WDM.Interface.Wv16.AddReg
[WDM.Interface.Wv16.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%WDM.Wv16.szPname%

[WDM.Interface.Md11]
AddReg=WDM.Interface.Md11.AddReg
[WDM.Interface.Md11.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%WDM.Md11.szPname%

[WDM.Interface.Md12]
AddReg=WDM.Interface.Md12.AddReg
[WDM.Interface.Md12.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%WDM.Md12.szPname%

[WDM.Interface.MdEx11]
AddReg=WDM.Interface.MdEx11.AddReg
[WDM.Interface.MdEx11.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%WDM.MdEx11.szPname%
[WDM.Interface.MdEx12]
AddReg=WDM.Interface.MdEx12.AddReg
[WDM.Interface.MdEx12.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%WDM.MdEx12.szPname%

[WDM.Interface.Topology]
AddReg=WDM.Interface.Topo.AddReg
;; warning!! must be "Topo" because "Topology" is too long
[WDM.Interface.Topo.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%WDM.Topology.szPname%

;---------------------------------------------------------------;
[Strings]
MfgName="Roland"

DriverDiskName="OCTA-CAPTURE Driver Installation disk"
DriverDeviceDesc="OCTA-CAPTURE"
DriverExDeviceDesc="OCTA-CAPTURE EXP"

Proxy.CLSID="{17CCA71B-ECD7-11D0-B908-00A0C9223196}"
KSCATEGORY_AUDIO="{6994AD04-93EF-11D0-A3CC-00A0C9223196}"
KSCATEGORY_RENDER="{65E8773E-8F56-11D0-A3B9-00A0C9223196}"
KSCATEGORY_CAPTURE="{65E8773D-8F56-11D0-A3B9-00A0C9223196}"

KSNAME_Wv11="Wave1-1"
KSNAME_Wv12="Wave1-2"
KSNAME_Wv13="Wave1-3"
KSNAME_Wv14="Wave1-4"
KSNAME_Wv15="Wave1-5"
KSNAME_Wv16="WaveIn1-1"

WDM.Wv11.szPname="1-2 (OCTA-CAPTURE)"
WDM.Wv12.szPname="3-4 (OCTA-CAPTURE)"
WDM.Wv13.szPname="5-6 (OCTA-CAPTURE)"
WDM.Wv14.szPname="7-8 (OCTA-CAPTURE)"
WDM.Wv15.szPname="9-10 (OCTA-CAPTURE)"
WDM.Wv16.szPname="MAIN (OCTA-CAPTURE)"

KSNAME_Md11="Midi1-1"
KSNAME_Md12="Midi1-2"

WDM.Md11.szPname="MIDI (OCTA-CAPTURE)"
WDM.Md12.szPname="CTRL (OCTA-CAPTURE)"

KSNAME_MdEx11="MidiEx1-1"
KSNAME_MdEx12="MidiEx1-2"

WDM.MdEx11.szPname="MIDI (EXP OCTA-CAPTURE)"
WDM.MdEx12.szPname="CTRL (EXP OCTA-CAPTURE)"

KSNAME_Topology="Topology"
WDM.Topology.szPname="OCTA-CAPTURE Mixer"

MediaCategories="SYSTEM\CurrentControlSet\Control\MediaCategories"

WDM.Tp11.szPname="1-2"
WDM.Tp12.szPname="3-4"
WDM.Tp13.szPname="5-6"
WDM.Tp14.szPname="7-8"
WDM.Tp15.szPname="9-10"
WDM.Tp16.szPname="MAIN"

WDM.Tp11.szPname.GUID = "{4D7F0A62-25C8-4646-90A2-E0675127F9DA}"
WDM.Tp12.szPname.GUID = "{E4EF1DA7-5929-421C-A7F7-8ED623D81F90}"
WDM.Tp13.szPname.GUID = "{04C014F5-0D20-4D0D-8622-6DBDF5992CD2}"
WDM.Tp14.szPname.GUID = "{71813B84-3852-44CE-9B05-B7C089A3E11A}"
WDM.Tp15.szPname.GUID = "{648C0761-034D-4D19-8013-E8DB99ED6D14}"
WDM.Tp16.szPname.GUID = "{E3347310-2AE4-4FF7-8F1F-35FE77426FC0}"

REG_MSZ = 0x00010000


;--------------------------
RDWMFILE="RDWM1110.SYS"
RDASFILE="RDAS1110.DLL"
RDDPFILE="RDDP1110.EXE"
RDCPFILE="RDCP1110.CPL"
RDAWFILE="RDAW1110.DLL"
RDAHFILE="RDAH1110.DAT"
;--------------------------


ASIOGUID="{418B3457-41E7-4514-8813-9573C0F1F15C}"
ASIONAME="OCTA-CAPTURE"

INSTPATH="CLSID\{1C8A6AA7-9A48-4c8c-A990-EEA1B42D1D93}"
DEVRDID="RDID0110"
SRVRDID="RDID1110"
UNINST="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\RolandRDID0110"

PROGFOLDER="Roland"
DEVFOLDER="OCTA-CAPTURE Driver"

CPLSHORTCUTNAME="OCTA-CAPTURE"

EXT=".octa"
EXTFUNC="Roland.RDID0110.RDDP1110"
