RunFlag enum

Enum representing various run flags used in application setup.

Each constant corresponds to a specific run flag option that can be used in the setup configuration. These flags control various behaviors during the execution of setup or uninstall processes.

Inheritance
Available extensions

Values

bit32 → const RunFlag

Causes the {sys} constant to map to the 32-bit System directory. Default behavior in 32-bit install mode. Cannot be combined with the shellexec flag.

const RunFlag('32bit')
bit64 → const RunFlag

Causes the {sys} constant to map to the 64-bit System directory. Default behavior in 64-bit install mode. Can only be used on 64-bit Windows. Cannot be combined with the shellexec flag.

const RunFlag('64bit')
dontLogParameters → const RunFlag

If specified, command line parameters for the program will not be included in the log file.

const RunFlag('dontlogparameters')
hideWizard → const RunFlag

If specified, the wizard will be hidden while the program is running.

const RunFlag('hidewizard')
logOutput → const RunFlag

If specified, the output of the program will be included in the log file. Cannot be combined with nowait, runasoriginaluser, shellexec, and waituntilidle flags.

const RunFlag('logoutput')
noWait → const RunFlag

If specified, the process will not wait to finish executing before proceeding to the next entry. Cannot be combined with waituntilidle or waituntilterminated.

const RunFlag('nowait')
postInstall → const RunFlag

Valid only in a Run section. Creates a checkbox on the Setup Completed wizard page for user selection. If the system restarts, the checkbox will not be displayed.

const RunFlag('postinstall')
runAsCurrentUser → const RunFlag

If specified, the spawned process will inherit Setup/Uninstall's user credentials. Default behavior when the postinstall flag is not used. Cannot be combined with runasoriginaluser flag.

const RunFlag('runascurrentuser')
runAsOriginalUser → const RunFlag

Valid only in a Run section. Executes the process with the original user's non-elevated credentials. Ineffective if Setup is run as administrator or from an elevated process. Cannot be combined with runascurrentuser flag.

const RunFlag('runasoriginaluser')
runHidden → const RunFlag

If specified, launches the program in a hidden window. Not recommended for programs that may prompt for user input.

const RunFlag('runhidden')
runMaximized → const RunFlag

If specified, launches the program or document in a maximized window.

const RunFlag('runmaximized')
runMinimized → const RunFlag

If specified, launches the program or document in a minimized window.

const RunFlag('runminimized')
shellExec → const RunFlag

Required if Filename is not a directly executable file. Opens Filename with the application associated with the file type on the user's system. Cannot be combined with nowait, waituntilidle, or waituntilterminated flags.

const RunFlag('shellexec')
skipIfDoesNotExist → const RunFlag

If specified, no error message will be displayed if Filename doesn't exist.

const RunFlag('skipifdoesntexist')
skipIfNotSilent → const RunFlag

Valid only in a Run section. Skips this entry if Setup is not running silently.

const RunFlag('skipifnotsilent')
skipIfSilent → const RunFlag

Valid only in a Run section. Skips this entry if Setup is running silently.

const RunFlag('skipifsilent')
unchecked → const RunFlag

Valid only in a Run section. Initially unchecks the checkbox on the Setup Completed wizard page. Ignored if postinstall flag is not specified.

const RunFlag('unchecked')
waitUntilIdle → const RunFlag

If specified, waits until the process is waiting for user input with no input pending. Cannot be combined with nowait or waituntilterminated.

const RunFlag('waituntilidle')
waitUntilTerminated → const RunFlag

If specified, waits until the process has completely terminated. Default behavior unless using shellexec flag, in which case it is required if you want to wait. Cannot be combined with nowait or waituntilidle.

const RunFlag('waituntilterminated')

Properties

flag String
The flag value.
final
hashCode int
The hash code for this object.
no setterinherited
index int
A numeric identifier for the enumerated value.
no setterinherited
runtimeType Type
A representation of the runtime type of the object.
no setterinherited

Methods

noSuchMethod(Invocation invocation) → dynamic
Invoked when a nonexistent method or property is accessed.
inherited
toString() String
A string representation of this object.
override

Operators

operator ==(Object other) bool
The equality operator.
inherited

Constants

values → const List<RunFlag>
A constant List of the values in this enum, in order of their declaration.