Foxit editor silent installation

Hello

Anyone have had success to install Foxit Editor with a script?

I have tried many things including this but it is never installing…

msiexec /i "FoxitPDFEditor.msi" /quiet /norestart

Comments

  • RunningHome
    RunningHome Member Posts: 18
  • tanderson
    tanderson Member Posts: 305 ✭✭✭✭

    You can go to a device and do a software install using Choclatey

  • tanderson
    tanderson Member Posts: 305 ✭✭✭✭
  • RunningHome
    RunningHome Member Posts: 18

    I know that ;)

    Only reader there or a very hold version of editor ( full)

  • hegedusa
    hegedusa Member Posts: 13

    Yes I've got a script I've used that seems to work. Though I know you can use chocolatey, I use this script anyway.

    # Define the URL for the Foxit Reader MSI installer
    

    $foxitUrl = "https://www.foxit.com/downloads/latest.html?product=Foxit-Enterprise-Reader&platform=&version=&package_type=msi&language=English&distID="

    Define the path where the installer will be downloaded

    $installerPath = "$env:TEMP\FoxitReaderSetup.msi"

    # Download the Foxit Reader installer
    

    Write-Host "Downloading Foxit Reader installer..."
    Invoke-WebRequest -Uri $foxitUrl -OutFile $installerPath

    # Check if the download was successful
    

    if (Test-Path $installerPath) {
    Write-Host "Download completed successfully."

    # Silent installation of Foxit Reader
    Write-Host "Installing Foxit Reader silently..."
    Start-Process -FilePath $installerPath -ArgumentList "/quiet" -Wait
    
    # Check if the installation was successful
    if ($LASTEXITCODE -eq 0) {
        Write-Host "Foxit Reader installed successfully."
    } else {
        Write-Host "Installation failed with exit code: $LASTEXITCODE"
    }
    

    } else {
    Write-Host "Download failed. Please check the URL or your internet connection."
    }

    # Clean up the installer file
    

    if (Test-Path $installerPath) {
    Write-Host "Cleaning up the installer file..."
    Remove-Item -Path $installerPath -Force
    Write-Host "Installer file removed."
    } else {
    Write-Host "Installer file not found for cleanup."
    }

  • gilgi
    gilgi Administrator, Moderator, Internal Posts: 378 admin

    Chocolatey is community-maintained, so if the version is not the one you are looking for, the script suggested here is your way to go.

  • RunningHome
    RunningHome Member Posts: 18

    Looks good but the download urs does not work anymore and i can only find the url for the free one…