Downloads:

324,411

Downloads of v 4.41:

1,802

Last Update:

12/2/2015

Package Maintainer(s):

Software Author(s):

  • Irfan Skiljan

Tags:

image viewer editor converter thumbnail

IrfanView

This is not the latest version of IrfanView available.

4.41 | Updated: 12/2/2015

Downloads:

324,411

Downloads of v 4.41:

1,802

Software Author(s):

  • Irfan Skiljan

IrfanView 4.41

This is not the latest version of IrfanView available.

Some Checks Have Failed or Are Not Yet Complete

1 Test Unknown and 1 Passing Test


Validation Testing Unknown


Verification Testing Passed

Details

To install IrfanView, run the following command from the command line or from PowerShell:

>

To upgrade IrfanView, run the following command from the command line or from PowerShell:

>

To uninstall IrfanView, run the following command from the command line or from PowerShell:

>

NOTE: This applies to both open source and commercial editions of Chocolatey.

1. Ensure you are set for organizational deployment

Please see the organizational deployment guide

  • Open Source or Commercial:
    • Proxy Repository - Create a proxy nuget repository on Nexus, Artifactory Pro, or a proxy Chocolatey repository on ProGet. Point your upstream to https://chocolatey.org/api/v2. Packages cache on first access automatically. Make sure your choco clients are using your proxy repository as a source and NOT the default community repository. See source command for more information.
    • You can also just download the package and push it to a repository Download

3. Enter your internal repository url

