Click or drag to resize

SetupActions Class

Provides actions allowing the management of applications using the Ticup Setup.
Inheritance Hierarchy
SystemObject
  MicaSystems.Utils.SetupSetupActions

Namespace:  MicaSystems.Utils.Setup
Assembly:  MicaSystems.Utils (in MicaSystems.Utils.dll) Version: 1.0.0.0 (1.1.0.123)
Syntax
C#
public static class SetupActions

The SetupActions type exposes the following members.

Properties
  NameDescription
Public propertyStatic memberEnableConsoleOutput
Gets or sets a value indicating whether actions can send progression and information messages to the console.
Public propertyStatic memberStepDelay
Gets or sets the delay duration (in mms) occuring between (un)installation steps.

Default: disabled (0).

As some installation are almost instantaneous, it can be a good idea to insert a little delay between steps (e.g. 50ms) so the user can see the progression.

Top
Methods
  NameDescription
Public methodStatic memberCheckProcessNotRunning
Checks a process is not started, throw if running. Requires UAC!
Public methodStatic memberExtractConfigFromSetup(String)
Gets a setup config from a MSS file.
Public methodStatic memberExtractConfigFromSetup(ArchiveExtractor)
Gets a setup config from a MSS file.
Public methodStatic memberGetInstallationPath
Tries to get the path of the existing installation of an application. If not found, returns null. This method will also try to find the path of previous installation types (MSI/InstallShield).
Public methodStatic memberGetInstallationPath_FromConfig
Tries to get the path of existing installation of an application (identified by its config file). If not found, returns null. This method will also try to find the path of previous installation types (MSI/InstallShield).
Public methodStatic memberGetInstallationPath_FromSetup
Tries to get the path of existing installation of an application (identified by its MSS). If not found, returns null. This method will also try to find the path of previous installation types (MSI/InstallShield).
Public methodStatic memberGetInstallationPathAndOrigin
Tries to get the path of the existing installation of an application. If not found, returns null. This method will also try to find the path of previous installation types (MSI/InstallShield).
Public methodStatic memberGetInstallationPathAndOrigin_FromConfig
Tries to get the path of existing installation of an application (identified by its config file). If not found, returns null. This method will also try to find the path of previous installation types (MSI/InstallShield).
Public methodStatic memberGetInstallationPathAndOrigin_FromSetup
Tries to get the path of existing installation of an application (identified by its MSS). If not found, returns null. This method will also try to find the path of previous installation types (MSI/InstallShield).
Public methodStatic memberInstall
Installs the specified Ticup Setup file on the current system. This method can also be called for reparation and update. Please note the installationFolderPath is required for a first installation.
Public methodStatic memberInstallInDefaultFolder
Installs the specified Ticup Setup file on the current system. This method can also be called for reparation and update. Please note the installationFolderPath is required for a first installation.
Public methodStatic memberPackageSetup
Packages built files in a Ticup Setup (.mss) file.
Public methodStatic memberUninstall
Uninstalls an application based on the specified setup file.

Very important note: this method starts a file suppression process waiting a few second before deleting the application files. The default delay is 5 seconds and can be adapted. If the current executable is located in the application directory, it should be closed within that delay.

Public methodStatic memberUnpackageSetup
Unpackages a Ticup Setup (.mss) file inside a given folder.
Top
Fields
  NameDescription
Public fieldStatic memberSetupManagerFileName
Name of a file packaged and installed with application. That file is used to repair or uninstall the application and is usually the Ticup setup console executable.
Top
See Also