Difference between revisions of "ImageJ"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
(Initial version)
 
m (Added CFG file)
Line 21: Line 21:
 
   
 
   
 
  <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-'/>
  <install cmd='%COMSPEC% /c copy /y "%SOFTWARE%\imageJ\imageJ%BIT%.cfg" "%ProgramFiles%%ARCH%\imageJ"' />
+
  <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'/>
 
  <install cmd='cacls "%PROGRAMFILES%%ARCH%\imagej" /e /p everyone:c'/>
 
 
 
 
Line 28: Line 28:
 
  </package>
 
  </package>
 
</packages>
 
</packages>
 +
</source>
  
 +
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
 +
<source lang="dos">
 +
.
 +
C:\Program Files\Java\jre6\bin\javaw.exe
 +
-Xmx640m -cp ij.jar ij.ImageJ
 
</source>
 
</source>
 +
 +
ImageJ64.cfg
 +
<source lang="dos">
 +
.
 +
C:\Program Files (x86)\Java\jre6\bin\javaw.exe
 +
-Xmx640m -cp ij.jar ij.ImageJ
 +
</source>
 +
 +
 +
 +
[[category:Silent Installers]]

Revision as of 00:00, 19 July 2012

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.46t"/>
 
 		<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