Difference between revisions of "Irfanview"

From WPKG | Open Source Software Deployment and Distribution
Jump to: navigation, search
m (Added </source> to seperate 4.27 and 4.25.)
(Removed 3.99 & 4.25 as installation's identical. It's only worth having different versions if installation differs)
Line 1: Line 1:
This is a silent installer for Irfanview.
+
This is a silent installer for [http://www.irfanview.com Irfanview], a freeware (for non-commercial use) image viewer and minor image editor.
  
[http://www.irfanview.com Irfanview] is a freeware (for non-commercial use) image viewer and minor image editor.
 
  
 
+
==Irfanview Versions 3.99 - 4.27==
=== Irfanview 4.27 ===
+
 
<source lang="xml">
 
<source lang="xml">
 
<?xml version="1.0" encoding="UTF-8"?>
 
<?xml version="1.0" encoding="UTF-8"?>
Line 33: Line 31:
 
</source>
 
</source>
  
=== Irfanview 4.25 ===
+
==Plugins==
 
+
<source lang="xml">
+
<?xml version="1.0" encoding="UTF-8"?>
+
 
+
<packages>
+
 
+
<package
+
    id="irfanview"
+
    name="IrfanView"
+
    revision="4230"
+
    reboot="false"
+
    priority="0">
+
+
<check type="file" condition="versionequalto" path="%PROGRAMFILES%\IrfanView\i_view32.exe" value="4.2.5.0" />
+
        <!-- Irfanview 3.99 didn't bump the version in the executable, so check the size too -->
+
<check type="file" condition="sizeequals" path="%PROGRAMFILES%\IrfanView\i_view32.exe" value="481792" />
+
+
<install cmd='%SOFTWARE%\irfanview\iview425_setup.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 "%SOFTWARE%\irfanview\i_view32.ini" "%ProgramFiles%\Irfanview\"' />
+
+
<upgrade cmd='"%PROGRAMFILES%\IrfanView\iv_uninstall.exe" /silent' />
+
<upgrade cmd='%SOFTWARE%\irfanview\iview425_setup.exe /silent /folder="%ProgramFiles%\Irfanview" /desktop=1 /group=1 /allusers=1 /assoc=1' />
+
+
<remove cmd='"%PROGRAMFILES%\IrfanView\iv_uninstall.exe" /silent' />
+
</package>
+
 
+
</packages>
+
</source>
+
 
+
=== Irfanview 3.99 ===
+
 
+
<source lang="xml">
+
<package
+
    id="irfanview"
+
    name="IrfanView"
+
    revision="399"
+
    reboot="false"
+
    priority="2">
+
 
+
        <!-- 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>
+
</source>
+
 
+
=== Plugins ===
+
  
 
<source lang="xml">
 
<source lang="xml">
Line 102: Line 42:
 
</source>
 
</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.
  
 +
==i_view32.exe File Sizes==
 +
Irfanview 3.99 didn't bump the version number in the executable, so for some versions of Irvanview (possibly not the most recent versions), when checking for which version is installed you should check the size of i_view32.exe too. The file sizes for some versions are:
 +
* 4.25: 481792
 +
* 4.27: 494080
 +
* 3.99: 444928
  
== Configuration ==
+
==Configuration==
 
By default Irfanview uses a user configuration file (<code>i_view32.ini</code>) 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 <code>%APPDATA%</code> directory and each user will be able to have their own configuration. Do this by  replacing the default <code>i_view32.ini</code> with the following one.
 
By default Irfanview uses a user configuration file (<code>i_view32.ini</code>) 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 <code>%APPDATA%</code> directory and each user will be able to have their own configuration. Do this by  replacing the default <code>i_view32.ini</code> with the following one.
  

Revision as of 21:39, 19 May 2010

This is a silent installer for Irfanview, a freeware (for non-commercial use) image viewer and minor image editor.


Irfanview Versions 3.99 - 4.27

<?xml version="1.0" encoding="UTF-8"?>
<packages>
 
<package
    id="irfanview"
    name="IrfanView"
    revision="4270"
    reboot="false"
    priority="0">
 
	<check type="file" condition="versionequalto" path="%PROGRAMFILES%\IrfanView\i_view32.exe" value="4.2.7.0" />
	<check type="file" condition="sizeequals" path="%PROGRAMFILES%\IrfanView\i_view32.exe" value="494080" />
 
	<install cmd='%SOFTWARE%\irfanview\iview427_setup.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 "%SOFTWARE%\irfanview\i_view32.ini" "%ProgramFiles%\Irfanview\"' />
 
	<upgrade cmd='"%PROGRAMFILES%\IrfanView\iv_uninstall.exe" /silent' />
	<upgrade cmd='%SOFTWARE%\irfanview\iview427_setup.exe /silent /folder="%ProgramFiles%\Irfanview" /desktop=1 /group=1 /allusers=1 /assoc=1' />
 
	<remove cmd='"%PROGRAMFILES%\IrfanView\iv_uninstall.exe" /silent' />
</package>
 
</packages>

Plugins

<package id="irfanview_plugins" name="Irfanview Plugins" revision="1" reboot="false" priority="1">
        <check type="file" condition="exists" path="%PROGRAMFILES%\IrfanView\plugins\IV_player.exe" />
        <depends package-id="irfanview" />
        <install cmd='%SOFTWARE%\irfanview\irfanview_plugins_425_setup.exe /silent' />
        <upgrade cmd='%SOFTWARE%\irfanview\irfanview_plugins_425_setup.exe /silent' />
 </package>

Installation options

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

i_view32.exe File Sizes

Irfanview 3.99 didn't bump the version number in the executable, so for some versions of Irvanview (possibly not the most recent versions), when checking for which version is installed you should check the size of i_view32.exe too. The file sizes for some versions are:

  • 4.25: 481792
  • 4.27: 494080
  • 3.99: 444928

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"