Seite 1 von 1
WaitForProcessEnding bekommt Ende des Prozess nicht mit
Verfasst: 12 Jun 2015, 11:02
von sebneu
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
Re: WaitForProcessEnding bekommt Ende des Prozess nicht mit
Verfasst: 12 Jun 2015, 15:47
von n.wenselowski
Hallo,
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
Re: WaitForProcessEnding bekommt Ende des Prozess nicht mit
Verfasst: 12 Jun 2015, 17:23
von sebneu
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
Re: WaitForProcessEnding bekommt Ende des Prozess nicht mit
Verfasst: 15 Jun 2015, 09:32
von n.wenselowski
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
Re: WaitForProcessEnding bekommt Ende des Prozess nicht mit
Verfasst: 15 Jun 2015, 17:49
von sebneu
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
Re: WaitForProcessEnding bekommt Ende des Prozess nicht mit
Verfasst: 19 Jun 2015, 10:33
von sebneu
So, nun habe ich den Fehler wieder erzeugen können:
Die script Zeile ist :
Code: Alles auswählen
WinBatch_start_FirefoxUninstall /WaitForProcessEnding "Au_.exe" /TimeOutSeconds 300
Das Log sagt:
[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"
Re: WaitForProcessEnding bekommt Ende des Prozess nicht mit
Verfasst: 24 Jun 2015, 18:15
von SisterOfMercy
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.
Re: WaitForProcessEnding bekommt Ende des Prozess nicht mit
Verfasst: 25 Jun 2015, 09:25
von sebneu
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
Re: WaitForProcessEnding bekommt Ende des Prozess nicht mit
Verfasst: 29 Jun 2015, 10:56
von d.oertel
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
Re: WaitForProcessEnding bekommt Ende des Prozess nicht mit
Verfasst: 02 Jul 2015, 17:04
von SisterOfMercy
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.
Hmm, I will have to look into this. I never had any problems with the firefox uninstaller.