; Installation inf for the R-88
;
; Copyright (c) 2015 Roland Corporation
;
[Version]
Signature="$Windows NT$"
Class=MEDIA
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%MfgName%
CatalogFile=RDID1137.CAT
DriverVer=07/21/2015,1.00.00.0000

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

[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
RDWM1137.SYS=1,Files
RDAS1137.DLL=1,Files
RDDP1137.EXE=1,Files
RDCP1137.CPL=1,Files
RDAW1137.DLL=1,Files
RDAH1137.DAT=1,Files
RdUninst.dat=1,Files
Readme.htm=1
Readme_JP.htm=1,Readme
Readme_EN.htm=1,Readme
Readme_FR.htm=1,Readme
Readme_IT.htm=1,Readme
Readme_DE.htm=1,Readme
Readme_ES.htm=1,Readme
Readme_NL.htm=1,Readme
Readme_PT.htm=1,Readme
ReadmeJP1.htm=1,Readme\html
ReadmeJP2.htm=1,Readme\html
ReadmeEN1.htm=1,Readme\html
ReadmeEN2.htm=1,Readme\html
ReadmeFR1.htm=1,Readme\html
ReadmeFR2.htm=1,Readme\html
ReadmeIT1.htm=1,Readme\html
ReadmeIT2.htm=1,Readme\html
ReadmeDE1.htm=1,Readme\html
ReadmeDE2.htm=1,Readme\html
ReadmeES1.htm=1,Readme\html
ReadmeES2.htm=1,Readme\html
ReadmeNL1.htm=1,Readme\html
ReadmeNL2.htm=1,Readme\html
ReadmePT1.htm=1,Readme\html
ReadmePT2.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_015D ; R-88

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

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

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

[ProReadme]
Name       = %RMSHORTCUTNAME%
SubDir     = %SCPROGFOLDER%\%DEVFOLDER%
CmdLine    = 16422,%PROGFOLDER%\%DEVFOLDER%,README.HTM
WorkingDir = 16422,%PROGFOLDER%\%DEVFOLDER%
IconPath   = 16422,%PROGFOLDER%\%DEVFOLDER%,README.HTM



[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

[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.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",	,"Ver.1.0.0"
HKCR, %INSTPATH%\%DEVRDID%,	"copyright",,"Copyright (C) 2015 Roland Corporation."
HKCR, %INSTPATH%\%DEVRDID%,	"As44",	0x00010001,102
HKCR, %INSTPATH%\%DEVRDID%,	"As48",	0x00010001,106
HKCR, %INSTPATH%\%DEVRDID%,	"As88",	0x00010001,154
HKCR, %INSTPATH%\%DEVRDID%,	"As96",	0x00010001,165

[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_JP.htm
Readme_EN.htm
Readme_FR.htm
Readme_IT.htm
Readme_DE.htm
Readme_ES.htm
Readme_NL.htm
Readme_PT.htm

[Driver.Files.RHTML]
ReadmeJP1.htm
ReadmeJP2.htm
ReadmeEN1.htm
ReadmeEN2.htm
ReadmeFR1.htm
ReadmeFR2.htm
ReadmeIT1.htm
ReadmeIT2.htm
ReadmeDE1.htm
ReadmeDE2.htm
ReadmeES1.htm
ReadmeES2.htm
ReadmeNL1.htm
ReadmeNL2.htm
ReadmePT1.htm
ReadmePT2.htm

[DriverInstall.NTamd64.Interfaces]
;; Audio 
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

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

;---------------------------------------------------------------;
;; Audio 
[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%

;; Topology
[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="R-88 Driver Installation disk"
DriverDeviceDesc="R-88"

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}"

MediaCategories="SYSTEM\CurrentControlSet\Control\MediaCategories"

;; Audio
KSNAME_Wv11="Wave1-1"
KSNAME_Wv12="Wave1-2"
KSNAME_Wv13="Wave1-3"
KSNAME_Wv14="Wave1-4"
KSNAME_Wv15="WaveIn1-1"

WDM.Wv11.szPname="1-2 (R-88)"
WDM.Wv12.szPname="3-4 (R-88)"
WDM.Wv13.szPname="5-6 (R-88)"
WDM.Wv14.szPname="7-8 (R-88)"
WDM.Wv15.szPname="MIX (R-88)"

;; Topology
KSNAME_Topology="Topology"
WDM.Topology.szPname="R-88 Mixer"

WDM.Tp11.szPname="1-2"
WDM.Tp12.szPname="3-4"
WDM.Tp13.szPname="5-6"
WDM.Tp14.szPname="7-8"
WDM.Tp15.szPname="MIX"

WDM.Tp11.szPname.GUID = "{81C310D3-A286-4f74-8AD6-5F974784B776}"
WDM.Tp12.szPname.GUID = "{05764507-66AD-49f6-A3F5-910B86B1ED08}"
WDM.Tp13.szPname.GUID = "{64C33BF3-A579-43b0-B63C-C5EAAAC5D998}"
WDM.Tp14.szPname.GUID = "{84A03509-4EAA-4e33-A2C0-D82F1B3DBD6C}"
WDM.Tp15.szPname.GUID = "{F283AD50-6E51-431c-94B6-AC02D6E1B452}"

REG_MSZ = 0x00010000


;--------------------------
RDWMFILE="RDWM1137.SYS"
RDASFILE="RDAS1137.DLL"
RDDPFILE="RDDP1137.EXE"
RDCPFILE="RDCP1137.CPL"
RDAWFILE="RDAW1137.DLL"
RDAHFILE="RDAH1137.DAT"
;--------------------------

ASIOGUID="{2DE13B94-8DA1-41ce-8089-E3E16D618AA3}"
ASIONAME="R-88"

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

PROGFOLDER="Roland"
SCPROGFOLDER="Roland"
DEVFOLDER="R-88 Driver"

CPLSHORTCUTNAME="R-88"
RMSHORTCUTNAME="R-88 Readme"
