Greenshot is a free screenshot utility optimized for productivity. This article will serve as an informative guide and give you a clear understanding of how to perform a silent installation of Greenshot from the command line using the EXE installer.
How to Install Greenshot Silently
Greenshot Silent Install (EXE)
- Navigate to: https://getgreenshot.org/downloads/
- Download the Greenshot-INSTALLER-w.x.y.z-RELEASE.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:
Greenshot-INSTALLER-1.2.10.6-RELEASE.exe /VERYSILENT /NORESTART
- Press Enter
After a few moments you will find Greenshot entries in the Start Menu, Installation Directory, and Programs and Features in the Control Panel.
Software Title: | Greenshot |
Vendor: | Greenshot |
Architecture: | x86_x64 |
Installer Type: | EXE |
Silent Install Switch: | Greenshot-INSTALLER-w.x.y.z-RELEASE.exe /VERYSILENT /NORESTART |
Silent Uninstall Switch (Step 1) | TASKKILL /F /IM Greenshot.exe |
Silent Uninstall Switch (Step 2) | "%ProgramFiles%\Greenshot\unins000.exe" /VERYSILENT /NORESTART |
Download Link: | https://getgreenshot.org/downloads/ |
PowerShell Script: | https://silentinstallhq.com/greenshot-install-and-uninstall-powershell/ |
Detection Script: | https://silentinstallhq.com/create-a-custom-detection-script-for-greenshot-powershell/ |
The information above provides a quick overview of the software title, vendor, silent install, and silent uninstall switches. The download links provided take you directly to the vendors website. Continue reading if you are interested in additional details and configurations.
Additional Configurations
Create a Greenshot Installation Log File
The Greenshot EXE installer offers the option to generate a log file during installation to assist with troubleshooting should any problems arise. You can use the following command to create a verbose log file with details about the installation.
Greenshot Silent Install (EXE) with Logging
Greenshot-INSTALLER-w.x.y.z-RELEASE.exe /VERYSILENT /NORESTART /LOG="%WINDIR%\Temp\Greenshot-Install.log" |
Change the Greenshot Default Installation Directory
You can also change the default installation directory by using the following command line parameters. In this example, I’m installing Greenshot to “C:\Greenshot”
Greenshot-INSTALLER-w.x.y.z-RELEASE.exe /DIR="C:\Greenshot" /VERYSILENT /NORESTART |
Do Not Run Greenshot at Windows Startup
Greenshot-INSTALLER-w.x.y.z-RELEASE.exe /VERYSILENT /NORESTART /MERGETASKS=!startup |
Create Custom Greenshot Install
- 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 to generate INF file:
Greenshot-INSTALLER-w.x.y.z-RELEASE.exe /SAVEINF=Greenshot.inf
- Press Enter
- Select your preferences & complete the installation wizard
- After the installation completes you will find the Greenshot.inf file at the C:\Downloads directory
- Uninstall Greenshot
- Enter the following command to run the custom Greenshot installer:
Greenshot-INSTALLER-w.x.y.z-RELEASE.exe /LOADINF=Greenshot.inf /VERYSILENT /NORESTART
- Press Enter
Example INF
[Setup]
Lang=en
Dir=C:\Program Files\Greenshot
Group=Greenshot
NoIcons=0
SetupType=custom
Components=greenshot,plugins\office,plugins\ocr,plugins\externalcommand
Tasks=startup
Set Greenshot Configurations
Configure Default Settings (Example)
- Open Notepad or your favorite text editor
- Add the following lines:
; In this file you should add your default settings
[Core]
Language=en-US
- Save the file to “C:\Downloads” & name it greenshot-defaults.ini
- Follow the “How to Install Greenshot Silently” steps mentioned earlier in the article
- Copy the greenshot-defaults.ini to “%ProgramFiles%\Greenshot\“
Configure Fixed Settings (Disable Updates Check Example)
- Open Notepad or your favorite text editor
- Add the following lines:
;In this file you should add your fixed settings
[Core]
UpdateCheckInterval=0
- Save the file to “C:\Downloads” & name it greenshot-fixed.ini
- Follow the “How to Install Greenshot Silently” steps mentioned earlier in the article
- Copy the greenshot-fixed.ini to “%ProgramFiles%\Greenshot\“
How to Prevent Greenshot From Opening a Browser Window at the End of the Installation Process
Check out the Greenshot Install and Uninstall (PowerShell) post for a scripted solution.
- Navigate to: https://getgreenshot.org/version-history/
- Download the Greenshot-NO-INSTALLER-w.x.y.z-RELEASE.zip to “C:\Downloads”
- Extract the contents of the zip file using 7-Zip to “C:\Downloads\Greenshot”
- Open Notepad or your favorite text editor
- Add the following lines:
## Create a Greenshot Start Menu Shortcut
$TargetFile = "C:\Program Files\Greenshot\Greenshot.exe"
$ShortcutFile = "C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Greenshot.lnk"
$WScriptShell = New-Object -ComObject WScript.Shell
$Shortcut = $WScriptShell.CreateShortcut($ShortcutFile)
$Shortcut.TargetPath = $TargetFile
$Shortcut.Save()
- Save the file to “C:\Downloads” & name it GreenshotStartMenuSC.ps1
Delete Unwanted Plugins (Optional)
- Navigate to the “C:\Downloads\Greenshot\Plugins” directory
- Delete the following folders:
- GreenshotBoxPlugin
- GreenshotConfluencePlugin
- GreenshotDropboxPlugin
- GreenshotFlickrPlugin
- GreenshotImgurPlugin
- GreenshotJiraPlugin
- GreenshotPhotobucketPlugin
- GreenshotPicasaPlugin
Create Default Settings
- Open Notepad or your favorite text editor
- Add the following lines:
; In this file you should add your default settings
[Core]
Language=en-US
- Save the file to “C:\Downloads” & name it greenshot-defaults.ini
Create Fixed Settings (Optional – Disable Updates Check)
- Open Notepad or your favorite text editor
- Add the following lines:
;In this file you should add your fixed settings
[Core]
UpdateCheckInterval=0
- Save the file to “C:\Downloads” & name it greenshot-fixed.ini
- 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 commands:
xcopy /s /y ".\Greenshot" "%ProgramFiles%\Greenshot\" |
xcopy /y ".\greenshot-defaults.ini" "%ProgramFiles%\Greenshot\" |
xcopy /y ".\greenshot-fixed.ini" "%ProgramFiles%\Greenshot\" |
"%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\ngen.exe" install "%ProgramFiles%\Greenshot\Greenshot.exe" |
"%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\ngen.exe" install "%ProgramFiles%\Greenshot\GreenshotPlugin.dll" |
REG ADD "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "Greenshot" /t REG_SZ /d "C:\Program Files\Greenshot\Greenshot.exe" /f |
"%ProgramFiles%\Greenshot\Greenshot.exe" |
PowerShell.exe -ExecutionPolicy ByPass .\GreenshotStartMenuSC.ps1 |
How to Uninstall Greenshot 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 sets of commands:
Greenshot Silent Uninstall (EXE)
TASKKILL /F /IM Greenshot.exe |
"%ProgramFiles%\Greenshot\unins000.exe" /VERYSILENT /NORESTART |
Greenshot Silent Uninstall (ZIP)
TASKKILL /F /IM Greenshot.exe |
RMDIR /Q /S "%ProgramFiles%\Greenshot" |
"%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\ngen.exe" uninstall "%ProgramFiles%\Greenshot\Greenshot.exe" |
"%SystemRoot%\Microsoft.NET\Framework64\v4.0.30319\ngen.exe" uninstall "%ProgramFiles%\Greenshot\GreenshotPlugin.dll" |
REG DELETE "HKLM\SOFTWARE\Microsoft\Windows\CurrentVersion\Run" /v "Greenshot" /f |
DEL "%ALLUSERSPROFILE%\Microsoft\Windows\Start Menu\Programs\Greenshot.lnk" |
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.