Prozess beenden funktioniert nicht

Post Reply
Vittorio
Posts: 101
Joined: 03. Sep 2015, 08:26
Contact:

Prozess beenden funktioniert nicht

Post by Vittorio » 14. Sep 2015, 09:52

Guten Tag, ich versuche bei der Deinstallation von Greenshot (Software zum Aufnehmen des Bildischirmes) die Istanz von Greenshot zu beenden, aber leider ohne Erfolg. Die Installation und der Rest funktioniert einwandfrei. Der Prozess muss beendet werden, weil wenn der Prozess noch läuft, kann die Deinstallation nicht ausgeführt werden und bekommt man eine Meldung von Greenshot, die aussagt, dass Greenshot geschlossen werden muss.

Ich will eine Silent-Install durchführen und muss dann zuerst den Prozess beenden, damit keine Meldung zum Beenden des Prozesses auftaucht. Ich habe schon all die möglichen Themen im Forum gelesen, aber ich habe bisher keine funktionierende Lösung gefunden :(

Das sind alle Befehle, die ich bisher benutzt habe, um Prozesse zu beenden (ich habe sogar versucht, andere Prozesse zu beenden, aber leider ohne Erfolg):

Code: Select all

WaitUntilProcessExists Greenshot.exe
KillProcess Greenshot.exe
WaitUntilProcessExists Greenshot.exe, 2
KillProcess "Greenshot.exe"
KillProcess "Greenshot.exe", 0
KillProcess Greenshot.exe, 0
KillProcess Greenshot.exe ,0
KillProcess "Greenshot.exe" ,0
taskkill /IM Greenshot.exe /f
Call cmd.exe /c taskkill /IM Greenshot.exe /f
Call "cmd.exe /c taskkill /IM Greenshot.exe /f"
-Call cmd.exe /c taskkill /IM Greenshot.exe /f
-Call "cmd.exe /c taskkill /IM Greenshot.exe /f"
Callhidden cmd.exe /c taskkill /IM Greenshot.exe /f
Callhidden "cmd.exe /c taskkill /IM Greenshot.exe /f"
-Callhidden cmd.exe /c taskkill /IM Greenshot.exe /f
-Callhidden "cmd.exe /c taskkill /IM Greenshot.exe /f"
Dazu noch eine Frage: was ist der Unterschied zwischen -Call und Call? Ist das nur ein Tippfehler oder ist es gewollt?

Meine Version ist 16.0.0.1656.

Danke! :wink:

Sven_Puth
Posts: 461
Joined: 07. Apr 2011, 15:55
Contact:

Re: Prozess beenden funktioniert nicht

Post by Sven_Puth » 14. Sep 2015, 10:28

Das - wird vor Befehlen für die Deinstallation verwendet.

In welchem Kontext versuchst du den Prozess zu beenden? User oder System?
Tria-media - IT Solutions

Vittorio
Posts: 101
Joined: 03. Sep 2015, 08:26
Contact:

Re: Prozess beenden funktioniert nicht

Post by Vittorio » 14. Sep 2015, 12:33

Hallo Sven, das wäre für den Systemteil. Wenn ich deinstalliere, bekomme ich den Status "Failure" unter Machine und "Success" unter Client (beim "RollOut-Koordination")

peter_pk
Posts: 6
Joined: 15. Sep 2015, 11:38
Contact:

Re: Prozess beenden funktioniert nicht

Post by peter_pk » 17. Sep 2015, 09:38

Kannst du bitte deinen kompletten Code posten? Das macht es manchmal einfacher zu verstehen.

Vittorio
Posts: 101
Joined: 03. Sep 2015, 08:26
Contact:

Re: Prozess beenden funktioniert nicht

Post by Vittorio » 17. Sep 2015, 09:56

Hallo, das ist die Datei:

p.s. warum nutzt man manchmal ein Minuszeichen vor einem Befehl und manchmal nicht?

Code: Select all

[SetupInfo]
Author                  = Vittorio
CreationDate            = 15.09.2015 09:57:41
InventoryID             = 
Description             = Jens Klingen Greenshot 1.2.6.7
Method                  = Unattended
Tested on               = Windows 7x64
Dependencies            = None
Command line options    = /AW /S0
Last Change             = 
Build                   = 01

[VarDefInfo]
; <Variable>, <Type: 0=Computer 1=User>, <Allow NULL values: 0=No 1=Yes>

[Setup]
Version=14.2
ShowCaption=1
BlockInput=0
Platform=x64

[Requirements]

[Application]
ProductName=Greenshot
DeveloperName=Jens Klingen
Version=1.2.6.7
Revision=0
SetupName=%ProductName% %Version% %SetupWizard%
Text1="%ProductName% %Version%",         Arial,           30, , 2170F3, 4,    , LEFT BOLD ITALIC
Text2="%DeveloperName%",                 Arial,           24, , 2170F3, 4,    , LEFT BOLD ITALIC
Text8="%Company%",                       Arial,           18, , 2170F3, 4,  10, RIGHT BOLD ITALIC
Text9="%InstallationFor% %WindowsUser%", Arial,           16, , 2170F3, 4, -18, BOTTOM ITALIC LEFT
BackgroundColor=EFEFEF,000000
CopyDialogRect=0%, 0%, 100%, 100%, HCENTER VCENTER

; Register all installations in common registry key
UserKeyName=Schwenk_Empinst\%DeveloperName%\%ProductName%
MachineKeyName=Schwenk_Empinst\%DeveloperName%\%ProductName%\%Version%
UninstallKeyName=Matrix42 - %DeveloperName% %ProductName% %Version%
UninstallDisplayName=Matrix42 - %DeveloperName% %ProductName% %Version%
UninstallString=%ReinstallString% /U
ReinstallString="%CommonSetupDir%\Setup.exe" "%App%\%SetupInfDir%\Setup.inf"
;UninstallDisplayIcon="%ApplicationDir%\%SetupInfDir%\Setup.ico",0
UninstallOptions=NOREMOVE NOREPAIR NOMODIFY
ReinstallMode=1
SrcDir=..

; Matrix42 Scripts are copied in a common scripts directory
ApplicationDir=%CommonAppData%\Schwenk_Empinst\%DeveloperName%\%ProductName%\%Version%

SetupInfDir=Install
DataDir=%Personal%
AskUninstallOld=1
ShellLinks=1
CommonShellLinks=1
CreateUnresolvableShellLinks=1
UseStringSection=Strings:09
UseSysStringSection=SysStrings:09
DateWarning=1
SizeWarning=0
Reboot=0
PreventExternalReboot=1
StartServicesOnReboot=0
CallTimeOut=3600
AbortAfterCallTimeOut=1
DisableCancelButton=1
ShowEndMessage=0
EndMessage=%EndMessageDesc%

[Strings:07]
Disk1=Installationsmedium 1
EndMessageDesc=Die Installation wurde erfolgreich abgeschlossen!
ErrorLogMessage=Die Installation/Deinstallation wurde mit einer Fehlermeldung abgebrochen!
InstallationFor=Installation für:
InstallerDesc=Dienstprogramm zum Installieren einzelner Komponenten.
InstallerName=Installationsprogramm
SetupWizard=Installations-Assistent
Uninstallation=deinstallieren
ErrorText=Fehler
CallingText=beim Aufruf von

[Strings:09]
Disk1=Installation media 1
EndMessageDesc=Installation was completed successfully!
ErrorLogMessage=The installation/uninstallation aborted with an error message!
InstallationFor=Installation for:
InstallerDesc=Service program to install single components.
InstallerName=Setup program
SetupWizard=Installation Wizard
Uninstallation=Uninstallation
ErrorText=Error
CallingText=launching

[SysStrings:07]
Users=Benutzer

[SysStrings:09]
Users=Users

[Environment]
CommonSetupDir=%CommonFilesDir%\Setup%SetupBits%
V_MachineValuesPath=\\%EmpirumServer%\Values$\MachineValues\%DomainName%
V_UserValuesPath=%HKLM,"Software\matrix42\Software Depot","HomeServer"%\Values$\UserValues\%UserDomain%

; Maschinenabhängige Variablen
; machine dependent variables
;VM_<Variable>=%%%V_MachineValuesPath%\%ComputerName%.ini,%ComputerName%,<Variable>%%

; Userabhängige Variablen
; user dependent variables
;VU_<Variable>=%%%V_UserValuesPath%\%WindowsUser%.ini,%WindowsUser%,<Variable>%%

; !!! Setzen der entsprechenden ReplaceEnv Befehle für die Variablen im Abschnitt [Product] nicht vergessen!!!
; !!! Don't forget to set the appropriate ReplaceEnv instructions for the variables in the section [Product]!!!

[Encryption]

[Processes]
Greenshot=Greenshot.exe, Greenshot, KILLPROCESS CONTINUE
iexplore=iexplore.exe,Internet Explorer,KILLPROCESS CONTINUE

[Disks]
1=%Disk1%

[Options]
Installer = %InstallerName%, COPYALWAYS, Installer, "%InstallerDesc%"
Product   = %ProductName%,   COPYALWAYS, Product,   "%ProductDesc%"

[Installer]
1:..\..\..\..\User\Setup.exe,          %CommonSetupDir%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:..\..\..\..\User\SetupDeu.chm,       %CommonSetupDir%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:..\..\..\..\User\SetupEnu.chm,       %CommonSetupDir%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:%SetupInfDir%\Setup.inf,                             , NORMAL,                                             0
1:%Temp%\Setup64.exe,                  %CommonSetupDir%\Setup.exe,   ALWAYS NOSIZEWARNING SETUP WINDOWS64,   0
; 1:%SetupInfDir%\Setup.ico,                             , NORMAL,                                           0
; 1:%SetupInfDir%\Logo.bmp,                              , NORMAL,                                           0

[Product]
; ReplaceEnv <Variable>

#Set:Product
#Set:Installation, DONTDELETE
#Set:Deinstallation, DELETE
#Reg:OnUninstallProduct, DELETE
#Reg:Product
#Ini:Product
#Security:Product

#Set:InstallationError
#Set:DeInstallationError

[Set:Product]

[Set:Installation]

;-CallHidden cmd.exe /c taskkill /IM Greenshot.exe /F
;AskKillProcesses 60, iexplore
;KillProcess  "Greenshot.exe",0
;AddMeter -1
Call "%Src%\Greenshot-INSTALLER-1.2.6.7-RELEASE.exe" /VERYSILENT /SUPPRESSMSGBOXES /NOCANCEL /NORESTART /SP-
If %ErrorLevel% <> "0" Then "SET:InstallationError" EndIf
WaitUntilProcessExists iexplore.exe,5
KillProcess iexplore.exe
1:greenshot-defaults.ini,%Appdata%\%Productname%\greenshot-defaults.ini,NORMAL CLIENT,12574

[Set:Deinstallation]
-KillProcess Greenshot
;taskkill /IM Greenshot.exe /F
If %ErrorLevel% <> "0" Then "SET:DeInstallationError" EndIf
-Call "C:\Program Files\Greenshot\unins000.exe" /VERYSILENT /SUPPRESSMSGBOXES /NOCANCEL /NORESTART /SP-
;-AskKillProcesses 120, Greenshot
;-AddMeter -1

[Reg:OnUninstallProduct]

[Reg:Product]
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Greenshot_is1","NoModify",0x00010001,"0x00000001"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Greenshot_is1","NoRepair",0x00010001,"0x00000001"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Greenshot_is1","SystemComponent",0x00010001,"0x00000001"
[Ini:Product]
"%AppData%\Greenshot\Greenshot.ini","Core",,"Destinations=Editor,Clipboard"
"%AppData%\Greenshot\Greenshot.ini","Core",,"IEHotkey=Ctrl + Shift + PrintScreen"

[Security:Product]

[Shell:Product]

[Set:InstallationError]
ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% Greenshot-INSTALLER-1.2.6.7-RELEASE.exe
Abort

[Set:DeInstallationError]
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% Install.exe

Vittorio
Posts: 101
Joined: 03. Sep 2015, 08:26
Contact:

Re: Prozess beenden funktioniert nicht

Post by Vittorio » 17. Sep 2015, 11:16

Hallo, ich habe schon einen Fehler korrigiert, aber ich kann den Prozess "Greenshot.exe" noch nicht beenden. Der Fehler ist der Pfad von unistall000.exe, der jetzt so lautet: %PROGRAMFILES%\Greenshot\unins000.exe

marc.schneider
Posts: 224
Joined: 29. Mar 2010, 12:26
Location: Magdeburg
Contact:

Re: Prozess beenden funktioniert nicht

Post by marc.schneider » 17. Sep 2015, 11:55

Hallo Vittorio,

die Deinstallation wird ja rückwärts abgearbeitet, daher muss das KillProcess nach unten. Ich warte danach immer noch einen Moment:

Code: Select all

[Set:Deinstallation]
If %ErrorLevel% <> "0" Then "SET:DeInstallationError" EndIf
-Call "%PROGRAMFILES%\Greenshot\unins000.exe" /VERYSILENT /SUPPRESSMSGBOXES /NOCANCEL /NORESTART /SP-
-Sleep 5000
-KillProcess greenshot.exe
AddMeter -1
So sollte es gehen. Ist aber ungetestet ;-)
ABER: Bei uns wird Greenshot unter %PROGRAMFILESDIRX86% installiert...

