On test machine using Izpack 5 Beta 11 if I start install.jar using a 64bit winrun4j exe running bundled 64 bit java then Izpack complains
There is no script engine for file extension ".js",
then complains The installer could not launch with administrator permissions,
then an attempt to install into the default installation directory fails because you don't have admin permissions, installation to another folder outside of C:/Program Files completes okay
Whereas if I run it with 32bit winrun4j installer running 32 bit java it works fine.
if I just run install.jar directly without the exe wrapper
i.e java -jar install.jar
it gives these errors using both 32bit JVM and 64bit JVM.
so my only working solution at the moment is installation with 32bit exe wrapper, but I also need 64 bit wrapper.
So questions are
- Why is 32bit exe working and 64 bit exe not working
- Why does neither 32bit or 64bit if I try and install without the wrapper.
Followup
I found this thread about the javascript error (but not Izpack) and found that .js files were associated with Utlradedit, the editor I use for editing most file types.
Simply unassociating .js with Ultraedit means that now when I run
- java -jar install.jar using 32bit java on 32bit install.jar
- java -jar install.jar using 64bit java on 64bit install.jar
- 32 bit winrun4j wrapper.
it now works :)
But 64bit winrun4j now fails to start the installation and doesnt work at all, if I run from Command Window I can see that instead
of running
wscript C:\Users\MESH\AppData\Local\Temp\Installer.js
c:\Code\WidgetReleases\1.0_Beta_2\widget-windows64\JVM64\bin\javaw.exe
-Dizpack.mode=privileged -jar
C:\Code\WidgetReleases\1.0_Beta_2\widget-windows64\install.jar
they ran
wscript C:\Users\MESH\AppData\Local\Temp\Installer.js
c:\Code\WidgetReleases\1.0_Beta_2\widget-windows64\JVM64\bin\javaw.exe
abort exit
-Dizpack.mode=privileged -jar
:\Code\WidgetReleases\1.0_Beta_2\widget-windows64\install.jar
So follow up questions are:
- Why does simply associating filetype with an editor break this javascript stuff, I can imagine that this or a similar problem could effect alot of users.
- Why would running from my 64 bit wrapper cause installer.js to run Abort Exit