Difference between revisions of "Irfanview"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m
Line 1: Line 1:
 +
This is a silent installer for Infranview.
 +
 
[http://www.irfanview.com Irfanview] is a freeware image viewer and minor image editor.
 
[http://www.irfanview.com Irfanview] is a freeware image viewer and minor image editor.
  
<pre>
+
<source lang="xml">
 
<package
 
<package
 
     id="irfanview"
 
     id="irfanview"
Line 23: Line 25:
 
<remove cmd='"%PROGRAMFILES%\IrfanView\iv_uninstall.exe" /silent' />
 
<remove cmd='"%PROGRAMFILES%\IrfanView\iv_uninstall.exe" /silent' />
 
</package>
 
</package>
</pre>
+
</source>
 +
 
  
 
== Installation options ==
 
== Installation options ==
  
 
See http://www.irfanview.com/faq.htm for a full list of the installer options.
 
See http://www.irfanview.com/faq.htm for a full list of the installer options.
 +
  
 
== Configuration ==
 
== Configuration ==
Line 33: Line 37:
  
 
Save this as <code>i_view32.ini</code> and place it your %PACKAGES%\IrfanView\ directory beside the installer.
 
Save this as <code>i_view32.ini</code> and place it your %PACKAGES%\IrfanView\ directory beside the installer.
<pre>
+
<source lang="ini">
 
[Others]
 
[Others]
 
INI_Folder="%APPDATA%\Irfanview"
 
INI_Folder="%APPDATA%\Irfanview"
</pre>
+
</source>
  
  
 
[[category:Silent Installers|Irfanview]]
 
[[category:Silent Installers|Irfanview]]

Revision as of 23:02, 15 February 2008

This is a silent installer for Infranview.

Irfanview is a freeware image viewer and minor image editor.

<package
    id="irfanview"
    name="IrfanView"
    revision="399"
    reboot="false"
    priority="0">

        <!-- Irfanview 3.99 didn't bump the version in the executable, so check the size too -->
	<check type="file" condition="versionequalto" path="%PROGRAMFILES%\IrfanView\i_view32.exe" value="3.9.8.0" />
	<check type="file" condition="sizeequals" path="%PROGRAMFILES%\IrfanView\i_view32.exe" value="444928" />

	<install cmd='%SOFTWARE%\iview399.exe /silent /folder="%ProgramFiles%\Irfanview" /desktop=1 /group=1 /allusers=1 /assoc=1' />

	<!-- bring in our INI file which forces Irfanview to use per-user configurations in %APPDATA% -->
	<install cmd='cmd /c copy /y \\server\share\IrfanView\i_view32.ini "%ProgramFiles%\Irfanview\"' />

	<upgrade cmd='"%PROGRAMFILES%\IrfanView\iv_uninstall.exe" /silent' />
	<upgrade cmd='%SOFTWARE%\iview399.exe /silent /folder="%ProgramFiles%\Irfanview" /desktop=1 /group=1 /allusers=1 /assoc=1' />

	<remove cmd='"%PROGRAMFILES%\IrfanView\iv_uninstall.exe" /silent' />
</package>


Installation options

See http://www.irfanview.com/faq.htm for a full list of the installer options.


Configuration

By default Irfanview uses a user configuration file (i_view32.ini) in the Irfanview program directory. This is not appropriate in a multi-user environment. Irfanview can instead use an alternative configuration file if you instruct it to do so. Tell Irfanview to use a configuration file in a user's %APPDATA% directory and each user will be able to have their own configuration. Do this by replacing the default i_view32.ini with the following one.

Save this as i_view32.ini and place it your %PACKAGES%\IrfanView\ directory beside the installer.

[Others]
INI_Folder="%APPDATA%\Irfanview"