rem Register Cache Self-Registering executables in common directory
regsvr32.exe /s "C:\Program Files (x86)\Common Files\Intersystems\Cache\CacheQuery.ocx"
regsvr32.exe /s "C:\Program Files (x86)\Common Files\Intersystems\Cache\CacheFormWizard.dll"
regsvr32.exe /s "C:\Program Files (x86)\Common Files\Intersystems\Cache\CacheList.ocx"
regsvr32.exe /s "C:\Program Files (x86)\Common Files\Intersystems\Cache\CacheActiveX.dll"
regsvr32.exe /s "C:\Program Files (x86)\Common Files\Intersystems\Cache\vism.ocx"
regsvr32.exe /s "C:\Program Files (x86)\Common Files\Intersystems\Cache\TL.dll"
@if /I (%1)==(ALL) goto ALL
@goto EXIT
:ALL
rem Register JCOM dlls
set CacheDir=C:\INTERS~1\Cache\bin\
regsvr32.exe /s  "%CacheDir%CacheCom.dll"
regsvr32.exe /s  "%CacheDir%CacheCSS.dll"
regsvr32.exe /s  "%CacheDir%CacheMVBasic.dll"
regsvr32.exe /s  "%CacheDir%StudioAssist.dll"
regsvr32.exe /s  "%CacheDir%CachePP.dll"
regsvr32.exe /s  "%CacheDir%CacheHTML.dll"
regsvr32.exe /s  "%CacheDir%CacheColorHTML.dll"
regsvr32.exe /s  "%CacheDir%CacheObjectScript.dll"
regsvr32.exe /s  "%CacheDir%CacheScanner.dll"
regsvr32.exe /s  "%CacheDir%CacheSPP.dll"
regsvr32.exe /s  "%CacheDir%CachePM.dll"
regsvr32.exe /s  "%CacheDir%CacheBasic.dll"
regsvr32.exe /s  "%CacheDir%CacheUDL.dll"
regsvr32.exe /s  "%CacheDir%TNodes.dll"
regsvr32.exe /s  "%CacheDir%CacheJavaScript.dll"
regsvr32.exe /s  "%CacheDir%CacheJavaSyn.dll"
regsvr32.exe /s  "%CacheDir%CacheSQLSyn.dll"
regsvr32.exe /s  "%CacheDir%CacheTSQL.dll"
regsvr32.exe /s  "%CacheDir%CacheXMLSyn.dll"
:EXIT
