@ECHO OFF PUSHD %~dp0 REM Add registry key that FSP doesn't supoprt REG ADD "HKEY_CURRENT_USER\Software\Netscape\Netscape Navigator\User Trusted External Applications" /v "\"%~dp0DPGraph\dpgraph.exe\"" /d "Yes" /f FlashpointSecurePlayer dpgraph "%~1" IF %ERRORLEVEL% EQU -2 ( ECHO MsgBox "You cannot run multiple instances of Flashpoint Secure Player." > %TMP%\TMP.VBS WSCRIPT /nologo %TMP%\TMP.VBS DEL %TMP%\TMP.VBS ) POPD