greenshot upgrade

Topics: Misc., Publishing Issue
Oct 20, 2015 at 7:50 PM
We have Greenshot installed for our users as a replacement for the sniping tool, and it works very well.

I'm having some trouble deploying an update, however.

Greenshot is running in the test user profile and I can't seem to turn it off from the WPP package. I've tried with bundling or calling a simple powershell script from a custom update and it doesn't seem to do anything. If I run the script manually from the test user it shuts down like I expect.

"Get-Process Greenshot | Stop-Process -Force"

Does anyone have any pointers?
Oct 26, 2015 at 4:46 PM
Finally resorted to manually killing it

<ElementType>CustomUpdateElements.ExecutableElement</ElementType>
<PathToExecutable>c:\Windows\System32\taskkill.exe</PathToExecutable>
<Parameters>/F /IM greenshot.exe /T</Parameters>
Feb 11, 2016 at 4:07 PM
I am having an issue getting this to work for me.

Looks like I can get the taskkill to work but then my update fails after that.

It runs OK from a batch file in the following format.

@echo off
echo Checking file existence on %computername%

if exist "C:\Program Files\Greenshot\unins000.exe" (
 echo File exist on %computername%


 echo Stopping greenshot.exe on computer %%i
 c:\Windows\System32\taskkill.exe /F /IM greenshot.exe /T
Pause
 echo Installing Greenshot on %computername%
\shared\files\Techdownload\Greenshot\Greenshot-INSTALLER-1.2.8.12-RELEASE.exe /VERYSILENT /SUPPRESSMSGBOXES /NORESTART /SP-
) else (
    echo File does NOT exist on %computername%

)
)
Pause

In WPP I did custom update. I added two different "Allow to execute a file".

One with what Bill_T had above which kills the running exe of greenshot:
<ElementType>CustomUpdateElements.ExecutableElement</ElementType>
<PathToExecutable>c:\Windows\System32\taskkill.exe</PathToExecutable>
<Parameters>/F /IM greenshot.exe /T</Parameters>


The other to install the program:
<ElementType>CustomUpdateElements.ExecutableElement</ElementType>
<PathToExecutable>C:\PackageContent\Greenshot\Greenshot-INSTALLER-1.2.8.12-RELEASE.exe</PathToExecutable>
<Parameters>/VERYSILENT /SUPPRESSMSGBOXES /NORESTART</Parameters>
<KillProcess>True</KillProcess>
<TimeBeforeKilling>10</TimeBeforeKilling>

In the " if the update is already installed." I have it look for a registry key to see if current version already exists.
<bar:RegSz Key="HKEY_LOCAL_MACHINE" Subkey="SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Greenshot_is1" Value="DisplayVersion" Comparison="EqualTo" Data="1.2.8.12"/>

In the "Allow clients computer to determine if the update is installable."

I have it make sure the machine is running windows 7 or Windows 8.1.

What am I missing?
Feb 11, 2016 at 8:40 PM
Also I can get it to install if greenshot isn't running doing a "Create Update"

basically using all same info as listed in previous post excluding the killtask part.

Though after it installs I see two errors in the Application event viewer
1) .NET Runtime error, eventID: 1026

2) Appilcation error - EventID: 1000 Faulting application path: C:\Program Files\Greenshot\Greenshot.exe, Faulting module path: C:\windows\system32\KERNALBASE.dll