Note that there are some explanatory texts on larger screens.

plurals
  1. PO
    text
    copied!<p>Check these</p> <p><a href="http://www.jrsoftware.org/iskb.php?mutexsessions" rel="noreferrer">Inno Setup: Detect instances running in any user session with AppMutex</a></p> <p><a href="http://www.vincenzo.net/isxkb/index.php?title=Application_considerations#Application_is_running" rel="noreferrer">Inno Setup: Is application running?</a></p> <p><a href="http://www.vincenzo.net/isxkb/index.php?title=Detect_if_an_application_is_running" rel="noreferrer">Inno Setup: Detect if an application is running</a></p> <p>There are several ways. If your program defines a mutex use</p> <pre><code>[Setup] AppMutex=MyMutexName </code></pre> <p>or for a specified mutex in the <code>Code</code> section</p> <pre><code>function CheckForMutexes (Mutexes: String): Boolean; </code></pre> <p>You could also use</p> <pre><code>function FindWindowByClassName (const ClassName: String): Longint; </code></pre> <p>to get the window handle by class name and send it messages.</p> <p>Or get it by the name</p> <pre><code>function FindWindowByWindowName (const WindowName: String): Longint; </code></pre> <p>Or you use one of several DLL files for this specific use case</p> <ul> <li><a href="http://www.vincenzo.net/isxkb/index.php?title=PSVince" rel="noreferrer">PSVince</a></li> <li><a href="http://nsis.sourceforge.net/FindProcDLL_plug-in" rel="noreferrer">FindProcDLL</a></li> </ul> <p>Or do it yourself after reading</p> <p><a href="http://support.microsoft.com/kb/178893/en-us" rel="noreferrer">How To Terminate an Application "Cleanly" in Win32</a></p> <p><a href="http://support.microsoft.com/kb/175030/de" rel="noreferrer">How To Enumerate Applications Using Win32 APIs</a> (this one links to the german version as for some reason I can't find the english version of KB175030</p> <p>or try the google translated version of the KB175030-DE</p> <p><a href="http://translate.google.com/translate?js=y&amp;prev=_t&amp;hl=de&amp;ie=UTF-8&amp;u=http%3A%2F%2Fsupport.microsoft.com%2Fkb%2F175030%2Fde&amp;sl=de&amp;tl=en&amp;history_state0=&amp;swap=1" rel="noreferrer">KB175030 DE -> EN</a></p>
 

Querying!

 
Guidance

SQuiL has stopped working due to an internal error.

If you are curious you may find further information in the browser console, which is accessible through the devtools (F12).

Reload