aboutsummaryrefslogtreecommitdiff
path: root/post_install.bat
diff options
context:
space:
mode:
authorDave Madison <dmadison@users.noreply.github.com>2022-02-22 02:54:29 -0500
committerGitHub <noreply@github.com>2022-02-22 02:54:29 -0500
commitc57c8c09284674f5e9a1d2cb6a9727b43c4ec05c (patch)
tree5f8b78f71e050e8f7e5bea11c77ef9e429583981 /post_install.bat
parent17f93a51c8e36302c8308257acb40dba9ae3971c (diff)
parent39ab0fcf35807322240eee92710c25d0a279a0f0 (diff)
Merge pull request #15 from dmadison/upstream-1.8.5
Merge upstream tag '1.8.5'
Diffstat (limited to 'post_install.bat')
-rw-r--r--post_install.bat20
1 files changed, 20 insertions, 0 deletions
diff --git a/post_install.bat b/post_install.bat
new file mode 100644
index 0000000..10db223
--- /dev/null
+++ b/post_install.bat
@@ -0,0 +1,20 @@
+@echo off
+set ARGS=/LM /SW /SA
+if "%PROCESSOR_ARCHITECTURE%" == "AMD64" (
+ drivers\dpinst-amd64.exe %ARGS%
+) ELSE IF "%PROCESSOR_ARCHITEW6432%" == "AMD64" (
+ drivers\dpinst-amd64.exe %ARGS%
+) ELSE (
+ drivers\dpinst-x86.exe %ARGS%
+)
+
+REM dpinst /PATH has problems with relative paths, so use absolute path.
+if "%PROCESSOR_ARCHITECTURE%" == "AMD64" (
+ drivers\dpinst-amd64.exe /PATH %cd%\drivers\gemma %ARGS%
+) ELSE IF "%PROCESSOR_ARCHITEW6432%" == "AMD64" (
+ drivers\dpinst-amd64.exe /PATH %cd%\drivers\gemma %ARGS%
+) ELSE (
+ drivers\dpinst-x86.exe /PATH %cd%\drivers\gemma %ARGS%
+)
+
+exit /b 0