Block remapping or unmapping code mappings
[nativeclient.git] / tools / win_install.bat
blob2f59e5b12b082ef7983328d994faf36c3f0e782c
1 @ECHO OFF
2 SETLOCAL
4 SET MOZILLA_FOLDER="%ProgramFiles%\Mozilla Firefox\Plugins"
6 ECHO This script will install the Native Client NPAPI browser plugin in %MOZILLA_FOLDER%
7 SET /P M=Press y to continue, n to terminate:
8 IF %M%==y GOTO :INSTALL
9 ECHO OK, terminating.
10 GOTO :EXIT
12 :INSTALL
13 ECHO Copying...
15 COPY sel_ldr.exe %MOZILLA_FOLDER%
16 IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
18 COPY sdl.dll %MOZILLA_FOLDER%
19 IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
21 COPY npGoogleNaClPlugin.dll %MOZILLA_FOLDER%
22 IF %ERRORLEVEL% NEQ 0 GOTO :ERROR
24 ECHO Installation completed successfully.
25 GOTO :EXIT
27 :ERROR
28 ECHO Installation failed.
30 :EXIT
31 ENDLOCAL