Package com.install4j.api.context
Enum Class UninstallMode
- All Implemented Interfaces:
Serializable
,Comparable<UninstallMode>
,Constable
Enumeration class that represents the different ways how install4j can handle the uninstallation of a file.
- See Also:
-
Nested Class Summary
Nested classes/interfaces inherited from class java.lang.Enum
Enum.EnumDesc<E extends Enum<E>>
-
Enum Constant Summary
Enum ConstantDescriptionIndicates that the uninstaller will always delete this file.Indicates that the destination file won't be deleted when the uninstaller runs as part of an update.Indicates that if the destination file was created by the installer, it will be deleted for uninstallation.Indicates that the destination file won't be deleted when the uninstaller runs as part of an update.Indicates that the destination file won't be deleted for uninstallation. -
Method Summary
Modifier and TypeMethodDescriptionstatic UninstallMode
getFromIntValue
(int uninstall) Convert int value to constant.int
Convert to an int value.toString()
static UninstallMode
Returns the enum constant of this class with the specified name.static UninstallMode[]
values()
Returns an array containing the constants of this enum class, in the order they are declared.
-
Enum Constant Details
-
IF_CREATED
Indicates that if the destination file was created by the installer, it will be deleted for uninstallation. This is the default setting. -
NEVER
Indicates that the destination file won't be deleted for uninstallation. -
ALWAYS
Indicates that the uninstaller will always delete this file. Handle with care. -
IF_CREATED_BUT_NOT_FOR_UPDATE
Indicates that the destination file won't be deleted when the uninstaller runs as part of an update. Otherwise it behaves likeIF_CREATED
. -
ALWAYS_BUT_NOT_FOR_UPDATE
Indicates that the destination file won't be deleted when the uninstaller runs as part of an update. Otherwise it behaves likeALWAYS
.
-
-
Method Details
-
values
Returns an array containing the constants of this enum class, in the order they are declared.- Returns:
- an array containing the constants of this enum class, in the order they are declared
-
valueOf
Returns the enum constant of this class with the specified name. The string must match exactly an identifier used to declare an enum constant in this class. (Extraneous whitespace characters are not permitted.)- Parameters:
name
- the name of the enum constant to be returned.- Returns:
- the enum constant with the specified name
- Throws:
IllegalArgumentException
- if this enum class has no constant with the specified nameNullPointerException
- if the argument is null
-
getFromIntValue
Convert int value to constant.- Parameters:
uninstall
- the int value- Returns:
- the constant
-
toString
- Overrides:
toString
in classEnum<UninstallMode>
-
getIntValue
public int getIntValue()Convert to an int value.- Returns:
- the int value
-