Beste Grüße aus Magdeburg
Marc
--
Ärztekammer Sachsen-Anhalt
39120 Magdeburg
http://www.aeksa.de
--

Vittorio
Posts: 101
Joined: 03. Sep 2015, 08:26
Contact:

Re: Prozess beenden funktioniert nicht

Post by Vittorio » 21. Sep 2015, 14:45

Hallo Marc, danke für die Info über die Reihenfolge von den Befehlen... das wusste ich nicht! ich kann aber leider das noch nicht erledigen :(

Der Prozess wird immer noch nicht beendet, auch wenn ich schon alles probiert habe (Killprocess greenshot, greenshot.exe, Greenshot, Greenshot.exe) und bekomme zusätzlich auch bei der Deinstallation einen Fehler, der sagt, dass es einen Fehler beim unins000 gibt (weiß es nicht welcher). Bei mir wird das Programm in Program Files und nicht Program Files x86 installiert. Das ist meine inf:

Code: Select all

[SetupInfo]
Author                  = Vittorio
CreationDate            = 05.08.2015 10:58:41
InventoryID             = 
Description             = Jens Klingen Greenshot 1.2.6.7
Method                  = Unattended
Tested on               = Windows 7 x64
Dependencies            = None
Command line options    = /AW /S0
Last Change             = 
Build                   = 01

[VarDefInfo]
; <Variable>, <Type: 0=Computer 1=User>, <Allow NULL values: 0=No 1=Yes>

[Setup]
Version=14.2
ShowCaption=1
BlockInput=0
Platform=x64

[Requirements]

[Application]
ProductName=Greenshot
DeveloperName=Jens Klingen
Version=1.2.6.7
Revision=0
SetupName=%ProductName% %Version% %SetupWizard%
Text1="%ProductName% %Version%",         Arial,           30, , 2170F3, 4,    , LEFT BOLD ITALIC
Text2="%DeveloperName%",                 Arial,           24, , 2170F3, 4,    , LEFT BOLD ITALIC
Text8="%Company%",                       Arial,           18, , 2170F3, 4,  10, RIGHT BOLD ITALIC
Text9="%InstallationFor% %WindowsUser%", Arial,           16, , 2170F3, 4, -18, BOTTOM ITALIC LEFT
BackgroundColor=EFEFEF,000000
CopyDialogRect=0%, 0%, 100%, 100%, HCENTER VCENTER

; Register all installations in common registry key
UserKeyName=Schwenk_Empinst\%DeveloperName%\%ProductName%
MachineKeyName=Schwenk_Empinst\%DeveloperName%\%ProductName%\%Version%
UninstallKeyName=Matrix42 - %DeveloperName% %ProductName% %Version%
UninstallDisplayName=Matrix42 - %DeveloperName% %ProductName% %Version%
UninstallString=%ReinstallString% /U
ReinstallString="%CommonSetupDir%\Setup.exe" "%App%\%SetupInfDir%\Setup.inf"
;UninstallDisplayIcon="%ApplicationDir%\%SetupInfDir%\Setup.ico",0
UninstallOptions=NOREMOVE NOREPAIR NOMODIFY
ReinstallMode=1
SrcDir=..

; Matrix42 Scripts are copied in a common scripts directory
ApplicationDir=%CommonAppData%\Schwenk_Empinst\%DeveloperName%\%ProductName%\%Version%

SetupInfDir=Install
DataDir=%Personal%
AskUninstallOld=1
ShellLinks=1
CommonShellLinks=1
CreateUnresolvableShellLinks=1
UseStringSection=Strings:09
UseSysStringSection=SysStrings:09
DateWarning=1
SizeWarning=0
Reboot=0
PreventExternalReboot=1
StartServicesOnReboot=0
CallTimeOut=3600
AbortAfterCallTimeOut=1
DisableCancelButton=1
ShowEndMessage=0
EndMessage=%EndMessageDesc%

[Strings:07]
Disk1=Installationsmedium 1
EndMessageDesc=Die Installation wurde erfolgreich abgeschlossen!
ErrorLogMessage=Die Installation/Deinstallation wurde mit einer Fehlermeldung abgebrochen!
InstallationFor=Installation für:
InstallerDesc=Dienstprogramm zum Installieren einzelner Komponenten.
InstallerName=Installationsprogramm
SetupWizard=Installations-Assistent
Uninstallation=deinstallieren
ErrorText=Fehler
CallingText=beim Aufruf von

[Strings:09]
Disk1=Installation media 1
EndMessageDesc=Installation was completed successfully!
ErrorLogMessage=The installation/uninstallation aborted with an error message!
InstallationFor=Installation for:
InstallerDesc=Service program to install single components.
InstallerName=Setup program
SetupWizard=Installation Wizard
Uninstallation=Uninstallation
ErrorText=Error
CallingText=launching

[SysStrings:07]
Users=Benutzer

[SysStrings:09]
Users=Users

[Environment]
CommonSetupDir=%CommonFilesDir%\Setup%SetupBits%
V_MachineValuesPath=\\%EmpirumServer%\Values$\MachineValues\%DomainName%
V_UserValuesPath=%HKLM,"Software\matrix42\Software Depot","HomeServer"%\Values$\UserValues\%UserDomain%

; Maschinenabhängige Variablen
; machine dependent variables
;VM_<Variable>=%%%V_MachineValuesPath%\%ComputerName%.ini,%ComputerName%,<Variable>%%

; Userabhängige Variablen
; user dependent variables
;VU_<Variable>=%%%V_UserValuesPath%\%WindowsUser%.ini,%WindowsUser%,<Variable>%%

; !!! Setzen der entsprechenden ReplaceEnv Befehle für die Variablen im Abschnitt [Product] nicht vergessen!!!
; !!! Don't forget to set the appropriate ReplaceEnv instructions for the variables in the section [Product]!!!

[Encryption]

[Processes]
Greenshot=Greenshot.exe, Greenshot, KILLPROCESS CONTINUE
iexplore=iexplore.exe,Internet Explorer,KILLPROCESS CONTINUE

[Disks]
1=%Disk1%

[Options]
Installer = %InstallerName%, COPYALWAYS, Installer, "%InstallerDesc%"
Product   = %ProductName%,   COPYALWAYS, Product,   "%ProductDesc%"

[Installer]
1:..\..\..\..\User\Setup.exe,          %CommonSetupDir%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:..\..\..\..\User\SetupDeu.chm,       %CommonSetupDir%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:..\..\..\..\User\SetupEnu.chm,       %CommonSetupDir%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:%SetupInfDir%\Setup.inf,                             , NORMAL,                                             0
1:%Temp%\Setup64.exe,                  %CommonSetupDir%\Setup.exe,   ALWAYS NOSIZEWARNING SETUP WINDOWS64,   0
; 1:%SetupInfDir%\Setup.ico,                             , NORMAL,                                           0
; 1:%SetupInfDir%\Logo.bmp,                              , NORMAL,                                           0

[Product]
; ReplaceEnv <Variable>

#Set:Product
#Set:Installation, DONTDELETE
#Set:Deinstallation, DELETE
#Reg:OnUninstallProduct, DELETE
#Reg:Product
#Ini:Product
#Security:Product

#Set:InstallationError
#Set:DeInstallationError

[Set:Product]

[Set:Installation]
AskKillProcesses 60, iexplore
Call "%Src%\Greenshot-INSTALLER-1.2.6.7-RELEASE.exe" /VERYSILENT /SUPPRESSMSGBOXES /NOCANCEL /NORESTART /SP-
If %ErrorLevel% <> "0" Then "SET:InstallationError" EndIf
WaitUntilProcessExists iexplore.exe,5
KillProcess iexplore.exe
1:greenshot-defaults.ini,%Appdata%\%Productname%\greenshot-defaults.ini,NORMAL CLIENT,12574

[Set:Deinstallation]
If %ErrorLevel% <> "0" Then "SET:DeInstallationError" EndIf
-Call "C:\Program Files\Greenshot\unins000.exe" /VERYSILENT /SUPPRESSMSGBOXES /NOCANCEL /NORESTART /SP-
-Sleep 5000
-KillProcess Greenshot

[Reg:OnUninstallProduct]

[Reg:Product]
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Greenshot_is1","NoModify",0x00010001,"0x00000001"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Greenshot_is1","NoRepair",0x00010001,"0x00000001"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Greenshot_is1","SystemComponent",0x00010001,"0x00000001"

[Ini:Product]
"%AppData%\Greenshot\Greenshot.ini","Core",,"Destinations=Editor,Clipboard"
"%AppData%\Greenshot\Greenshot.ini","Core",,"IEHotkey=Ctrl + Shift + PrintScreen"

[Security:Product]

[Shell:Product]

[Set:InstallationError]
ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% Greenshot-INSTALLER-1.2.6.7-RELEASE.exe
Abort

[Set:DeInstallationError]
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% unins000.exe

Vittorio
Posts: 101
Joined: 03. Sep 2015, 08:26
Contact:

Re: Prozess beenden funktioniert nicht

Post by Vittorio » 22. Sep 2015, 09:35

Ich kann das noch nicht lösen :( ich kann unins000.exe nicht ausführen und den Prozess nicht beenden, es geht nur wenn ich das vom Computer aus mache (entweder manuell oder mit cmd)

User avatar
r.wiegel
Posts: 896
Joined: 05. Feb 2010, 13:45
Location: Regensburg
Contact:

Re: Prozess beenden funktioniert nicht

Post by r.wiegel » 22. Sep 2015, 10:57

testen Sie bitte mit dem Aufruf:

Code: Select all

-CallHidden cmd /c taskkill /F /IM Greenshot.exe /T 
Viele Grüße
Roman Wiegel
IT-Consultant

MR Datentechnik - Vertriebs- und Service GmbH

marc.schneider
Posts: 224
Joined: 29. Mar 2010, 12:26
Location: Magdeburg
Contact:

Re: Prozess beenden funktioniert nicht

Post by marc.schneider » 22. Sep 2015, 12:07

Hallo Vittorio,

habe Dein Paket mal bei mir reingezogen und mittels Package Editor durchgespielt.
Folgende setup.inf funktioniert bei mir tadellos:

Code: Select all

[SetupInfo]
Author                  = Vittorio
CreationDate            = 05.08.2015 10:58:41
InventoryID             =
Description             = Jens Klingen Greenshot 1.2.6.7
Method                  = Unattended
Tested on               = Windows 7 x64
Dependencies            = None
Command line options    = /AW /S0
Last Change             =
Build                   = 01

[VarDefInfo]
; <Variable>, <Type: 0=Computer 1=User>, <Allow NULL values: 0=No 1=Yes>

[Setup]
Version=14.2
ShowCaption=1
BlockInput=0
Platform=x64

[Requirements]

[Application]
ProductName=Greenshot
DeveloperName=Jens Klingen
Version=1.2.6.7
Revision=0
SetupName=%ProductName% %Version% %SetupWizard%
Text1="%ProductName% %Version%",         Arial,           30, , 2170F3, 4,    , LEFT BOLD ITALIC
Text2="%DeveloperName%",                 Arial,           24, , 2170F3, 4,    , LEFT BOLD ITALIC
Text8="%Company%",                       Arial,           18, , 2170F3, 4,  10, RIGHT BOLD ITALIC
Text9="%InstallationFor% %WindowsUser%", Arial,           16, , 2170F3, 4, -18, BOTTOM ITALIC LEFT
BackgroundColor=EFEFEF,000000
CopyDialogRect=0%, 0%, 100%, 100%, HCENTER VCENTER

; Register all installations in common registry key
UserKeyName=Schwenk_Empinst\%DeveloperName%\%ProductName%
MachineKeyName=Schwenk_Empinst\%DeveloperName%\%ProductName%\%Version%
UninstallKeyName=Matrix42 - %DeveloperName% %ProductName% %Version%
UninstallDisplayName=Matrix42 - %DeveloperName% %ProductName% %Version%
UninstallString=%ReinstallString% /U
ReinstallString="%CommonSetupDir%\Setup.exe" "%App%\%SetupInfDir%\Setup.inf"
;UninstallDisplayIcon="%ApplicationDir%\%SetupInfDir%\Setup.ico",0
UninstallOptions=NOREMOVE NOREPAIR NOMODIFY
ReinstallMode=1
SrcDir=..

; Matrix42 Scripts are copied in a common scripts directory
ApplicationDir=%CommonAppData%\Schwenk_Empinst\%DeveloperName%\%ProductName%\%Version%

SetupInfDir=Install
DataDir=%Personal%
AskUninstallOld=1
ShellLinks=1
CommonShellLinks=1
CreateUnresolvableShellLinks=1
UseStringSection=Strings:09
UseSysStringSection=SysStrings:09
DateWarning=1
SizeWarning=0
Reboot=0
PreventExternalReboot=1
StartServicesOnReboot=0
CallTimeOut=3600
AbortAfterCallTimeOut=1
DisableCancelButton=1
ShowEndMessage=0
EndMessage=%EndMessageDesc%

[Strings:07]
Disk1=Installationsmedium 1
EndMessageDesc=Die Installation wurde erfolgreich abgeschlossen!
ErrorLogMessage=Die Installation/Deinstallation wurde mit einer Fehlermeldung abgebrochen!
InstallationFor=Installation für:
InstallerDesc=Dienstprogramm zum Installieren einzelner Komponenten.
InstallerName=Installationsprogramm
SetupWizard=Installations-Assistent
Uninstallation=deinstallieren
ErrorText=Fehler
CallingText=beim Aufruf von

[Strings:09]
Disk1=Installation media 1
EndMessageDesc=Installation was completed successfully!
ErrorLogMessage=The installation/uninstallation aborted with an error message!
InstallationFor=Installation for:
InstallerDesc=Service program to install single components.
InstallerName=Setup program
SetupWizard=Installation Wizard
Uninstallation=Uninstallation
ErrorText=Error
CallingText=launching

[SysStrings:07]
Users=Benutzer

[SysStrings:09]
Users=Users

[Environment]
CommonSetupDir=%CommonFilesDir%\Setup%SetupBits%
V_MachineValuesPath=\\%EmpirumServer%\Values$\MachineValues\%DomainName%
V_UserValuesPath=%HKLM,"Software\matrix42\Software Depot","HomeServer"%\Values$\UserValues\%UserDomain%

; Maschinenabhängige Variablen
; machine dependent variables
;VM_<Variable>=%%%V_MachineValuesPath%\%ComputerName%.ini,%ComputerName%,<Variable>%%

; Userabhängige Variablen
; user dependent variables
;VU_<Variable>=%%%V_UserValuesPath%\%WindowsUser%.ini,%WindowsUser%,<Variable>%%

; !!! Setzen der entsprechenden ReplaceEnv Befehle für die Variablen im Abschnitt [Product] nicht vergessen!!!
; !!! Don't forget to set the appropriate ReplaceEnv instructions for the variables in the section [Product]!!!

[Encryption]

[Processes]
Greenshot=Greenshot.exe, Greenshot, KILLPROCESS CONTINUE
iexplore=iexplore.exe,Internet Explorer,KILLPROCESS CONTINUE

[Disks]
1=%Disk1%

[Options]
Installer = %InstallerName%, COPYALWAYS, Installer, "%InstallerDesc%"
Product   = %ProductName%,   COPYALWAYS, Product,   "%ProductDesc%"

[Installer]
1:..\..\..\..\User\Setup.exe,          %CommonSetupDir%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:..\..\..\..\User\SetupDeu.chm,       %CommonSetupDir%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:..\..\..\..\User\SetupEnu.chm,       %CommonSetupDir%, OPTIONAL USEFILENAME DIRECTORY NOSIZEWARNING SETUP, 0
1:%SetupInfDir%\Setup.inf,                             , NORMAL,                                             0
1:%Temp%\Setup64.exe,                  %CommonSetupDir%\Setup.exe,   ALWAYS NOSIZEWARNING SETUP WINDOWS64,   0
; 1:%SetupInfDir%\Setup.ico,                             , NORMAL,                                           0
; 1:%SetupInfDir%\Logo.bmp,                              , NORMAL,                                           0

[Product]
; ReplaceEnv <Variable>

#Set:Product
#Set:Installation, DONTDELETE
#Set:Deinstallation, DELETE
#Reg:OnUninstallProduct, DELETE
#Reg:Product
#Ini:Product
#Security:Product

;;; Weshalb werden diese Sektionen aufgerufen???
;;;#Set:InstallationError
;;;#Set:DeInstallationError

[Set:Product]

[Set:Installation]
AskKillProcesses 60, iexplore
KillProcess Greenshot.exe
Call "%Src%\Greenshot-INSTALLER-1.2.6.7-RELEASE.exe" /SILENT /SUPPRESSMSGBOXES /NOCANCEL /NORESTART /SP-
If %ErrorLevel% <> "0" Then "SET:InstallationError" EndIf
WaitUntilProcessExists iexplore.exe,5
KillProcess iexplore.exe
1:greenshot-defaults.ini,%Appdata%\%Productname%\greenshot-defaults.ini,NORMAL CLIENT,12574

[Set:Deinstallation]
If %ErrorLevel% <> "0" Then "SET:DeInstallationError" EndIf
-Call "C:\Program Files\Greenshot\unins000.exe" /SILENT /SUPPRESSMSGBOXES /NOCANCEL /NORESTART /SP-
-Sleep 5000
-KillProcess Greenshot.exe

[Reg:OnUninstallProduct]

[Reg:Product]
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Greenshot_is1","NoModify",0x00010001,"0x00000001"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Greenshot_is1","NoRepair",0x00010001,"0x00000001"
HKLM,"SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\Greenshot_is1","SystemComponent",0x00010001,"0x00000001"

[Ini:Product]
"%AppData%\Greenshot\Greenshot.ini","Core",,"Destinations=Editor,Clipboard"
"%AppData%\Greenshot\Greenshot.ini","Core",,"IEHotkey=Ctrl + Shift + PrintScreen"

[Security:Product]

[Shell:Product]

[Set:InstallationError]
ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% Greenshot-INSTALLER-1.2.6.7-RELEASE.exe
Abort

[Set:DeInstallationError]
-Abort
-ErrorLogMsg %ErrorText% %ErrorLevel% %CallingText% unins000.exe
Verändert habe ich:
  • Sektionsaufrufe "#Set:InstallationError" und "#Set:DeInstallationError" auskommentiert. Ich weiß auch nicht, was Du damit bezwecken wolltest.
  • "KillProcess Greenshot.exe VOR der Installation eigefügt. Sonst läuft eine Reinstallation nicht.
  • "-KillProcess Greenshot" bei der Deinstallation durch ein ".exe" ergänzt
Dann läuft es. ;-)

Beste Grüße
Marc
--
Ärztekammer Sachsen-Anhalt
39120 Magdeburg
http://www.aeksa.de
--

Vittorio
Posts: 101
Joined: 03. Sep 2015, 08:26
Contact:

Re: Prozess beenden funktioniert nicht

Post by Vittorio » 22. Sep 2015, 13:30

Omg Marc, das hat funktioniert! Vielen Dank für deine Geduld und dass du das Paket eingespielt und korrigiert hast! Ich bin ein Anfänger und habe seit kurzem begonnen zu paketieren... das ist der Grund, weshalb ich solche Fehler mache :lol: Jetzt schulde ich dir ein Paket... ein einfaches Paket :mrgreen:

marc.schneider
Posts: 224
Joined: 29. Mar 2010, 12:26
Location: Magdeburg
Contact:

Re: Prozess beenden funktioniert nicht

Post by marc.schneider » 22. Sep 2015, 13:37

Hey, kein Problem. Ich wollte Greenshot in der aktuellen Version auch schon lange paketieren :wink:
Und: Jeder fängt mal an!

Beste Grüße aus Magdeburg
Marc
--
Ärztekammer Sachsen-Anhalt
39120 Magdeburg
http://www.aeksa.de
--

###Ben###
Posts: 37
Joined: 05. Oct 2012, 12:00
Contact:

Re: Prozess beenden funktioniert nicht

Post by ###Ben### » 18. Dec 2015, 11:39

Hallo zusammen,

kann ein killprocess aus einem reinen x86-Setup auch einen x64-Process beenden bzw. spielt die Architektur an der Stelle eine Rolle?

Btw: Bei greenshot würde ich auch nach der Installation einen killprocess Greenshot.exe durchführen, da die Instanz sonst unter dem Installationskonto (i.d.R. also mit SYSTEM-Account ausgestattet mit entspr. Rechten) ausgeführt wird.


Danke & Gruß
Ben

Vittorio
Posts: 101
Joined: 03. Sep 2015, 08:26
Contact:

Re: Prozess beenden funktioniert nicht

Post by Vittorio » 18. Dec 2015, 11:49

Hey Ben, ich denke, das spielt absolut keine Rolle, die Syntax bleibt immer gleich, man muss nur aufpassen, dass der Name 100% übereinstimmt! :)

Post Reply

Return to “Paketierung”

Who is online

Users browsing this forum: No registered users and 5 guests