WaitForProcessEnding bekommt Ende des Prozess nicht mit
WaitForProcessEnding bekommt Ende des Prozess nicht mit
Hallo Support
ich habe auf einigen Rechnern, die eine SSD eingebaut haben, das Problem, dass /WaitForProcessEnding Au_.exe offensichtlich das Ende der Au_.exe verpasst. Vielleicht ist es so, dass das Programm so schnell gestartet und beendet wird, dass das script gar nicht mit bekommt, dass die au_.exe schon wieder beendet wurde. Kann das sein?
Das script wartet dann und wartet bis der timeout irgendwann eintritt. Schalte ich den Rechner einfach während des Wartens aus, wird das jeweilige Programm sauber installiert.
Auf anderen Rechnern läuft die Deinstallation ganz normal.
Besten Grüße in die Runde und Besten Dank für jegliche Hilfe
SebNeu
ich habe auf einigen Rechnern, die eine SSD eingebaut haben, das Problem, dass /WaitForProcessEnding Au_.exe offensichtlich das Ende der Au_.exe verpasst. Vielleicht ist es so, dass das Programm so schnell gestartet und beendet wird, dass das script gar nicht mit bekommt, dass die au_.exe schon wieder beendet wurde. Kann das sein?
Das script wartet dann und wartet bis der timeout irgendwann eintritt. Schalte ich den Rechner einfach während des Wartens aus, wird das jeweilige Programm sauber installiert.
Auf anderen Rechnern läuft die Deinstallation ganz normal.
Besten Grüße in die Runde und Besten Dank für jegliche Hilfe
SebNeu
- n.wenselowski
- Ex-uib-Team
- Beiträge: 3194
- Registriert: 04 Apr 2013, 12:15
Re: WaitForProcessEnding bekommt Ende des Prozess nicht mit
Hallo,
ich zitiere mal aus dem Handbuch zu /WaitForProcessEnding:
Gruß
Niko
ich zitiere mal aus dem Handbuch zu /WaitForProcessEnding:
/WaitForProcessEnding <program name>
Wartet darauf, das sich der Prozess mit dem Namen <program name> beendet.
Kann und sollte mit /TimeOutSeconds kombiniert werden.
Gruß
Niko
Code: Alles auswählen
import OPSI
Re: WaitForProcessEnding bekommt Ende des Prozess nicht mit
Hallo
das habe ich gelesen. Ich weiß jetzt aber nicht worauf mich das stoßen soll... Wenn es um das /TimeOutSeconds geht: das habe ich ja geschrieben, dass irgendwann der timeout eintritt - ich meinte damit /TimeOutSeconds.
Das Problem an dieser Stelle ist eher, dass manche Rechner wirklich lange zur Deinstallation der Programme brauchen - vor allem wenn Windows parallel Updates konfiguriert. Daher ist der Timeout auf 5 Minuten gesetzt. Bei einer SSD ist das aber auch 5 Minuten zu lang
Danke für die Antwort
Gruß
SebNeu
das habe ich gelesen. Ich weiß jetzt aber nicht worauf mich das stoßen soll... Wenn es um das /TimeOutSeconds geht: das habe ich ja geschrieben, dass irgendwann der timeout eintritt - ich meinte damit /TimeOutSeconds.
Das Problem an dieser Stelle ist eher, dass manche Rechner wirklich lange zur Deinstallation der Programme brauchen - vor allem wenn Windows parallel Updates konfiguriert. Daher ist der Timeout auf 5 Minuten gesetzt. Bei einer SSD ist das aber auch 5 Minuten zu lang

Danke für die Antwort
Gruß
SebNeu
- n.wenselowski
- Ex-uib-Team
- Beiträge: 3194
- Registriert: 04 Apr 2013, 12:15
Re: WaitForProcessEnding bekommt Ende des Prozess nicht mit
Hallo SebNeu,
du kannt den Timeout selbst festlegen. Und du musst ihn ja nicht absolut festlegen, es kann ja auch eine Variable sein
Gruß
Niko
du kannt den Timeout selbst festlegen. Und du musst ihn ja nicht absolut festlegen, es kann ja auch eine Variable sein

