diff options
author | David Madison <dmadison@users.noreply.github.com> | 2022-02-22 02:33:40 -0500 |
---|---|---|
committer | David Madison <dmadison@users.noreply.github.com> | 2022-02-22 02:33:40 -0500 |
commit | 6fae84b8eb73d09883ab1df6de027179622a1e07 (patch) | |
tree | 8da66d3bb9a4c3d2ce6aa3c80b7f6e91ce6f951b /post_install.bat | |
parent | d52b6ea456dd145025659359847e3ba8b58b5a27 (diff) | |
parent | b3243815e2ed8c72f9ac3669e69632a590b1d048 (diff) |
Merge tag '1.8.5' into upstream-1.8.5
Diffstat (limited to 'post_install.bat')
-rw-r--r-- | post_install.bat | 20 |
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
|