|
install4j API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||
java.lang.Objectcom.install4j.api.windows.WinRegistry
public class WinRegistry
Collection of static methods to access the Microsoft Windows registry.
| Nested Class Summary | |
|---|---|
static class |
WinRegistry.ExpandString
Class to represent Strings with type REG_EXPAND_SZ |
| Field Summary | |
|---|---|
static int |
HKEY_CLASSES_ROOT
Identifies the root registry key HKEY_CLASSES_ROOT. |
static int |
HKEY_CURRENT_CONFIG
Identifies the root registry key HKEY_CURRENT_CONFIG. |
static int |
HKEY_CURRENT_USER
Identifies the root registry key HKEY_CURRENT_USER. |
static int |
HKEY_LOCAL_MACHINE
Identifies the root registry key HKEY_LOCAL_MACHINE. |
static int |
HKEY_USERS
Identifies the root registry key HKEY_USERS. |
| Method Summary | |
|---|---|
static boolean |
createKey(int root,
java.lang.String keyName)
Creates a registry key. |
static void |
deleteKey(int root,
java.lang.String keyName,
boolean onlyIfEmpty)
Deletes a registry key. |
static void |
deleteValue(int root,
java.lang.String keyName,
java.lang.String valueName)
Deletes a registry value. |
static java.lang.String[] |
getSubKeyNames(int root,
java.lang.String keyName)
Retrieves the sub keys of a registry key. |
static java.lang.Object |
getValue(int root,
java.lang.String keyName,
java.lang.String valueName)
Retrieves a registry value. |
static boolean |
keyExists(int root,
java.lang.String keyName)
Checks if a registry key exists. |
static boolean |
setValue(int root,
java.lang.String keyName,
java.lang.String valueName,
java.lang.Object value)
Sets a registry value. |
| Methods inherited from class java.lang.Object |
|---|
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait |
| Field Detail |
|---|
public static final int HKEY_CLASSES_ROOT
public static final int HKEY_CURRENT_USER
public static final int HKEY_LOCAL_MACHINE
public static final int HKEY_USERS
public static final int HKEY_CURRENT_CONFIG
| Method Detail |
|---|
public static boolean keyExists(int root,
java.lang.String keyName)
root - one of the HKEY_* constants.keyName - the name of the key without a leading backslash.
public static boolean createKey(int root,
java.lang.String keyName)
root - one of the HKEY_* constants.keyName - the name of the key without a leading backslash.
public static java.lang.Object getValue(int root,
java.lang.String keyName,
java.lang.String valueName)
root - one of the HKEY_* constants.keyName - the name of the key without a leading backslash.valueName - the name of the registry value.
public static boolean setValue(int root,
java.lang.String keyName,
java.lang.String valueName,
java.lang.Object value)
root - one of the HKEY_* constantskeyName - the name of the key without a leading backslash.valueName - the name of the registry value.value - an instance of one of the following classes: String, Integer,
String[], byte[], WinRegistry.ExpandString.
public static void deleteValue(int root,
java.lang.String keyName,
java.lang.String valueName)
root - one of the HKEY_* constants.keyName - the name of the key without a leading backslash.valueName - the name of the registry value.
public static void deleteKey(int root,
java.lang.String keyName,
boolean onlyIfEmpty)
root - one of the HKEY_* constants.keyName - the name of the key without a leading backslash.onlyIfEmpty - if true, the method will delete the key only if the key contains no
values and no subkey.
public static java.lang.String[] getSubKeyNames(int root,
java.lang.String keyName)
root - one of the HKEY_* constants.keyName - the name of the key without a leading backslash.
|
install4j API | ||||||||
| PREV CLASS NEXT CLASS | FRAMES NO FRAMES | ||||||||
| SUMMARY: NESTED | FIELD | CONSTR | METHOD | DETAIL: FIELD | CONSTR | METHOD | ||||||||