Class 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 the accessSpecificRegistry to true and then set the target64BitRegistry property to define whether you want the action to reference the 64-bit or 32-bit portion of the registry.
    • Constructor Detail

      • GetWindowsRegistry

        public GetWindowsRegistry()
    • 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$)