AGB  ·  Datenschutz  ·  Impressum  







Anmelden
Nützliche Links
Registrieren
Zurück Delphi-PRAXiS Programmierung allgemein Programmieren allgemein Inno: Deinstallation abbrechen wenn Anwendung noch läuft.
Thema durchsuchen
Ansicht
Themen-Optionen

Inno: Deinstallation abbrechen wenn Anwendung noch läuft.

Ein Thema von Heino Piper · begonnen am 15. Feb 2005 · letzter Beitrag vom 15. Feb 2005
 
MathiasSimmack
(Gast)

n/a Beiträge
 
#4

Re: Inno: Deinstallation abbrechen wenn Anwendung noch läuft

  Alt 15. Feb 2005, 14:35
Habe ich doch gesagt.
Zitat von Die Inno Hilfe:
This directive is used to prevent the user from installing new versions of an application while the application is still running, and to prevent the user from uninstalling a running application. It specifies the names of one or more named mutexes (multiple mutexes are separated by commas), which Setup and Uninstall will check for at startup. If any exist, Setup/Uninstall will display the message: "[Setup or Uninstall] has detected that [AppName] is currently running. Please close all instances of it now, then click OK to continue, or Cancel to exit."
Es geht um "AppMutex", btw.

Hier übrigens für alle Interessenten die Details, wie man mit JScript und VBScript (und WMI) Programme kicken kann
Code:
Dim Processes, Process

Set Processes = GetObject("winmgmts:{impersonationLevel=impersonate}!\\.\root\cimv2").ExecQuery( _
   "Select * from Win32_Process WHERE Name='notepad.exe'")
' Mein herzlicher Gruß geht an die SQL-Freunde :o)

For Each Process in Processes
   WScript.Echo "killing " & Process.Name
   Process.Terminate
Next
Code:
var Processes = GetObject("winmgmts:{impersonationLevel=impersonate}!\\\\.\\root\\cimv2").ExecQuery(
        "Select * from Win32_Process WHERE Name='notepad.exe'");

for(Process = new Enumerator(Processes); !Process.atEnd(); Process.moveNext())
{
   WScript.Echo("killing " + Process.item().name);
   Process.item().Terminate();
}
  Mit Zitat antworten Zitat
 


Forumregeln

Es ist dir nicht erlaubt, neue Themen zu verfassen.
Es ist dir nicht erlaubt, auf Beiträge zu antworten.
Es ist dir nicht erlaubt, Anhänge hochzuladen.
Es ist dir nicht erlaubt, deine Beiträge zu bearbeiten.

BB-Code ist an.
Smileys sind an.
[IMG] Code ist an.
HTML-Code ist aus.
Trackbacks are an
Pingbacks are an
Refbacks are aus

Gehe zu:

Impressum · AGB · Datenschutz · Nach oben
Alle Zeitangaben in WEZ +1. Es ist jetzt 15:55 Uhr.
Powered by vBulletin® Copyright ©2000 - 2025, Jelsoft Enterprises Ltd.
LinkBacks Enabled by vBSEO © 2011, Crawlability, Inc.
Delphi-PRAXiS (c) 2002 - 2023 by Daniel R. Wolf, 2024-2025 by Thomas Breitkreuz