Hallo,
Beispiel:
Wenn Process xyz läuft, soll die Paket-Deinstallation mit Fehlerhinweis abgebrochen werden.
Momentan wird es in der setup.inf so umgesetzt, folgende Auszüge aus der Setup.inf des Paketes:
Method = DIFF
Command line options = /S0 /AW
[Product]
#Set:CheckRunningOnUninstallProduct, DELETE
[Set:CheckRunningOnUninstallProduct]
;Überprüfe ob Cumulus läuft
If DoesProcessExist ("Cumulus.exe") == "1" Then "Exit_RUNNING_UNINST" EndIf
[Exit_RUNNING_UNINST]
-Abort "Cumulus is Running, please Close, Deinstallationsabbruch"
PROBLEM welches auftritt:
Das Paket führt die Deinstallation des Userteiles durch!!!!?????
Das Paket bricht korrekt beim Machinenteil mit dem angegebenen Fehlerhinweis ab!
Wie kann ich eine Deinstallation RICHTIG abbrechen wenn ein Anwendungsprozess der zu deinstallierenden Programmes läuft? Entweder ALLES korrekt Deinstallieren (Maschinenteil und Userteil), oder NICHTS deinstallieren...
Hintergrund: Wenn die zu deinstallierenden Programme gestartet sind, kann Empirum nicht alle Verzeichnisse, Dateien, etc. entfernen, es bleiben unsaubere Programm-Verzeichnis, etc- Reste übrig! Aus diesen Grund wurde eine Abfrage in die Setup.inf eingebaut die die Paket-Deinstallation abbricht, wenn der Anwendungs-Process läuft.
Danke
Empirum Paket Deinstallationsabbruch bei laufender Anwendung
setze neben der Sprungmarke für den Maschinenteil auch eine für den Benutzerteil:
[Product]
#Set:CheckRunningOnUninstallProduct, DELETE
#Set:CheckRunningOnUninstallProductUser, DELETE CLIENT
[Set:CheckRunningOnUninstallProduct]
;Überprüfe ob Cumulus läuft
If DoesProcessExist ("Cumulus.exe") == "1" Then "Exit_RUNNING_UNINST" EndIf
[Set:CheckRunningOnUninstallProductUser]
;Überprüfe ob Cumulus läuft
If DoesProcessExist ("Cumulus.exe") == "1" Then "Exit_RUNNING_UNINST" EndIf
[Exit_RUNNING_UNINST]
-Abort "Cumulus is Running, please Close, Deinstallationsabbruch"
Ich bin mir nicht sicher was passiert, wenn du die Sprungmarke folgendermaßen erweiterst:
[Product]
#Set:CheckRunningOnUninstallProduct, DELETE MACHINE CLIENT
[Product]
#Set:CheckRunningOnUninstallProduct, DELETE
#Set:CheckRunningOnUninstallProductUser, DELETE CLIENT
[Set:CheckRunningOnUninstallProduct]
;Überprüfe ob Cumulus läuft
If DoesProcessExist ("Cumulus.exe") == "1" Then "Exit_RUNNING_UNINST" EndIf
[Set:CheckRunningOnUninstallProductUser]
;Überprüfe ob Cumulus läuft
If DoesProcessExist ("Cumulus.exe") == "1" Then "Exit_RUNNING_UNINST" EndIf
[Exit_RUNNING_UNINST]
-Abort "Cumulus is Running, please Close, Deinstallationsabbruch"
Ich bin mir nicht sicher was passiert, wenn du die Sprungmarke folgendermaßen erweiterst:
[Product]
#Set:CheckRunningOnUninstallProduct, DELETE MACHINE CLIENT
Visit my Blog: "DiEW - Das inoffizielle Empirum Weblog" (http://www.diew.eu)
Martin Niemann
Manager Support (Service Management)
Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of matrix42 AG or of the support team.
Martin Niemann
Manager Support (Service Management)
Disclaimer: I participate in this forum on a voluntary basis. Views expressed are not necessarily those of matrix42 AG or of the support team.
Who is online
Users browsing this forum: Ahrefs [Bot] and 1 guest