[http://www.irfanview.com Irfanview] is an freeware image viewer with many additional features
The problem with By default irfanview is that it tries to write writes the user config-file to i_view32.ini to in the install-dir, which this is not appropriate in a multi-user environment. You can create an INI file to redirect this to the user's users Application Data folder though:by replacing the default i_view32.ini with the following one.
i_view32.ini:Place this file in your \\server\share\IrfanView\ directory beside the installer.
<pre>
[Others]
</pre>
Than we need a batch-file because "copy" is not awailable in wpkg and "xcopy" will not always work in silent mode.
install.cmd:
<pre>
copy /y <package id="\\server\software\irfanview\i_view32.ini" name="%ProgramFiles%\IrfanviewIrfanView"\\server\software\irfanview\iview390.exe /silent /folder revision="%ProgramFiles%\Irfanview398" /desktop reboot=1 /group=1 /allusers"false" priority="0 /assoc=1</pre">
<pre><package id="irfanview" name="Irfanview 3.93" revision="1" > <check type="file" condition="existsversionequalto" path="%ProgramFilesPROGRAMFILES%\IrfanviewIrfanView\i_view32.exe" /> <install cmdvalue='\\server\software\irfanview\install"3.9.8.cmd' > <exit code="0" /> </install> </install></package></pre>
<!-- install Irfanview see http://www.irfanview.com/faq.htm for full list of the installer options -->
<install cmd='\\server\share\IrfanView\iview398.exe /silent /folder="%ProgramFiles%\Irfanview" /desktop=1 /group=1 /allusers=1 /assoc=1' />
As an alternative method you can use a patch to enable a easy copy <!-function in wpkg. It comes as an attachment to [http://bugs.wpkg.org/show_bug.cgi?id=18 bug #18] After applying - overwrite the ini file so that patch, you can use the following format user settings are saved in the packages.xml:users appdata directory --> <install srccmd="'cmd /c copy /y \\server\softwareshare\irfanviewIrfanView\i_view32.ini" dest="%ProgramFiles%\Irfanview\" overwrite="true" ' />
<remove cmd='"%PROGRAMFILES%\IrfanView\iv_uninstall.exe" /silent' />
</package>
</pre>
[[category:Silent Installers|Irfanview]]