alexkasko/openjdk-unofficial-builds

Is it possible to create a silent install on windows?

zippy1981 opened this issue · 2 comments

I can't seem to find any information on the install.exe that comes bundeled with the izpack installer for windows. I'd like to create a chocolatey package for installing this silently. I'd need to do the following:

  1. Set the install folder to c:\Program Files
  2. Uncheck the set local variables
  3. check the set local variables.
  4. have everthing happen without GUI interaction. Whether a non-interactive gui, console output or nothing happens is irrevelant.

install.exe was built from jar-launcher sources, it just launches izpack jar using relative jre path.

For a silent install you may try to configure izPack for auto install (I think it's possible, but never try it) or just write an installation script (e.g. batch) for the zip image. Current installers use external commands to set environment, so they may also be used from the script. To see the actual external commands executed by installer you may run it in debug mode:

jre\bin\java -DTRACE=TRUE -jar install.jar

Possible installation script:

  • take install path and required environment options as input command-line parameters
  • unzip image (this unzip binary may be used) to the specified path
  • use reg.exe to set registry paths
  • use setx and pathman to add JAVA_HOME and adjust PATH

Closing the issue, please reopen if you'll have problems with auto-install script.