(this should look similar to https://chocolatey.org/api/v2)

4. Choose your deployment method:


choco upgrade irfanview -y --source="'STEP 3 URL'" [other options]

See options you can pass to upgrade.

See best practices for scripting.

Add this to a PowerShell script or use a Batch script with tools and in places where you are calling directly to Chocolatey. If you are integrating, keep in mind enhanced exit codes.

If you do use a PowerShell script, use the following to ensure bad exit codes are shown as failures:


choco upgrade irfanview -y --source="'STEP 3 URL'" 
$exitCode = $LASTEXITCODE

Write-Verbose "Exit code was $exitCode"
$validExitCodes = @(0, 1605, 1614, 1641, 3010)
if ($validExitCodes -contains $exitCode) {
  Exit 0
}

Exit $exitCode

- name: Ensure irfanview installed
  win_chocolatey:
    name: irfanview
    state: present
    version: 4.41
    source: STEP 3 URL

See docs at https://docs.ansible.com/ansible/latest/modules/win_chocolatey_module.html.

Coming early 2020! Central Managment Reporting available now! More information...


chocolatey_package 'irfanview' do
  action    :install
  version  '4.41'
  source   'STEP 3 URL'
end

See docs at https://docs.chef.io/resource_chocolatey_package.html.


Chocolatey::Ensure-Package
(
    Name: irfanview,
    Version: 4.41,
    Source: STEP 3 URL
);

Requires Otter Chocolatey Extension. See docs at https://inedo.com/den/otter/chocolatey.


cChocoPackageInstaller irfanview
{
   Name     = 'irfanview'
   Ensure   = 'Present'
   Version  = '4.41'
   Source   = 'STEP 3 URL'
}

Requires cChoco DSC Resource. See docs at https://github.com/chocolatey/cChoco.


package { 'irfanview':
  provider => 'chocolatey',
  ensure   => '4.41',
  source   => 'STEP 3 URL',
}

Requires Puppet Chocolatey Provider module. See docs at https://forge.puppet.com/puppetlabs/chocolatey.


salt '*' chocolatey.install irfanview version="4.41" source="STEP 3 URL"

See docs at https://docs.saltstack.com/en/latest/ref/modules/all/salt.modules.chocolatey.html.

5. If applicable - Chocolatey configuration/installation

See infrastructure management matrix for Chocolatey configuration elements and examples.

This package was approved by moderator gep13 on 12/4/2015.

Description

IrfanView is a very fast, small, compact and innovative FREEWARE (for non-commercial use) graphic viewer.

Features
Screenshots


tools\chocolateyInstall.ps1
$packageName = 'irfanview'
$installerType = 'exe'
# desktop:  create desktop shortcut; 0 = no, 1 = yes (default: 0)
# thumbs:   create desktop shortcut for thumbnails; 0 = no, 1 = yes (default: 0)
# group:    create group in Start Menu; 0 = no, 1 = yes (default: 0)
# allusers: desktop/group links are for all users; 0 = current user, 1 = all users
# assoc:    if used, set file associations; 0 = none, 1 = images only, 2 = select all (default: 0)
# assocallusers:  if used, set associations for all users (Windows XP only)
# ini:      if used, set custom INI file folder (system environment variables are allowed)
$silentArgs = "/silent /desktop=0 /thumbs=0 /group=1 /allusers=0 /assoc=0"
Write-Host $silentArgs
$urlArray = @('http://www.fosshub.com/genLink/IrfanView/iview441_setup.exe','http://www.fosshub.com/genLink/IrfanView/iview441_x64_setup.exe')
$url = $urlArray[0]
$checksum = '9a51e8930455e49563fb24d6e576953ec484c52a'
$checksumType = 'sha1'
$url64 = $urlArray[1]
$checksum64 = '6584ce9677cb8fd272a6a7fcea48b94c16a009fa'
$checksumType64 = 'sha1'
$validExitCodes = @(0)
$toolsDir = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"

# Combatibility - This function has not been merged
if (!(Get-Command Get-UrlFromFosshub -ErrorAction SilentlyContinue)) {
  Import-Module "$($toolsDir)\Get-UrlFromFosshub.ps1"
}
$url = Get-UrlFromFosshub $url
$url64 = Get-UrlFromFosshub $url64

Install-ChocolateyPackage -PackageName "$packageName" `
                          -FileType "$installerType" `
                          -SilentArgs "$silentArgs" `
                          -Url "$url" `
                          -Url64bit "$url64" `
                          -ValidExitCodes $validExitCodes `
                          -Checksum "$checksum" `
                          -ChecksumType "$checksumType" `
                          -Checksum64 "$checksum64" `
                          -ChecksumType64 "$checksumType64"
tools\chocolateyUninstall.ahk
; default environment
DetectHiddenWindows, off
SetControlDelay, 20

; modified environment
#NoEnv
#NoTrayIcon
DetectHiddenText, off
SetTitleMatchMode, 2

; variables
winTitle = IrfanView Uninstall ahk_class #32770

WinWait, %winTitle%, Thank you for using, 180
WinActivate
ControlClick, Button1, , &Yes

WinWait, %winTitle%, IrfanView uninstalled, 180
WinActivate
ControlClick, Button1, , OK

ExitApp
tools\chocolateyUninstall.ps1
$packageName = 'irfanview'
$packageSearch = "$packageName *"
$installerType = 'exe'
$silentArgs = '/VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-'
$validExitCodes = @(0)

$scriptPath = "$(Split-Path -parent $MyInvocation.MyCommand.Definition)"
$ahkFile = Join-Path $scriptPath "chocolateyUninstall.ahk"
$ahkExe = 'AutoHotKey'
$ahkRun = "$Env:Temp\$(Get-Random).ahk"
Copy-Item $ahkFile "$ahkRun" -Force

Start-Process $ahkExe $ahkRun
Get-ItemProperty -Path @('HKLM:\Software\Wow6432Node\Microsoft\Windows\CurrentVersion\Uninstall\*',
                         'HKLM:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*',
                         'HKCU:\Software\Microsoft\Windows\CurrentVersion\Uninstall\*') `
                 -ErrorAction:SilentlyContinue `
| Where-Object   {$_.DisplayName -like $packageSearch} `
| ForEach-Object {Uninstall-ChocolateyPackage -PackageName "$packageName" `
                                              -FileType "$installerType" `
                                              -SilentArgs "$($silentArgs)" `
                                              -File "$($_.UninstallString)" `
                                              -ValidExitCodes $validExitCodes}
Remove-Item "$ahkRun" -Force
tools\Get-UrlFromFosshub.ps1
# Get the resolved URL form a FossHub download link.
#
# Takes a FossHub URL in the “genLink” format and returns the generated 
# expiring download link for the file.
#
# Usage: Get-UrlFromFosshub genLink_url
# Example:
# Get-UrlFromFosshub http://www.fosshub.com/genLink/Data-Crow/FILE.zip
 
Function Get-UrlFromFosshub($genLinkUrl) {

  $fosshubAppName = $genLinkUrl -match 'genLink/(.+?)/'
  # If there’s no match, it means that it’s not a FossHub genLink URL.
  # Then this function simply returns the input URL.
  if (!$Matches) {
    return $genLinkUrl
  }
  # Get the actual FossHub appname from the matches array  
  $fosshubAppName = $Matches[1]
 
  $referer = "http://www.fosshub.com/${fosshubAppName}.html"
  $webClient = New-Object System.Net.WebClient
  $webClient.Headers.Add("Referer", $referer)
 
  $generatedLink = $webClient.DownloadString($genLinkUrl)
 
  return $generatedLink
}

In cases where actual malware is found, the packages are subject to removal. Software sometimes has false positives. Moderators do not necessarily validate the safety of the underlying software, only that a package retrieves software from the official distribution point and/or validate embedded software against official distribution point (where distribution rights allow redistribution).

Chocolatey Pro provides runtime protection from possible malware.

Version Downloads Last Updated Status
IrfanView (Install) 4.52 43215 Saturday, December 15, 2018 Approved
IrfanView (Install) 4.51 40920 Monday, March 12, 2018 Approved
IrfanView (Install) 4.50 33541 Thursday, October 19, 2017 Approved
IrfanView (Install) 4.44 69396 Wednesday, January 4, 2017 Approved
IrfanView (Install) 4.42.0.20161201 10642 Thursday, December 1, 2016 Approved
IrfanView (Install) 4.42.0.20161101 8719 Tuesday, November 1, 2016 Approved
IrfanView 4.42.0.20160616 21421 Friday, June 17, 2016 Approved
IrfanView 4.42 3813 Friday, March 18, 2016 Approved

Program

Package

  • Automatically built and uploaded by dtgm
Discussion for the IrfanView Package

Ground Rules:

  • This discussion is only about IrfanView and the IrfanView package. If you have feedback for Chocolatey, please contact the Google Group.
  • This discussion will carry over multiple versions. If you have a comment about a particular version, please note that in your comments.
  • The maintainers of this Chocolatey Package will be notified about new comments that are posted to this Disqus thread, however, it is NOT a guarantee that you will get a response. If you do not hear back from the maintainers after posting a message below, please follow up by using the link on the left side of this page or follow this link to contact maintainers. If you still hear nothing back, please follow the package triage process.
  • Tell us what you love about the package or IrfanView, or tell us what needs improvement.
  • Share your experiences with the package, or extra configuration or gotchas that you've found.
  • If you use a url, the comment will be flagged for moderation until you've been whitelisted. Disqus moderated comments are approved on a weekly schedule if not sooner. It could take between 1-5 days for your comment to show up.
comments powered by Disqus