Deinstallation nur wenn Programm nicht geöffnet

Post Reply
Pep
Posts: 187
Joined: 24. May 2011, 17:30
Contact:

Deinstallation nur wenn Programm nicht geöffnet

Post by Pep » 25. May 2011, 14:28

Hallo Liebes Matrix Team,

ich installiere den Firefox 4 und kann ihn über Empirum auch wieder deinstallieren.

Nur ist es ja aber so, dass ein Benutzer den Browser noch offen hat und dann nicht alles komplett deinstalliert wird.

Mein Setup.inf sieht so aus:

Code: Select all

[SET:Deinstallation]
If "%Src%\helper.exe" <> "" Then "SET:Deinstallation2" EndIf

[SET:Deinstallation2]
If %ErrorLevel% <> "0" Then "SET:DeInstallationError" EndIf
-Call "%ProgramFiles%\Mozilla Firefox\uninstall\helper.exe" /S
-AddMeter -1
Würde z.B.

Code: Select all

[Processes]
Firefox=firefox.exe, Mozilla Firefox, QUERYCLOSEWINDOW CONTINUE
[Set:Product]
Askkillprocesses 10,Firefox
auch auf eine Deinstallation wirken?

User avatar
FruF
Posts: 204
Joined: 26. Jan 2009, 12:33
Contact:

Re: Deinstallation nur wenn Programm nicht geöffnet

Post by FruF » 25. May 2011, 15:10

Jap. Ich machs zwar anders
If DoesProcessExist ("firefox.exe") == "1" Then "popup" EndIf
und in popup wird er hat beendet
Aber das klappt.
Last edited by FruF on 25. May 2011, 17:42, edited 1 time in total.

Pep
Posts: 187
Joined: 24. May 2011, 17:30
Contact:

Re: Deinstallation nur wenn Programm nicht geöffnet

Post by Pep » 25. May 2011, 16:14

und das muss dann bei [Processes] rein oder?

Pep
Posts: 187
Joined: 24. May 2011, 17:30
Contact:

Re: Deinstallation nur wenn Programm nicht geöffnet

Post by Pep » 25. May 2011, 16:59

also ich habe es jetzt so drin:

Code: Select all

[Processes]
Calc=calc.exe,Windows Calculator,QUERYCLOSEWINDOW CONTINUE

[Set:Product]
AskKillProcesses 60,Calc
und ich kann die calc.exe offen haben wir ich will - das Interessiert Empirum absolut gar net.

User avatar
FruF
Posts: 204
Joined: 26. Jan 2009, 12:33
Contact:

Re: Deinstallation nur wenn Programm nicht geöffnet

Post by FruF » 25. May 2011, 17:28

gehts um das allgemeine closen, oder bei der Deinstallation

Pep
Posts: 187
Joined: 24. May 2011, 17:30
Contact:

Re: Deinstallation nur wenn Programm nicht geöffnet

Post by Pep » 26. May 2011, 08:53

Laut Doku habe ich das so verstanden, dass egal ob Installation oder Deinstallation, auf den Prozess geprüft wird.

Konkret geht es gerade darum, dass ich vor einer Deinstallation prüfen will, ob bestimmte Programme offen sind und wenn das der Fall ist, soll der Benutzer einen Dialog bekommen.

Pep
Posts: 187
Joined: 24. May 2011, 17:30
Contact:

Re: Deinstallation nur wenn Programm nicht geöffnet

Post by Pep » 27. May 2011, 12:32

hat keiner eine Idee für mich?

User avatar
FruF
Posts: 204
Joined: 26. Jan 2009, 12:33
Contact:

Re: Deinstallation nur wenn Programm nicht geöffnet

Post by FruF » 27. May 2011, 14:26

Leider keine Ahnung, weil ichs noch nie so gemacht hab ,,, und die Theorie ... bin ich der falsche =)

Pep
Posts: 187
Joined: 24. May 2011, 17:30
Contact:

Re: Deinstallation nur wenn Programm nicht geöffnet

Post by Pep » 27. May 2011, 14:41

OK danke für deine Hilfe.
Habe soeben in der Knowlege Base folgenden Eintrag gefunden:

Solution:

The documentation to this command may be confusing. The name of an executable, for instance ‘calc.exe’, can only be used together with the flag “KILLPROCESS”, for other flags you have to fill in the title of the process window, it is possible to use an expression like “*edit*” (to identify the process window of notepad.exe).

Alternatively, it is possible to use other tools, like Microsoft’s ‘taskkill.exe’, to shut down processes.


Jetzt kommt auch die Abfrage. Aber von dem Support hier bin ich bisher etwas enttäucht.

Post Reply

Return to “Paketierung”

Who is online

Users browsing this forum: No registered users and 17 guests