diff options
author | Umberto Baldi <34278123+umbynos@users.noreply.github.com> | 2021-12-27 16:08:35 +0100 |
---|---|---|
committer | GitHub <noreply@github.com> | 2021-12-27 16:08:35 +0100 |
commit | 330e02663e029e6aa16f559ebf519546b746c7ba (patch) | |
tree | 70db13a3168a1e1880ffb628dc96f7b016f74f22 /post_install.bat | |
parent | 6154b7a7c1fba34737562aa4c29cec7451a82989 (diff) | |
parent | 2cb9107a0f40dddd649bdce72b885078fe320efc (diff) |
Merge pull request #442 from umbynos/umbynos/add_drivers_install
Add drivers originally bundled with Java IDE directly in the core
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
|