Java install with a custom destination path
For powershell experts: I’m trying to customize the Java worklet in the catalog to install Java to non-default custom path. Using Argument-list INSTALLDIR seems to be erroring out. Anyone has the correct syntax to use in the Remediation script (Start-Process)
Start-Process "$env:windir\Temp\$javaInstallFile" -ArgumentList "/s REBOOT=0 SPONSORS=0" -Wait
What can I add to the above line so Java gets installed in path D:\Java ?? Thanks!
This discussion is archived and closed to replies. Continue it in the Automox Community Slack.
Discuss on Slack