명령을 사용하여 배치 파일에서 자동 모드로 Java를 설치하려고합니다.
jre-8u60-windows-i586 INSTALLCFG=jresilent.properties
속성 파일은 JRE 설치 프로그램과 같은 폴더에 있습니다.
내가 무엇을하든 오류가 발생합니다.
---------------------------
Java Installation Not Completed
---------------------------
Unable to install Java
There are errors in the following switches:
"INSTALLCFG=jresilent.properties";.
Check that the commands are valid and try again.
---------------------------
OK
---------------------------
나는 시도했다 :
.properties
( .cfg
이전) 로 끝나도록 파일 이름 바꾸기REBOOT=Disable
cd /d
설치 프로그램의 디렉토리에 명시 적 으로구성 파일의 전체 경로를 지정했을 때 작동했습니다. 그러므로 나는 지금
cd /d %~dp0
jre-8u60-windows-i586 INSTALLCFG=%~dp0\jresilent.properties
내 배치 파일에서 배치 파일 %~dp0
의 디렉토리를 찾습니다.
이 기사는 인터넷에서 수집됩니다. 재 인쇄 할 때 출처를 알려주십시오.
침해가 발생한 경우 연락 주시기 바랍니다[email protected] 삭제
몇 마디 만하겠습니다