Downloads:

4,028,548

Downloads of v 9.3.0.10828:

53,696

Last Update:

30 Sep 2018

Package Maintainer(s):

Software Author(s):

  • Foxit Software Incorporated

Tags:

Foxit PDF Reader office admin

Foxit Reader

This is not the latest version of Foxit Reader available.

9.3.0.10828 | Updated: 30 Sep 2018

Downloads:

4,028,548

Downloads of v 9.3.0.10828:

53,696

Software Author(s):

  • Foxit Software Incorporated

Foxit Reader 9.3.0.10828

This is not the latest version of Foxit Reader available.

All Checks are Passing

2 Passing Test


Validation Testing Passed


Verification Testing Passed

Details

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

>

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

>

To uninstall Foxit Reader, 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 foxitreader -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 foxitreader -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 foxitreader installed
  win_chocolatey:
    name: foxitreader
    state: present
    version: 9.3.0.10828
    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 'foxitreader' do
  action    :install
  version  '9.3.0.10828'
  source   'STEP 3 URL'
end

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


Chocolatey::Ensure-Package
(
    Name: foxitreader,
    Version: 9.3.0.10828,
    Source: STEP 3 URL
);

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


cChocoPackageInstaller foxitreader
{
   Name     = 'foxitreader'
   Ensure   = 'Present'
   Version  = '9.3.0.10828'
   Source   = 'STEP 3 URL'
}

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


package { 'foxitreader':
  provider => 'chocolatey',
  ensure   => '9.3.0.10828',
  source   => 'STEP 3 URL',
}

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


salt '*' chocolatey.install foxitreader version="9.3.0.10828" 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 as a trusted package on 30 Sep 2018.

Description

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.


tools\chocolateyInstall.ps1
$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.3.0.10826&package_type=exe&language=English'
$checksum32  = '08133f08731c9fd4176f097eda61859dd80cf8d30683621b3fe2d700d6922add'

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
	}
}
tools\chocolateyUninstall.ps1
$ErrorActionPreference = 'Stop'

$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)"}
}

Log in or click on link to see number of positives.

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
Foxit Reader 10.1.0.37527 119064 Monday, October 26, 2020 Approved
Foxit Reader 10.0.0.35798 411611 Saturday, May 16, 2020 Approved
Foxit Reader 9.7.2.29539 80729 Saturday, May 2, 2020 Approved
Foxit Reader 9.7.1.29511 627909 Monday, January 27, 2020 Approved
Foxit Reader 9.7.0.29455 923134 Tuesday, October 8, 2019 Approved
Foxit Reader 9.6.0.25144 470468 Thursday, July 4, 2019 Approved
Foxit Reader 9.5.0.20723 347311 Tuesday, April 16, 2019 Approved
Foxit Reader 9.4.1.16829 144352 Friday, March 1, 2019 Approved

This package has no dependencies.

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