@echo off
echo Adding context menu association for CSO, PBP
set CURDIR=%~dp0
reg add "HKEY_CLASSES_ROOT\.cso" /ve /d "UMDGen.Document" /f
reg add "HKEY_CLASSES_ROOT\UMDGen.Document\shell\open\command" /ve /f /d "\"%curdir%\tools\UMDGEN.exe\" %%1"
reg add "HKEY_CLASSES_ROOT\UMDGen.Document\shell\Convert CSO to PSP2PS3\command" /ve /f /d "\"%curdir%\CSO.bat\" \"%%1\""
reg add "HKEY_CLASSES_ROOT\UMDGen.Document\shell\Convert CSO to PSP2PS3 [with save fix]\command" /ve /f /d "\"%curdir%\CSO.bat\" \"%%1\" yes"

reg add "HKEY_CLASSES_ROOT\.pbp" /ve /d "pbp_archive" /f
reg add "HKEY_CLASSES_ROOT\pbp_archive\shell\Convert PBP to PSP2PS3\command" /ve /f /d "\"%curdir%\CEX.bat\" \"%%1\""
reg add "HKEY_CLASSES_ROOT\pbp_archive\shell\Convert PBP to PSP2PS3 [with save fix]\command" /ve /f /d "\"%curdir%\CEX.bat\" \"%%1\" yes"

reg add "HKEY_CLASSES_ROOT\.pkg" /ve /d "PKG File" /f
reg add "HKEY_CLASSES_ROOT\PKG File\shell\Convert PKG to PSP2PS3\command" /ve /f /d "\"%curdir%\EXTRACT.bat\" \"%%1\""
reg add "HKEY_CLASSES_ROOT\PKG File\shell\Convert PKG to PSP2PS3 [with save fix]\command" /ve /f /d "\"%curdir%\EXTRACT.bat\" \"%%1\" yes"

