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, langpack
AFTER_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, setSpecHelper
private 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
InstallerListener
beforePacks
in interface InstallerListener
beforePacks
in class NativeInstallerListener
idata
- object containing the current installation datanpacks
- number of packs which are defined for this installationhandler
- a handler to the current used UIProgressHandlerjava.lang.Exception
public void afterPacks(AutomatedInstallData idata, AbstractUIProgressHandler handler) throws java.lang.Exception
InstallerListener
afterPacks
in interface InstallerListener
afterPacks
in class SimpleInstallerListener
idata
- object containing the current installation datahandler
- a handler to the current used UIProgressHandlerjava.lang.Exception
private void performPack(XMLElement pack, VariableSubstitutor substitutor) throws java.lang.Exception
pack
- XML elemtent which contains the registry settings for one packjava.lang.Exception
private 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.Exception
private byte[] extractBytes(XMLElement element, java.lang.String byteString) throws java.lang.Exception
java.lang.Exception
private 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.Exception
private int resolveRoot(XMLElement regEntry, java.lang.String root, VariableSubstitutor substitutor) throws java.lang.Exception
java.lang.Exception
private void initializeRegistryHandler(AutomatedInstallData idata) throws java.lang.Exception
java.lang.Exception