Difference between revisions of "ImageJ"
From WPKG | Open Source Software Deployment and Distribution
m (added r to uninstall string...) |
(→Installing with Java already installed) |
||
Line 18: | Line 18: | ||
<variable name="VERSION" value="146"/> | <variable name="VERSION" value="146"/> | ||
− | <check type="uninstall" condition="exists" path="ImageJ 1. | + | <check type="uninstall" condition="exists" path="ImageJ 1.46v"/> |
<install cmd='"%SOFTWARE%\imageJ\ij%VERSION%-nojre-setup.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-'/> | <install cmd='"%SOFTWARE%\imageJ\ij%VERSION%-nojre-setup.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-'/> |
Revision as of 13:18, 15 March 2016
A free image editor from NIH
Installing with Java already installed
<?xml version="1.0" encoding="UTF-8"?>
<packages>
<package id="imageJ"
name="imageJ"
revision="%VERSION%"
priority="0"
reboot="false">
<variable name="ARCH" value="" architecture="x86"/>
<variable name="ARCH" value=" (x86)" architecture="x64"/>
<variable name="BIT" value="32" architecture="x86"/>
<variable name="BIT" value="64" architecture="x64"/>
<variable name="VERSION" value="146"/>
<check type="uninstall" condition="exists" path="ImageJ 1.46v"/>
<install cmd='"%SOFTWARE%\imageJ\ij%VERSION%-nojre-setup.exe" /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-'/>
<install cmd='%COMSPEC% /c copy /y "%SOFTWARE%\imageJ\imageJ%BIT%.cfg" "%ProgramFiles%%ARCH%\imageJ\imagej.cfg"' />
<install cmd='cacls "%PROGRAMFILES%%ARCH%\imagej" /e /p everyone:c'/>
<upgrade include="install" />
</package>
</packages>
This crucially opens the permission on the ImageJ folder so it can write to its wretched CFG file and install plugins etc.
ImageJ may start up and complain that it can't find the Java binary file (why since it's in the same place on every PC???) so you can create a cfg file with the relevant location, you can also set other settings too if you want.
ImageJ32.cfg
.
C:\Program Files\Java\jre6\bin\javaw.exe
-Xmx640m -cp ij.jar ij.ImageJ
ImageJ64.cfg
.
C:\Program Files (x86)\Java\jre6\bin\javaw.exe
-Xmx640m -cp ij.jar ij.ImageJ