Automate GreenShot Deployment with ConfigMgr

Quick Note, I use Greenshot for all of the screen captures on my site.  It’s a great handy Free utility.

Create your Folder Structure:
\\ConfigMgrSourceServer\Apps\GreenShot\VersionNumber\
image
image

Download GreenShot: http://sourceforge.net/projects/greenshot/

Scripts & Files available here: http://garytown.com/Downloads/GreenShot.zip

Create your Install & Uninstall Scripts:

Load_GreenShot.cmd Script:
—————————–

:KillGreenShotProcesses
echo *** This will kill Greenshot Processes ***
Rem ***
taskkill /F /IM greenshot.exe

REM Using FOR Loop to find any EXE file and run it with these arguments
for %%i in (*.exe) do cmd /c %%i /LOADINF=”Greenshot.inf” /VERYSILENT /NORESTART

REM Install customisations
if exist “%ProgramFiles%\Greenshot\” xcopy /i /r /h /e /y greenshot-fixed.ini “%ProgramFiles%\Greenshot\”

REM Install customisations
if exist “%ProgramFiles(x86)%\Greenshot\” xcopy /i /r /h /e /y greenshot-fixed.ini “%ProgramFiles(x86)%\Greenshot\”

——————————

 

Note, in most of my scripts, I use this line instead of the actual installer name “for %%i in (*.exe) do cmd /c %%I” – This way, each time the installer is updated, I don’t need to change the script, just copy the folder contents and replace the installer file.

 

Uninstall Script (Uninstall_Greenshot.cmd)
——————————

:KillGreenShotProcesses
echo *** This will kill Greenshot Processes ***
Rem ***
taskkill /F /IM greenshot.exe

“C:\Program Files\Greenshot\unins000.exe” /VERYSILENT /NORESTART

REM Delete Folder
if exist “%ProgramFiles%\Greenshot\” rmdir “%ProgramFiles%\Greenshot\” /S /Q

REM Delete Folder
if exist “%ProgramFiles(x86)%\Greenshot\” rmdir “%ProgramFiles(x86)%\Greenshot\” /S /Q

————————-

I also copied a couple of preference files (in the download available), this is also supposed to disable automatic updates and disables Community features (Save to Flickr, etc)
Greenshot.inf file
————————

[Setup]
Lang=en
Group=Greenshot
NoIcons=0
SetupType=custom
Components=plugins,plugins\ocr,plugins\titlefix
Tasks=startup

—————–

Here are some of the addons that are disabled in this install (Left = Default, Right = Modified Install via .inf file)
image

 

I also copy a file into the program folder that disables the update notifications
Greenshot-fixed.ini
————————

; Greenshot core configuration
[Core]
; How many days between every update check? (0=no checks)
UpdateCheckInterval=0

————————-

 

Now that we have our Content created, in ConfigMgr
Create an Application

image

image

In the Content Tab, make sure it is pointing to your ConfigMgr Content Source.

image

image

image

 

If I didn’t show a tab, it because there is nothing to set.

9 thoughts on “Automate GreenShot Deployment with ConfigMgr”

  1. Do you use Greenshot in your OSD? Does it fails because of the website popup after greenshot installs? When you deploy it as an app a popup appears

    Reply
    • We don’t in OSD, we used to, and that rings a bell, but it’s been too long, so I can’t speak to that. I’ll try when I get time and reply

      Reply
  2. Same problem with the website pop-up post install…I thought I”d create a bat file to kill IE after but in addition I added one more switch that I think prevented the message:

    @echo off
    greenshot.exe /VERYSILENT /NORESTART /SUPPRESSMSGBOXES
    taskkill /IM iexplorer.exe /f
    taskkill /IM MicrosoftEdge.exe /f

    Reply
    • I just downloaded 1.2.10.6, and I’m running through the installer, it still defaults to c:\Program Files. Ran the same install batch file, installed it to c:\program files\greenshot

      Reply
  3. Hello

    Install script working great but not uninstall.
    How i can change to Swedish language:

    [Setup]
    Lang=en
    Group=Greenshot
    NoIcons=0
    SetupType=custom
    Components=plugins,plugins\ocr,plugins\titlefix
    Tasks=startup

    Thank you 🙂

    Reply
    • For uninstall, check the uninstall string after you install then update your script to match.
      I can’t help you with the Swedish, I’d check out GreenShot Support / forums.
      This was written a long time again, and I’d probably rewrite it in powershell today if I still needed to deploy greenshot.

      Reply
  4. Bata use this for Swedish

    [Setup]
    Lang=en
    Dir=C:\Program Files\Greenshot
    Group=Greenshot
    NoIcons=0
    SetupType=custom
    Components=greenshot,plugins\ocr,languages,languages\svse
    Tasks=startup

    Reply

Leave a Comment

This site uses Akismet to reduce spam. Learn how your comment data is processed.