Click or drag to resize

SetupActionsUninstall Method

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.

Namespace:  MicaSystems.Utils.Setup
Assembly:  MicaSystems.Utils (in MicaSystems.Utils.dll) Version: 1.0.0.0 (1.1.0.123)
Syntax
C#
public static void Uninstall(
	string setupFilePath,
	SetupActionsProgressEventHandler progressEvent = null,
	int fileSuppressionDelay = 5
)

Parameters

setupFilePath
Type: SystemString
The path of the .mss file. Usually located in the installation folder, but can be an equivalent one located somewhere else. Note: the provided path can also target the configuration file.
progressEvent (Optional)
Type: MicaSystems.Utils.SetupSetupActionsProgressEventHandler
The progression change event.
fileSuppressionDelay (Optional)
Type: SystemInt32
The file suppression delay.
See Also