Difference between revisions of "Irfanview"
From WPKG | Open Source Software Deployment and Distribution
(rewrote the article because xcopy does not work for me (it always asks if the destination is a dir or a file)) |
|||
| Line 13: | Line 13: | ||
install.cmd: | install.cmd: | ||
<pre> | <pre> | ||
| − | copy /y "\\server\software\irfanview\i_view32.ini" "%ProgramFiles%\Irfanview | + | copy /y "\\server\software\irfanview\i_view32.ini" "%ProgramFiles%\Irfanview" |
\\server\software\irfanview\iview390.exe /silent /folder="%ProgramFiles%\Irfanview" /desktop=1 /group=1 /allusers=0 /assoc=1 | \\server\software\irfanview\iview390.exe /silent /folder="%ProgramFiles%\Irfanview" /desktop=1 /group=1 /allusers=0 /assoc=1 | ||
</pre> | </pre> | ||
Revision as of 10:12, 16 June 2006
Irfanview is an freeware image viewer with many additional features
The problem with irfanview is that it tries to write the config-file i_view32.ini to the install-dir, which is not appropriate in a multi-user environment. You can create an INI file to redirect this to the user's Application Data folder though:
i_view32.ini:
[Others] INI_Folder=%APPDATA%\Irfanview
Than we need a batch-file because "copy" is not awailable in wpkg and "xcopy" will not always work in silent mode.
install.cmd:
copy /y "\\server\software\irfanview\i_view32.ini" "%ProgramFiles%\Irfanview" \\server\software\irfanview\iview390.exe /silent /folder="%ProgramFiles%\Irfanview" /desktop=1 /group=1 /allusers=0 /assoc=1
<package id="irfanview" name="Irfanview 3.93" revision="1" >
<check type="file" condition="exists" path="%ProgramFiles%\Irfanview\i_view32.exe" />
<install cmd='\\server\software\irfanview\install.cmd' >
<exit code="0" />
</install>
</install>
</package>
As an alternative method you can use a patch to enable a easy copy-function in wpkg. It comes as an attachment to bug #18
After applying that patch, you can use the following format in the packages.xml:
<install src="\\server\software\irfanview\i_view32.ini" dest="%ProgramFiles%\Irfanview" overwrite="true" />