I started the installer with the -h parameter which shows the typical parameters:
After that I installed Jalview with the default settings and picked up the response file “response.varfile” from the subfolder “.install4j” in the installation folder.
The response file must have the same name as the installer so that it is interpreted without the -varfile
parameter. However, to be on the safe side, I have included the -varfile
parameter. My response file looks like this:
install4j response file for Jalview 2.11.2.0
appendToPathAction$Boolean=true
createDesktopLinkAction$Boolean=false
sys.adminRights$Boolean=true
sys.component.1031$Boolean=true
sys.fileAssociation.extensions$StringArray=“jvp”,“jvl”,“amsa”,“annotations,jvannotations”,“biojson”,“blc”,“aln”,“txt”,“fa,fasta”,“features,jvfeatures”,“gb,gbk”,“gff2”,“gff3”,“concise,jnet”,“msf”,“pfam”,“phy”,“pileup”,“pir”,“rnaml”,“mat”,“stk,sto”
sys.fileAssociation.launchers$StringArray=“JALVIEW”,“JALVIEW”,“JALVIEW”,“JALVIEW”,“JALVIEW”,“JALVIEW”,“JALVIEW”,“JALVIEW”,“JALVIEW”,“JALVIEW”,“JALVIEW”,“JALVIEW”,“JALVIEW”,“JALVIEW”,“JALVIEW”,“JALVIEW”,“JALVIEW”,“JALVIEW”,“JALVIEW”,“JALVIEW”,“JALVIEW”,“JALVIEW”
sys.installationDir=C:\ProgramData\Jalview
sys.languageId=en
My definitive command line looks like this:
Jalview-2_11_2_0-windows-x64-java_8.exe -q -splash -overwrite -varfile Jalview-2_11_2_0-windows-x64-java_8.varfile
Unfortunately, the result looks like this:
- The PATH user environment variable is added instead of the system environment variable.
- The start menu shortcut is created at the user level instead of the machine level:
- %AppData%\Microsoft\Windows\Start Menu\Programs\Jalview\Jalview.lnk (=single user)
- %ProgramData%\Microsoft\Windows\Start Menu\Programs\Jalview\Jalview.lnk (=all users)
In the same way the desktop shortcut Jalview.lnk
is created in %Userprofile%\Desktop
(=single user) instead of %Public%\Desktop
In short, I recommend an installer that is suitable for Windows machines that multiple changing users log on to.