InstallSystem

Everything drift install and drift uninstall need from the operating system.

Inheritors

Functions

Link copied to clipboard
abstract fun broadcastEnvironment()
Link copied to clipboard
abstract fun canWrite(directory: String): Boolean
Link copied to clipboard
abstract fun exists(path: String): Boolean
Link copied to clipboard
abstract fun isDirectory(path: String): Boolean
Link copied to clipboard
abstract fun isPrivileged(): Boolean
Link copied to clipboard
abstract fun makeDirectory(path: String): Boolean
Link copied to clipboard
abstract fun read(path: String): ByteArray?
Link copied to clipboard
abstract fun readPath(machine: Boolean): RegistryValue?
Link copied to clipboard
abstract fun remove(path: String): Boolean
Link copied to clipboard
abstract fun removeAfterExit(paths: List<String>, directories: List<String>): Boolean

Deletes paths and then any empty directories once this process has exited.

Link copied to clipboard
abstract fun removeDirectory(path: String): Boolean

Removes a directory only when it is empty.

Link copied to clipboard
abstract fun rename(from: String, to: String): Boolean

Moves from over to in one step.

Link copied to clipboard
abstract fun selfPath(): String?

The path of the running executable, or null when it cannot be installed.

Link copied to clipboard
abstract fun write(path: String, bytes: ByteArray, executable: Boolean = false): Boolean

Creates or truncates path in place, so a symlinked profile keeps its target.

Link copied to clipboard
abstract fun writePath(machine: Boolean, value: RegistryValue?): Boolean

Writes the Path value; null deletes it.