Chocolatey Fest - Chocolatey's inaugural conference on Windows Automation (WinOps) is coming - Learn more!

Foxit Reader

9.1.0.5097

Package test results are passing.

This package was approved as a trusted package on 6/11/2018.

Foxit Reader: The Best PDF Reader. With Foxit Reader you can read and annotate PDF documents and fill out PDF forms.

Important Notes

  1. All open FoxitReader, Windows Explorer and browser instances must be closed during installation, update and uninstallation.
    Otherwise, you might encounter error dialogs during the process asking you to close all instances.
    Windows Explorer must be closed due to Foxit Reader's shell plugins, browser instances shall be closed proactively due to PDFs displayed inline.
  2. Only the English version is provided because it is bundled with the highest version of Foxit Reader among all languages.

Install arguments

FoxitReader uses Inno Setup, the available flags can be seen at http://jrsoftware.org/ishelp/index.php?topic=setupcmdline.
You might be especially interested in the "tasks" and "components" sections.
The FoxitReader-specific tasks and components from which you can choose from are: https://gist.github.com/anonymous/6ab0d828cc626834e2048d9cf4ed30e1.

For example, you would like no desktop icon, no default file association, no browser plugin and no ConnectedPDF, then run this command:

choco install foxitreader --ia '/MERGETASKS="!desktopicon,!setdefaultreader,!displayinbrowser /COMPONENTS=*pdfviewer,*ffse,*installprint,*ffaddin,*ffspellcheck,!connectedpdf"'

Note that contrary to /MERGETASKS, you have to specify in /COMPONENTS also those components which you would like to retain. You can get those from the link above of Foxit Reader-specific tasks and components. An asterisk (*) prefix results in all sub-components automatically being included as well, cf. Inno Setup's documentation linked above.

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

C:\> choco install foxitreader

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

C:\> choco upgrade foxitreader

Files

