java.lang.Objectcom.install4j.api.ApplicationRegistry
public class ApplicationRegistry
The class provides information about applications installed with install4j.
Nested Class Summary | |
---|---|
static interface |
ApplicationRegistry.ApplicationInfo
Provides information about an application installed by install4j. |
Constructor Summary | |
---|---|
ApplicationRegistry()
|
Method Summary | |
---|---|
static boolean |
checkApplicationId(java.io.File dir)
Returns true if the application can be safely installed into the given directory. |
static ApplicationRegistry.ApplicationInfo[] |
getAddOnApplicationInfoByDir(java.io.File dir)
Checks if the specified directory contains an application installed by install4j and retrieves information about the add-on installers in it. |
static ApplicationRegistry.ApplicationInfo |
getApplicationInfoByDir(java.io.File dir)
Checks if the specified directory contains an application installed by install4j and retrieves information about it. |
static ApplicationRegistry.ApplicationInfo[] |
getApplicationInfoById(java.lang.String id)
Retrieves information about an application installed by install4j via its application id. |
static boolean |
isUpdateDirectory(java.io.File dir)
Returns true if this application is already installed in the given directory. |
Methods inherited from class java.lang.Object |
---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
Constructor Detail |
---|
public ApplicationRegistry()
Method Detail |
---|
public static boolean checkApplicationId(java.io.File dir)
dir
- the directory to be checked
public static boolean isUpdateDirectory(java.io.File dir)
dir
- the directory to be checked
public static ApplicationRegistry.ApplicationInfo[] getApplicationInfoById(java.lang.String id)
id
- the application id
public static ApplicationRegistry.ApplicationInfo getApplicationInfoByDir(java.io.File dir)
dir
- the base directory to check
public static ApplicationRegistry.ApplicationInfo[] getAddOnApplicationInfoByDir(java.io.File dir)
dir
- the base directory to check