Gruß
Niko
Code: Alles auswählen
import OPSI
Re: WaitForProcessEnding bekommt Ende des Prozess nicht mit
Hallo
Mmh, die Frage ist doch, warum das /WaitForProcessEnding den Prozess nicht findet.
Lustigerweise haben meine Tests heute das Verhalten nicht dargestellt. Es lief alles wie es soll. Ich werde das beobachten...
Gruß
SebNeu
Mmh, die Frage ist doch, warum das /WaitForProcessEnding den Prozess nicht findet.
Lustigerweise haben meine Tests heute das Verhalten nicht dargestellt. Es lief alles wie es soll. Ich werde das beobachten...
Gruß
SebNeu
Re: WaitForProcessEnding bekommt Ende des Prozess nicht mit
So, nun habe ich den Fehler wieder erzeugen können:
Die script Zeile ist :
Das Log sagt:
Die script Zeile ist :
Code: Alles auswählen
WinBatch_start_FirefoxUninstall /WaitForProcessEnding "Au_.exe" /TimeOutSeconds 300
[6] [Jun 19 10:16:28:374] [firefox] Call ""C:\Program Files (x86)\Mozilla Firefox\uninstall\helper.exe" /S"
[6] [Jun 19 10:16:28:374] [firefox] Timeout 300 seconds
[6] [Jun 19 10:16:28:374] [firefox] Waiting until process "Au_.exe" started and has ended
[6] [Jun 19 10:16:28:374] [firefox] Start process as invoker: SYSTEM
[6] [Jun 19 10:16:28:381] [firefox] Waiting for start of "Au_.exe"
[6] [Jun 19 10:21:29:107] [firefox] Waiting for "Au_.exe" stopped - time out 300 sec
[6] [Jun 19 10:21:29:107] [firefox] ExitCode 0 Executed process ""C:\Program Files (x86)\Mozilla Firefox\uninstall\helper.exe" /S"
- SisterOfMercy
- Beiträge: 1556
- Registriert: 22 Jun 2012, 19:18
Re: WaitForProcessEnding bekommt Ende des Prozess nicht mit
First, what is au_.exe, and why do you need to wait for it? Certainly when installing firefox.
Second, WaitForProcessEnding waits for the process to start and then end! If the process au_.exe already runs opsi does not begin waiting for it to end, because it has not seen it start.
Second, WaitForProcessEnding waits for the process to start and then end! If the process au_.exe already runs opsi does not begin waiting for it to end, because it has not seen it start.
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!
Re: WaitForProcessEnding bekommt Ende des Prozess nicht mit
Hi
thanks for your reply.
The uninstaller uninstall\helper.exe of firefox starts the au_.exe for the uninstall process (can be seen with process explorer procexp.exe). The helper.exe returns immediately but the au_.exe lingers. If the installation process starts before the au_.exe has finished the new installation might get deleted by the lingering au_.exe. This has happened a couple of times in our setup. Not only firefox uninstaller uses the au_.exe but also vlc and notepad++ - all with the same problems.
Your are right, apparently the problem is that the /WaitForProcessEnding does not realize the start of the au_.exe. I guess that this is the problem, too. But is there any way to fix it? Any way to make /WaitForProcessEnding check the processes in a higher frequency (or what ever it does). Maybe it is something which has to be done in the source code of winst.
Regards
Sebneu
thanks for your reply.
The uninstaller uninstall\helper.exe of firefox starts the au_.exe for the uninstall process (can be seen with process explorer procexp.exe). The helper.exe returns immediately but the au_.exe lingers. If the installation process starts before the au_.exe has finished the new installation might get deleted by the lingering au_.exe. This has happened a couple of times in our setup. Not only firefox uninstaller uses the au_.exe but also vlc and notepad++ - all with the same problems.
Your are right, apparently the problem is that the /WaitForProcessEnding does not realize the start of the au_.exe. I guess that this is the problem, too. But is there any way to fix it? Any way to make /WaitForProcessEnding check the processes in a higher frequency (or what ever it does). Maybe it is something which has to be done in the source code of winst.
Regards
Sebneu
Re: WaitForProcessEnding bekommt Ende des Prozess nicht mit
Hi,
WaitForProcessEnding wait for the start and then for the end of the named process.
On a fast computer and at program with a very small task to wait for it may happen that
the named process is started and ended before the opsi-winst the first time asks for the process.
In this case opsi-winst will wait until timeout.
There is not so much code between the process start and the first check for the process to wait for.
But I made a internal ticket to try to make this gap smaller.
regards
d.oertel
WaitForProcessEnding wait for the start and then for the end of the named process.
On a fast computer and at program with a very small task to wait for it may happen that
the named process is started and ended before the opsi-winst the first time asks for the process.
In this case opsi-winst will wait until timeout.
There is not so much code between the process start and the first check for the process to wait for.
But I made a internal ticket to try to make this gap smaller.
regards
d.oertel
Vielen Dank für die Nutzung von opsi. Im Forum ist unser Support begrenzt.
Für den professionellen Einsatz und individuelle Beratung empfehlen wir einen Support-Vertrag und eine Schulung.
Gerne informieren wir Sie zu unserem Angebot.
uib GmbH
Telefon: +49 6131 27561 0
E-Mail: sales@uib.de
- SisterOfMercy
- Beiträge: 1556
- Registriert: 22 Jun 2012, 19:18
Re: WaitForProcessEnding bekommt Ende des Prozess nicht mit
Hmm, I will have to look into this. I never had any problems with the firefox uninstaller.sebneu hat geschrieben:The uninstaller uninstall\helper.exe of firefox starts the au_.exe for the uninstall process (can be seen with process explorer procexp.exe). The helper.exe returns immediately but the au_.exe lingers. If the installation process starts before the au_.exe has finished the new installation might get deleted by the lingering au_.exe. This has happened a couple of times in our setup. Not only firefox uninstaller uses the au_.exe but also vlc and notepad++ - all with the same problems.
Bitte schreiben Sie Deutsch, when I'm responding in the German-speaking part of the forum!