; Installation inf for the Boutique SH-01A
;
; Copyright (c) 2021 Roland Corporation
;
[Version]
Signature="$Windows NT$"
Class=MEDIA
ClassGUID={4d36e96c-e325-11ce-bfc1-08002be10318}
Provider=%MfgName%
CatalogFile=RDID1191.CAT
DriverVer=02/19/2021,1.00.01.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
RDWM1191.SYS=1,Files
RDAS1191.DLL=1,Files
RDDP1191.EXE=1,Files
RDCP1191.CPL=1,Files
RDAW1191.DLL=1,Files
RDAH1191.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]
;; not supported

[Roland.NTamd64.10]
%DriverDeviceDesc%=DriverInstall, USB\VID_0582&PID_01FD ; Boutique SH-01A

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

[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.Tp1.szPname.GUID%,Name,,%WDM.Tp1.szPname%
HKLM,%MediaCategories%\%WDM.Tp1.szPname.GUID%,Display,1,00,00,00,00
HKLM,%MediaCategories%\%WDM.Tp2.szPname.GUID%,Name,,%WDM.Tp2.szPname%
HKLM,%MediaCategories%\%WDM.Tp2.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,1"
HKLM, %UNINST%, "Publisher",,"Roland Corporation"

[DriverAddReg.Inst]
HKCR, %INSTPATH%,			"",			,"RdDrv"
HKCR, %INSTPATH%\%DEVRDID%,	"",			,%16422%\%PROGFOLDER%\%DEVFOLDER%
HKCR, %INSTPATH%\%DEVRDID%,	"version",	,"Ver.1.0.1"
HKCR, %INSTPATH%\%DEVRDID%,	"copyright",,"Copyright (C) 2021 Roland Corporation."
HKCR, %INSTPATH%\%DEVRDID%,	"As44",	0x00010001,69

[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]
AddInterface=%KSCATEGORY_AUDIO%,    %KSNAME_Wv1%, WDM.Interface.Wv1
AddInterface=%KSCATEGORY_RENDER%,   %KSNAME_Wv1%, WDM.Interface.Wv1
AddInterface=%KSCATEGORY_CAPTURE%,  %KSNAME_Wv1%, WDM.Interface.Wv1
AddInterface=%KSCATEGORY_AUDIO%,    %KSNAME_Wv2%, WDM.Interface.Wv2
AddInterface=%KSCATEGORY_RENDER%,   %KSNAME_Wv2%, WDM.Interface.Wv2
AddInterface=%KSCATEGORY_CAPTURE%,  %KSNAME_Wv2%, WDM.Interface.Wv2
AddInterface=%KSCATEGORY_AUDIO%,    %KSNAME_Md1%, WDM.Interface.Md1
AddInterface=%KSCATEGORY_RENDER%,   %KSNAME_Md1%, WDM.Interface.Md1
AddInterface=%KSCATEGORY_CAPTURE%,  %KSNAME_Md1%, WDM.Interface.Md1

AddInterface=%KSCATEGORY_AUDIO%,    %KSNAME_Topology%,  WDM.Interface.Topology
[WDM.Interface.Wv1]
AddReg=WDM.Interface.Wv1.AddReg
[WDM.Interface.Wv1.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%WDM.Wv1.szPname%
[WDM.Interface.Wv2]
AddReg=WDM.Interface.Wv2.AddReg
[WDM.Interface.Wv2.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%WDM.Wv2.szPname%
[WDM.Interface.Md1]
AddReg=WDM.Interface.Md1.AddReg
[WDM.Interface.Md1.AddReg]
HKR,,CLSID,,%Proxy.CLSID%
HKR,,FriendlyName,,%WDM.Md1.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="Boutique SH-01A Driver Installation disk"
DriverDeviceDesc="Boutique SH-01A"

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_Wv1="WaveOut1-1"
KSNAME_Wv2="WaveIn1-1"
WDM.Wv1.szPname="OUT (Boutique SH-01A)"
WDM.Wv2.szPname="IN (Boutique SH-01A)"
KSNAME_Md1="Midi1-1"
WDM.Md1.szPname="Boutique SH-01A"


KSNAME_Topology="Topology"
WDM.Topology.szPname="Boutique SH-01A Mixer"
MediaCategories="SYSTEM\CurrentControlSet\Control\MediaCategories"
WDM.Tp1.szPname="OUT"
WDM.Tp2.szPname="IN"
WDM.Tp1.szPname.GUID = "{41DC355F-EC2B-494a-BE55-8CA692530F63}"
WDM.Tp2.szPname.GUID = "{2CEBC780-0590-43f4-86F7-46927FD23D97}"
REG_MSZ = 0x00010000


;--------------------------
RDWMFILE="RDWM1191.SYS"
RDASFILE="RDAS1191.DLL"
RDDPFILE="RDDP1191.EXE"
RDCPFILE="RDCP1191.CPL"
RDAWFILE="RDAW1191.DLL"
RDAHFILE="RDAH1191.DAT"
;--------------------------

ASIOGUID="{B673FC1A-C300-49df-885F-323F366C891E}"
ASIONAME="Boutique SH-01A"

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

PROGFOLDER="Roland"
SCPROGFOLDER="Roland"
DEVFOLDER="Boutique SH-01A Driver"

CPLSHORTCUTNAME="Boutique SH-01A"
RMSHORTCUTNAME="Boutique SH-01A Readme"
