Package com.install4j.api.context
Enum UninstallMode
- java.lang.Object
-
- java.lang.Enum<UninstallMode>
-
- com.install4j.api.context.UninstallMode
-
- All Implemented Interfaces:
java.io.Serializable
,java.lang.Comparable<UninstallMode>
public enum UninstallMode extends java.lang.Enum<UninstallMode>
Enumeration class that represents the different ways how install4j can handle the uninstallation of a file.- See Also:
FileOptions
-
-
Enum Constant Summary
Enum Constants Enum Constant Description ALWAYS
Indicates that the uninstaller will always delete this file.ALWAYS_BUT_NOT_FOR_UPDATE
Indicates that the destination file won't be deleted when the uninstaller runs as part of an update.IF_CREATED
Indicates that if the destination file was created by the installer it will be deleted for uninstallation.IF_CREATED_BUT_NOT_FOR_UPDATE
Indicates that the destination file won't be deleted when the uninstaller runs as part of an update.NEVER
Indicates that the destination file won't be deleted for uninstallation.
-
Method Summary
All Methods Static Methods Instance Methods Concrete Methods Modifier and Type Method Description static UninstallMode
getFromIntValue(int uninstall)
Convert int value to constant.int
getIntValue()
Convert to an int value.java.lang.String
toString()
static UninstallMode
valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name.static UninstallMode[]
values()
Returns an array containing the constants of this enum type, in the order they are declared.
-
-
-
Enum Constant Detail
-
IF_CREATED
public static final UninstallMode 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
public static final UninstallMode NEVER
Indicates that the destination file won't be deleted for uninstallation.
-
ALWAYS
public static final UninstallMode ALWAYS
Indicates that the uninstaller will always delete this file. Handle with care.
-
IF_CREATED_BUT_NOT_FOR_UPDATE
public static final UninstallMode 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
public static final UninstallMode 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 Detail
-
values
public static UninstallMode[] values()
Returns an array containing the constants of this enum type, in the order they are declared. This method may be used to iterate over the constants as follows:for (UninstallMode c : UninstallMode.values()) System.out.println(c);
- Returns:
- an array containing the constants of this enum type, in the order they are declared
-
valueOf
public static UninstallMode valueOf(java.lang.String name)
Returns the enum constant of this type with the specified name. The string must match exactly an identifier used to declare an enum constant in this type. (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:
java.lang.IllegalArgumentException
- if this enum type has no constant with the specified namejava.lang.NullPointerException
- if the argument is null
-
getFromIntValue
public static UninstallMode getFromIntValue(int uninstall)
Convert int value to constant.- Parameters:
uninstall
- the int value- Returns:
- the constant
-
toString
public java.lang.String toString()
- Overrides:
toString
in classjava.lang.Enum<UninstallMode>
-
getIntValue
public int getIntValue()
Convert to an int value.- Returns:
- the int value
-
-