Class GetWindowsRegistry
- java.lang.Object
-
- com.zerog.ia.auto.project.ProjectObject
-
- com.zerog.ia.auto.project.InstallableObject
-
- com.zerog.ia.auto.project.actions.Action
-
- com.zerog.ia.auto.project.actions.GetWindowsRegistry
-
- All Implemented Interfaces:
DBHostable,GeneralAction,JEEHostable,OSHostable,Referenceable
public final class GetWindowsRegistry extends Action implements GeneralAction
Accesses information stored in the Windows Registry. The action retrieves the value or checks the existence of a key/value and then stores that information in InstallAnywhere variables to be used in the installation.
Tip: If you are targeting 64-bit systems, set theaccessSpecificRegistrytotrueand then set thetarget64BitRegistryproperty to define whether you want the action to reference the 64-bit or 32-bit portion of the registry.
-
-
Constructor Summary
Constructors Constructor Description GetWindowsRegistry()
-
Method Summary
All Methods Instance Methods Concrete Methods Modifier and Type Method Description booleangetAccessSpecificRegistry()Whether to access specific registry view (64-bit systems).java.lang.StringgetComment()The action's comment.java.lang.StringgetRegistryKey()The registry key to get.booleangetTarget64BitRegistry()Whether to target 64-bit registry view.java.lang.StringgetValueName()The name of the value to get from the registry.java.lang.StringgetVarNameForExist()The name of the variable to be set if the key exists.java.lang.StringgetVarNameForValue()The name of the variable to store the value.voidsetAccessSpecificRegistry(boolean access)Whether to access specific registry view (64-bit systems).voidsetComment(java.lang.String comment)Defines a comment to the action.voidsetRegistryKey(java.lang.String s)The registry key to get.voidsetTarget64BitRegistry(boolean target64BitReg)Whether to target 64-bit registry view.voidsetValueName(java.lang.String valueName)The name of the value to get from the registry.voidsetVarNameForExist(java.lang.String variable)The name of the variable to be set if the key exists.voidsetVarNameForValue(java.lang.String variable)The name of the variable to store the value.-
Methods inherited from class com.zerog.ia.auto.project.InstallableObject
getBelongsToUninstallPhase, getRollbackEnabledCancel, getRollbackEnabledError, getRuleExpression, getRules, getRulesLogicalOperation, getTagsInInstallPiece, setBelongsToUninstallPhase, setRollbackEnabledCancel, setRollbackEnabledError, setRuleExpression, setRulesLogicalOperation, setTagsInInstallPiece
-
Methods inherited from class com.zerog.ia.auto.project.ProjectObject
equals, getReferenceID, hashCode, setReferenceID
-
-
-
-
Method Detail
-
getComment
public java.lang.String getComment()
The action's comment.
-
setComment
public void setComment(java.lang.String comment)
Defines a comment to the action. (ex: HKEY_LOCAL_MACHINE\\SOFTWARE\\InstallAnywhere)
-
getRegistryKey
public java.lang.String getRegistryKey()
The registry key to get.
-
setRegistryKey
public void setRegistryKey(java.lang.String s)
The registry key to get.
-
getValueName
public java.lang.String getValueName()
The name of the value to get from the registry.
-
setValueName
public void setValueName(java.lang.String valueName)
The name of the value to get from the registry. (ex: CurrentVersion)
-
setTarget64BitRegistry
public void setTarget64BitRegistry(boolean target64BitReg)
Whether to target 64-bit registry view.- See Also:
setAccessSpecificRegistry(boolean)
-
getTarget64BitRegistry
public boolean getTarget64BitRegistry()
Whether to target 64-bit registry view.
-
setAccessSpecificRegistry
public void setAccessSpecificRegistry(boolean access)
Whether to access specific registry view (64-bit systems).- See Also:
setTarget64BitRegistry(boolean)
-
getAccessSpecificRegistry
public boolean getAccessSpecificRegistry()
Whether to access specific registry view (64-bit systems).
-
getVarNameForValue
public java.lang.String getVarNameForValue()
The name of the variable to store the value.
-
setVarNameForValue
public void setVarNameForValue(java.lang.String variable)
The name of the variable to store the value. (ex: $IA_CURRENT_VERSION$)
-
getVarNameForExist
public java.lang.String getVarNameForExist()
The name of the variable to be set if the key exists.
-
setVarNameForExist
public void setVarNameForExist(java.lang.String variable)
The name of the variable to be set if the key exists. (ex: $IA_REGKEY_EXISTS$)
-
-