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.

2 thoughts on “Automate GreenShot Deployment with ConfigMgr

  • July 6, 2016 at 4:13 am
    Permalink

    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
    • July 6, 2016 at 1:06 pm
      Permalink

      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

Leave a Reply

Your email address will not be published. Required fields are marked *