|
install4j API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.install4j.api.windows.WinProcesses
public class WinProcesses
Collection of static methods to check for running processes and terminate them.
| Nested Class Summary | |
|---|---|
static class |
WinProcesses.Info
Class that holds information about running processes. |
| Constructor Summary | |
|---|---|
WinProcesses()
|
|
| Method Summary | |
|---|---|
static boolean |
areInstalledLaunchersRunning()
Determine if any of the installed launchers are currently running. |
static boolean |
closeProcesses(int[] processIds,
int timeout)
Tries to close the processes with the given ids by sending a VM_CLOSE message to all visible top-level windows. |
static WinProcesses.Info[] |
getRunningProcesses()
Get a list of all running processes the installer can open. |
static java.lang.String |
getWindowTitle(int processId)
Get the title of one of the visible top-level windows of this process. |
static boolean |
terminateProcesses(int[] processIds)
Terminates the processes with the given ids forcefully. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Constructor Detail |
|---|
public WinProcesses()
| Method Detail |
|---|
public static WinProcesses.Info[] getRunningProcesses()
public static boolean areInstalledLaunchersRunning()
public static java.lang.String getWindowTitle(int processId)
processId - the process id
public static boolean terminateProcesses(int[] processIds)
processIds - the processes to terminate
public static boolean closeProcesses(int[] processIds,
int timeout)
processIds - the processes to terminatetimeout - the maximum time to wait for the processes to terminate after the message has been sent in milliseconds
|
install4j API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||