Difference between revisions of "Irfanview"
From WPKG | Open Source Software Deployment and Distribution
(Missing > and quoting) |
|||
| Line 21: | Line 21: | ||
<install src="\\server\software\irfanview\i_view32.ini" dest="c:\Program Files\Irfanview" overwrite="true" /> | <install src="\\server\software\irfanview\i_view32.ini" dest="c:\Program Files\Irfanview" overwrite="true" /> | ||
| + | * An alternative method is to use xcopy: | ||
| + | |||
| + | <install cmd='xcopy /y "\\server\software\irfanview\i_view32.ini" "C:\Program Files\Irfanview\" '> | ||
| + | <exit code="0" /> | ||
| + | </install> | ||
[[category:Silent Installers|Irfanview]] | [[category:Silent Installers|Irfanview]] | ||
Revision as of 13:37, 10 February 2006
Irfanview is an image viewer that has some additional features
Basic install:
<package id="irfanview" name="Irfanview 3.93" revision="1" >
<check type="file" condition="exists" path="c:\Program Files\Irfanview\i_view32.exe" />
<install cmd='\\server\software\irfanview\iview390.exe /silent /folder="c:\Program Files\Irfanview" /desktop=1 /group=1 /allusers=0 /assoc=1' >
<exit code="0" />
</install>
</package>
The problem with irfanview is that it likes to write to i_view32.ini in the same folder, which is a problem if the user does not have permissions. You can create an INI file to redirect this to the user's Application Data folder though:
- Create a i_view32.ini file:
[Others] INI_Folder=%APPDATA%\Irfanview
- copy this into the IrfanView directory. You can do this in wpkg using the patch in bug #18 (as of wpkg 0.9.3, this is not merged):
<install src="\\server\software\irfanview\i_view32.ini" dest="c:\Program Files\Irfanview" overwrite="true" />
- An alternative method is to use xcopy:
<install cmd='xcopy /y "\\server\software\irfanview\i_view32.ini" "C:\Program Files\Irfanview\" '> <exit code="0" /> </install>