public class ExternalFile
extends java.io.File
If you use ExternalFile as the property type, the install4j GUI will show a regular file chooser for the property that lets you select files from arbitrary locations. The selected file will be packaged with the installer during the compilation phase. The name of the file is changed to to a unique name during the compilation. It will be available in a temporary directory when the installer or uninstaller is started and extracted to the .install4j directory in the installation directory by the "Install files" action.
Note:At runtime, you have to call Context.getExternalFile to transform the property to an absolute file.
Context.getExternalFile(ExternalFile, boolean)
,
Serialized FormConstructor and Description |
---|
ExternalFile(java.lang.String pathname)
The constructor will be invoked by the framework.
|
Modifier and Type | Method and Description |
---|---|
boolean |
equals(java.lang.Object obj) |
canExecute, canRead, canWrite, compareTo, createNewFile, createTempFile, createTempFile, delete, deleteOnExit, exists, getAbsoluteFile, getAbsolutePath, getCanonicalFile, getCanonicalPath, getFreeSpace, getName, getParent, getParentFile, getPath, getTotalSpace, getUsableSpace, hashCode, isAbsolute, isDirectory, isFile, isHidden, lastModified, length, list, list, listFiles, listFiles, listFiles, listRoots, mkdir, mkdirs, renameTo, setExecutable, setExecutable, setLastModified, setReadable, setReadable, setReadOnly, setWritable, setWritable, toPath, toString, toURI, toURL