public class RegistryInstallerListener extends NativeInstallerListener
| Modifier and Type | Field and Description |
|---|---|
private static java.lang.String |
REG_BASENAME |
private static java.lang.String |
REG_BIN |
private static java.lang.String |
REG_DATA |
private static java.lang.String |
REG_DWORD |
private static java.lang.String |
REG_KEY |
private static java.lang.String |
REG_KEYPATH |
private static java.lang.String |
REG_MULTI |
private static java.lang.String |
REG_OVERRIDE |
private static java.lang.String |
REG_ROOT |
private static java.lang.String |
REG_STRING |
private static java.lang.String |
REG_VALUE |
private static java.lang.String |
SPEC_FILE_NAME
The name of the XML file that specifies the registry entries.
|
doInformProgressBar, LANG_FILE_NAME, langpackAFTER_DIR, AFTER_FILE, AFTER_PACK, AFTER_PACKS, BEFORE_DIR, BEFORE_FILE, BEFORE_PACK, BEFORE_PACKS| Constructor and Description |
|---|
RegistryInstallerListener()
Default constructor.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPacks(AutomatedInstallData idata,
AbstractUIProgressHandler handler)
This method will be called from the unpacker after the installation of all packs was
performed.
|
void |
beforePacks(AutomatedInstallData idata,
java.lang.Integer npacks,
AbstractUIProgressHandler handler)
This method will be called from the unpacker before the installation of all packs will be
performed.
|
private byte[] |
extractBytes(XMLElement element,
java.lang.String byteString) |
private void |
initializeRegistryHandler(AutomatedInstallData idata) |
private void |
performKeySetting(XMLElement regEntry,
VariableSubstitutor substitutor)
Perform the setting of one key.
|
private void |
performPack(XMLElement pack,
VariableSubstitutor substitutor)
Performs the registry settings for the given pack.
|
private void |
performValueSetting(XMLElement regEntry,
VariableSubstitutor substitutor)
Perform the setting of one value.
|
private int |
resolveRoot(XMLElement regEntry,
java.lang.String root,
VariableSubstitutor substitutor) |
afterDir, afterFile, afterPack, beforeDir, beforeFile, beforePack, getInstalldata, getMsg, getProgressBarCallerCount, getProgressBarCallerId, getSpecHelper, informProgressBar, isFileListener, setInstalldata, setProgressBarCaller, setSpecHelperprivate static final java.lang.String SPEC_FILE_NAME
private static final java.lang.String REG_KEY
private static final java.lang.String REG_VALUE
private static final java.lang.String REG_ROOT
private static final java.lang.String REG_BASENAME
private static final java.lang.String REG_KEYPATH
private static final java.lang.String REG_DWORD
private static final java.lang.String REG_STRING
private static final java.lang.String REG_MULTI
private static final java.lang.String REG_BIN
private static final java.lang.String REG_DATA
private static final java.lang.String REG_OVERRIDE
public RegistryInstallerListener()
public void beforePacks(AutomatedInstallData idata, java.lang.Integer npacks, AbstractUIProgressHandler handler) throws java.lang.Exception
InstallerListenerbeforePacks in interface InstallerListenerbeforePacks in class NativeInstallerListeneridata - object containing the current installation datanpacks - number of packs which are defined for this installationhandler - a handler to the current used UIProgressHandlerjava.lang.Exceptionpublic void afterPacks(AutomatedInstallData idata, AbstractUIProgressHandler handler) throws java.lang.Exception
InstallerListenerafterPacks in interface InstallerListenerafterPacks in class SimpleInstallerListeneridata - object containing the current installation datahandler - a handler to the current used UIProgressHandlerjava.lang.Exceptionprivate void performPack(XMLElement pack, VariableSubstitutor substitutor) throws java.lang.Exception
pack - XML elemtent which contains the registry settings for one packjava.lang.Exceptionprivate void performValueSetting(XMLElement regEntry, VariableSubstitutor substitutor) throws java.lang.Exception
regEntry - element which contains the description of the value to be setsubstitutor - variable substitutor to be used for revising the regEntry contentsjava.lang.Exceptionprivate byte[] extractBytes(XMLElement element, java.lang.String byteString) throws java.lang.Exception
java.lang.Exceptionprivate void performKeySetting(XMLElement regEntry, VariableSubstitutor substitutor) throws java.lang.Exception
regEntry - element which contains the description of the key to be createdsubstitutor - variable substitutor to be used for revising the regEntry contentsjava.lang.Exceptionprivate int resolveRoot(XMLElement regEntry, java.lang.String root, VariableSubstitutor substitutor) throws java.lang.Exception
java.lang.Exceptionprivate void initializeRegistryHandler(AutomatedInstallData idata) throws java.lang.Exception
java.lang.Exception