47
edits
Changes
ImageJ
,Added CFG file
<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'/>
</package>
</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>
ImageJ64.cfg
<source lang="dos">
.
C:\Program Files (x86)\Java\jre6\bin\javaw.exe
-Xmx640m -cp ij.jar ij.ImageJ
</source>
[[category:Silent Installers]]