RUN Start-Process -Wait -FilePath msiexec -ArgumentList /i, "C:\Temp\openjdk11. Need silent install because I am doing it when building my Windows JDK11 docker image. ![]() The OpenJDK MSI downloaded from AdoptOpenJDK. Step 6/15 : RUN Start-Process -Wait -FilePath msiexec -ArgumentList /i, "C:\Temp\openjdk11.msi", 'ADDLOCAL="FeatureMain,FeatureEnvironment,FeatureJarFileRunWith,FeatureJavaHome"', 'INSTALLDIR="C:\Program Files\Java\jdk-11\"', /quiet, /norestart -Verb RunAsįROM /windows:1903 AS jdk11 I am trying to silent install an MSI in PowerShell. When running the command in Docker build, it still hangs forever. Start-Process -Wait -FilePath msiexec -ArgumentList /i, "C:\Temp\openjdk11.msi", 'ADDLOCAL="FeatureMain,FeatureEnvironment,FeatureJarFileRunWith,FeatureJavaHome"', 'INSTALLDIR="C:\Program Files\Java\jdk-11\"', /quiet, /norestart -Verb RunAs I am able to run the PowerShell command manually docker run -it -v C:\Temp:C:\Temp:rw -w C:\Temp /windows:1903 powershell ![]() It works when running it manually in PowerShell, but hangs still with docker build. The install process just hangs there forever. Trying with silent install: Start-Process -Wait -FilePath msiexec -ArgumentList /i, "C:\Temp\openjdk11.msi", "ADDLOCAL=FeatureMain,FeatureEnvironment,FeatureJarFileRunWith,FeatureJavaHome", "INSTALLDIR='C:\Program Files\Java'", /quiet Need silent install because I am doing it when building my Windows JDK11 docker image.įirst download the AdoptOpenJDK OpenJDK 11 Invoke-WebRequest -OutFile C:\Temp\openjdk11.msi ![]() I am trying to silent install an MSI in PowerShell.
0 Comments
Leave a Reply. |
Details
AuthorWrite something about yourself. No need to be fancy, just an overview. ArchivesCategories |