public class RegistryInstallerListener extends AbstractProgressInstallerListener implements CleanupClient
| Modifier and Type | Field and Description |
|---|---|
static String |
SPEC_FILE_NAME
The name of the XML file that specifies the registry entries.
|
| Constructor and Description |
|---|
RegistryInstallerListener(IUnpacker unpacker,
VariableSubstitutor substitutor,
InstallData installData,
UninstallData uninstallData,
Resources resources,
RulesEngine rules,
Housekeeper housekeeper,
RegistryDefaultHandler handler)
Constructs a RegistryInstallerListener.
|
| Modifier and Type | Method and Description |
|---|---|
void |
afterPacks(List<Pack> packs,
ProgressListener listener)
Invoked after packs are installed.
|
void |
cleanUp()
Remove all registry entries on failed installation.
|
protected String |
getUninstallName()
Returns the uninstall name, used to initialise the
RegistryHandler.setUninstallName(String). |
void |
initialise()
Initialises the listener.
|
getInstallData, getMessage, getProgressNotifierId, getProgressNotifiers, notifyProgress, setProgressNotifierafterDir, afterFile, afterPack, beforeDir, beforeFile, beforePack, beforePacks, beforePacks, isFileListenerpublic static final String SPEC_FILE_NAME
public RegistryInstallerListener(IUnpacker unpacker, VariableSubstitutor substitutor, InstallData installData, UninstallData uninstallData, Resources resources, RulesEngine rules, Housekeeper housekeeper, RegistryDefaultHandler handler)
unpacker - the unpackersubstitutor - the variable substituterinstallData - the installation datauninstallData - the uninstallation datarules - the rulesresources - the resourceshousekeeper - the housekeeperhandler - the registry handler referencepublic void initialise()
initialise in interface InstallationListenerinitialise in class AbstractInstallerListenerIzPackException - for any errorpublic void afterPacks(List<Pack> packs, ProgressListener listener)
afterPacks in interface InstallerListenerafterPacks in class AbstractInstallerListenerpacks - the installed packslistener - the progress listenerIzPackException - for any errorpublic void cleanUp()
cleanUp in interface CleanupClientprotected String getUninstallName()
RegistryHandler.setUninstallName(String).
This implementation returns a concatenation of the APP_NAME and APP_VER variables,
separated by a space.Copyright © 2001–2025. All rights reserved.