public class RegistryInstallerListener extends NativeInstallerListener
Modifier and Type | Field and Description |
---|---|
private static String |
REG_BASENAME |
private static String |
REG_BIN |
private static String |
REG_DATA |
private static String |
REG_DWORD |
private static String |
REG_KEY |
private static String |
REG_KEYPATH |
private static String |
REG_MULTI |
private static String |
REG_OVERRIDE |
private static String |
REG_ROOT |
private static String |
REG_STRING |
private static String |
REG_VALUE |
private static 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,
Integer npacks,
AbstractUIProgressHandler handler)
This method will be called from the unpacker before the installation of all packs will be
performed.
|
private byte[] |
extractBytes(net.n3.nanoxml.XMLElement element,
String byteString) |
private void |
initializeRegistryHandler(AutomatedInstallData idata) |
private void |
performKeySetting(net.n3.nanoxml.XMLElement regEntry,
VariableSubstitutor substitutor)
Perform the setting of one key.
|
private void |
performPack(net.n3.nanoxml.XMLElement pack,
VariableSubstitutor substitutor)
Performs the registry settings for the given pack.
|
private void |
performValueSetting(net.n3.nanoxml.XMLElement regEntry,
VariableSubstitutor substitutor)
Perform the setting of one value.
|
private int |
resolveRoot(net.n3.nanoxml.XMLElement regEntry,
String root,
VariableSubstitutor substitutor) |
afterDir, afterFile, afterPack, beforeDir, beforeFile, beforePack, getInstalldata, getMsg, getProgressBarCallerCount, getProgressBarCallerId, getSpecHelper, informProgressBar, isFileListener, setInstalldata, setProgressBarCaller, setSpecHelper
private static final String SPEC_FILE_NAME
private static final String REG_KEY
private static final String REG_VALUE
private static final String REG_ROOT
private static final String REG_BASENAME
private static final String REG_KEYPATH
private static final String REG_DWORD
private static final String REG_STRING
private static final String REG_MULTI
private static final String REG_BIN
private static final String REG_DATA
private static final String REG_OVERRIDE
public RegistryInstallerListener()
public void beforePacks(AutomatedInstallData idata, Integer npacks, AbstractUIProgressHandler handler) throws 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 UIProgressHandlerException
public void afterPacks(AutomatedInstallData idata, AbstractUIProgressHandler handler) throws Exception
InstallerListener
afterPacks
in interface InstallerListener
afterPacks
in class SimpleInstallerListener
idata
- object containing the current installation datahandler
- a handler to the current used UIProgressHandlerException
private void performPack(net.n3.nanoxml.XMLElement pack, VariableSubstitutor substitutor) throws Exception
pack
- XML elemtent which contains the registry settings for one packException
private void performValueSetting(net.n3.nanoxml.XMLElement regEntry, VariableSubstitutor substitutor) throws Exception
regEntry
- element which contains the description of the value to be setsubstitutor
- variable substitutor to be used for revising the regEntry contentsException
private byte[] extractBytes(net.n3.nanoxml.XMLElement element, String byteString) throws Exception
Exception
private void performKeySetting(net.n3.nanoxml.XMLElement regEntry, VariableSubstitutor substitutor) throws Exception
regEntry
- element which contains the description of the key to be createdsubstitutor
- variable substitutor to be used for revising the regEntry contentsException
private int resolveRoot(net.n3.nanoxml.XMLElement regEntry, String root, VariableSubstitutor substitutor) throws Exception
Exception
private void initializeRegistryHandler(AutomatedInstallData idata) throws Exception
Exception
WebARTS Library Licensed Under the GNU - General Public License. Other Libraries licensed under their respective Open Source Licenses