1@echo off
2set ARGS=/LM /SW /SA
3if "%PROCESSOR_ARCHITECTURE%" == "AMD64" (
4  drivers\dpinst-amd64.exe %ARGS%
5) ELSE IF "%PROCESSOR_ARCHITEW6432%" == "AMD64" (
6  drivers\dpinst-amd64.exe %ARGS%
7) ELSE (
8  drivers\dpinst-x86.exe %ARGS%
9)
10
11REM dpinst /PATH has problems with relative paths, so use absolute path.
12if "%PROCESSOR_ARCHITECTURE%" == "AMD64" (
13  drivers\dpinst-amd64.exe /PATH %cd%\drivers\gemma %ARGS%
14) ELSE IF "%PROCESSOR_ARCHITEW6432%" == "AMD64" (
15  drivers\dpinst-amd64.exe /PATH %cd%\drivers\gemma %ARGS%
16) ELSE (
17  drivers\dpinst-x86.exe /PATH %cd%\drivers\gemma %ARGS%
18)
19
20exit /b 0
21