Hide
  • tools\chocolateyInstall.ps1 Show
    $ErrorActionPreference = 'Stop'
    
    # See the comments in  https://github.com/ComFreek/chocolatey-packages/blob/master/foxitreader/update.ps1
    # on the '/de/' part.
    $url32       = 'https://www.foxitsoftware.com/de/downloads/latest.php?product=Foxit-Reader&platform=Windows&version=9.1.0.5096&package_type=exe&language=English'
    $checksum32  = 'cd68bfc0f362db801adf97f6d9e54d9c8d63fea4fbda3eae6c050ec46c8a6e73'
    
    function Uninstall-PreviousVersion {
    	Write-Output 'Uninstalling previous version...'
    
    	$packageArgs = @{
    		packageName   = $env:ChocolateyPackageName
    		softwareName  = 'Foxit Reader'
    		fileType      = 'EXE'
    		silentArgs    = "/VERYSILENT /norestart"
    		validExitCodes= @(0)
    	}
    
    	[array]$key = Get-UninstallRegistryKey -SoftwareName $packageArgs['softwareName']
    
    	if ($key.Count -eq 1) {
    		$packageArgs['file'] = $($key[0].UninstallString)
    		Uninstall-ChocolateyPackage @packageArgs
    	} elseif ($key.Count -gt 1) {
    		Write-Warning "$($key.Count) matches found!"
    		Write-Warning "To prevent accidental data loss, no programs will be uninstalled."
    		Write-Warning "Please alert package maintainer the following keys were matched:"
    		$key | % {Write-Warning "- $($_.DisplayName)"}
    	}
    }
    
    <#
    .SYNOPSIS
    Download the current version and unwrap the inner native installer.
    
    Return a tuple ($pathToUnwrappedNativeInstaller, $tmpDirectory) where
    $tmpDirectory is the directory where the native installer is contained
    and which should ideally be deleted after installation.
    #>
    function Download-CurrentVersion {
    	Write-Output 'Downloading current version...' | Out-Null
    
    	# FoxitReader has recently changed to a "wrapped" setup program:
    	# The above $url32 will download a wrapper setup EXE, which is more or less
    	# a GUI interface to the wrapped inner setup EXE.
    	#
    	# The wrapper setup neither accepts CLI arguments for silencing nor for
    	# configuration as far as we know.
    	# Therefore, after downloading the wrapper setup, we extract the wrapped
    	# setup EXE and run it manually in Install-CurrentVersion.
    
    	$toolsDir = $(Split-Path -Parent $MyInvocation.ScriptName)
    	$wrapperSetupDownloadPath = $(Join-Path $toolsDir "wrapper-setup.exe")
    	$wrapperSetupUnzippedPath = $(Join-Path $toolsDir "wrapper-setup-extracted")
    
    	$wrapperDownloadArgs = @{
    		PackageName    = 'foxitreader'
    		FileFullPath   = $wrapperSetupDownloadPath
    		Url            = $url32
    		Checksum       = $checksum32
    		ChecksumType   = 'sha256'
    		Options = @{
    			Headers = @{
    				# In addition on the '/de/' part in the URL (which actually forces
    				# an English language setup), also specify the desired language as
    				# an HTTP header even though this had no effect in the past.
    				'Accept-Language' = 'en-US;en-GB'
    			}
    		}
    	}
    
    	$wrapperUnzipArgs = @{
    		PackageName    = 'foxitreader'
    		FileFullPath   = $wrapperSetupDownloadPath
    		Destination    = $wrapperSetupUnzippedPath
    	}
    
    	Get-ChocolateyWebFile @wrapperDownloadArgs | Out-Null
    	Get-ChocolateyUnzip @wrapperUnzipArgs | Out-Null
    
    	# Do not use gci -File parameter to retain PS 2 compatibility
    	$wrappedSetupPath =
    		Get-ChildItem `
    			-Path $(Join-Path $wrapperSetupUnzippedPath '$PLUGINSDIR') `
    			'FoxitReader*Setup*.exe' `
    		| Where {! $_.PSIsContainer} | Select -First 1 -ExpandProperty FullName
    
    	Remove-Item $wrapperSetupDownloadPath -Recurse -Force
    
    	return $wrappedSetupPath, $wrapperSetupUnzippedPath
    }
    
    function Install-CurrentVersion([string] $installerPath) {
    	Write-Output 'Installing current version...'
    
    	$installationArgs = @{
    		PackageName    = 'foxitreader'
    		FileType       = 'EXE'
    		File           = $installerPath
    		silentArgs     = '/verysilent'
    		validExitCodes = @(0)
    	}
    	Write-Host $installerPath
    	Install-ChocolateyInstallPackage @installationArgs
    }
    
    Write-Output 'Downloading current version and then uninstalling previous version (if any) before performing installation of the current version.'
    
    $tmpDirectory = $null
    
    try {
    	$installerPath, $tmpDirectory = Download-CurrentVersion
    	Uninstall-PreviousVersion
    	Install-CurrentVersion $installerPath
    }
    finally {
    	if (-not ($null -eq $tmpDirectory)) {
    		Remove-Item $tmpDirectory -Recurse -Force
    	}
    }
    

Virus Scan Results

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.

Dependencies

This package has no dependencies.

Package Maintainer(s)

Software Author(s)

  • Foxit Software Incorporated

Tags

Release Notes

https://www.foxitsoftware.com/products/pdf-reader/version-history.php

Version History

Version Downloads Last updated Status
Foxit Reader 9.1.0.5096 96486 Saturday, May 12, 2018 approved
Foxit Reader 9.0.1.1052 53460 Thursday, April 5, 2018 approved
Foxit Reader 9.0.1.1051 9511 Wednesday, April 4, 2018 approved
Foxit Reader 9.0.1.1050 95765 Friday, January 5, 2018 approved
Foxit Reader 9.0.1.1049 27211 Monday, December 18, 2017 approved
Foxit Reader 9.0.0.29935 47508 Wednesday, November 1, 2017 approved
Foxit Reader 8.3.2.25013 20924 Friday, September 1, 2017 approved
Foxit Reader 8.3.1.21155 17680 Wednesday, July 19, 2017 approved
Foxit Reader 8.3.0.14879 22465 Monday, May 8, 2017 approved
Show More

Discussion for the Foxit Reader Package

Ground rules:

  • This discussion is only about Foxit Reader and the Foxit Reader 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 Foxit Reader, 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
Chocolatey.org uses cookies to enhance the user experience of the site.
Ok