XnView is an efficient image viewer, browser and converter for Windows. This article will serve as an informative guide and give you a clear understanding of how to perform a silent installation of XnView from the command line using the EXE installer.
How to Install XnView Silently
XnView Silent Install (EXE)
- Navigate to: https://download.xnview.com/XnView-win.exe
- Download the XnView-win.exe to a folder created at (C:\Downloads)
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Navigate to the C:\Downloads folder
- Enter the following command: XnView-win.exe /VERYSILENT /NORESTART
- Press Enter
After a few moments you should see the XnView Desktop Shortcut appear. You will also find entries in the Start Menu, Installation Directory, and Programs and Features in the Control Panel.
Software Title: | XnView |
Vendor: | Gougelet Pierre-e |
Architecture: | x86 |
Installer Type: | EXE |
Silent Install Switch: | XnView-win.exe /VERYSILENT /NORESTART |
Silent Uninstall Switch (32-bit System) | "%ProgramFiles%\XnView\unins000.exe" /VERYSILENT /NORESTART |
Silent Uninstall Switch (64-bit System) | "%ProgramFiles(x86)%\XnView\unins000.exe" /VERYSILENT /NORESTART |
Download Link: | https://download.xnview.com/XnView-win.exe |
PowerShell Script: | https://silentinstallhq.com/xnview-install-and-uninstall-powershell/ |
Detection Script: | https://silentinstallhq.com/create-a-custom-detection-script-for-xnview-powershell/ |
The information above provides a quick overview of the software title, vendor, silent install, and silent uninstall switches. The download link provided take you directly to the vendors website. Continue reading if you are interested in additional details and configurations.
Additional Configurations
Create a XnView Installation Log File
The XnView installer offers the option to generate a log file during installation to assist with troubleshooting should any problems arise. You can use the following commands to create a verbose log file with details about the installation.
XnView Silent Install with Logging
XnView-win.exe /VERYSILENT /NORESTART /LOG="%WINDIR%\Temp\XnView-Install.log" |
Exclude the XnView Desktop Shortcut During Install
The XnView installer includes a desktop shortcut by default. If you don’t want the desktop shortcut included during installation, then you can run the following command line switch.
XnView Silent Install with No Desktop Shortcut
XnView-win.exe /VERYSILENT /NORESTART /MERGETASKS=!desktopicon |
Change the XnView Default Installation Directory
You can also change the default installation directory by using the following command line parameters. In this example, I’m installing XnView to “C:\XnView”
XnView-win.exe /DIR="C:\XnView" /VERYSILENT /NORESTART |
How to Uninstall XnView Silently
Check out the following posts for a scripted solution:
- Open an Elevated Command Prompt by Right-Clicking on Command Prompt and select Run as Administrator
- Enter one of the following commands:
XnView Silent Uninstall (EXE) on 32-bit System
"%ProgramFiles%\XnView\unins000.exe" /VERYSILENT /NORESTART |
XnView Silent Uninstall (EXE) on 64-bit System
"%ProgramFiles(x86)%\XnView\unins000.exe" /VERYSILENT /NORESTART |
Always make sure to test everything in a development environment prior to implementing anything into production. The information in this article is provided “As Is” without warranty of any kind.