UninstallAssembly Class

MSBuild

Uninstalls assemblies.


Namespace: MSBuild.Community.Tasks.Install
Assembly: MSBuild.Community.Tasks (in MSBuild.Community.Tasks.dll)

Syntax

Visual Basic (Declaration)
Public Class UninstallAssembly
    Inherits InstallAssembly
C#
public class UninstallAssembly : InstallAssembly
C++
ref class UninstallAssembly : InstallAssembly
J#
public class UninstallAssembly extends InstallAssembly
JScript
public class UninstallAssembly extends InstallAssembly

Example

Uninstall multiple assemblies by specifying the file names:

 Copy Code
            <UninstallAssembly AssemblyFiles="Engine.dll;Presenter.dll" />
            
Unnstall an assembly using the assembly name. Also disable the log file by setting it to a single space:
 Copy Code
            <UninstallAssembly AssemblyNames="Engine,Version=1.5.0.0,Culture=neutral" LogFile=" "/>
            

Remarks

Uses InstallUtil.exe to execute the Uninstall method of Installer classes contained within specified assemblies.

Inheritance Hierarchy

System.Object
   Microsoft.Build.Utilities.Task
      Microsoft.Build.Utilities.ToolTask
         MSBuild.Community.Tasks.Install.InstallAssembly
            MSBuild.Community.Tasks.Install.UninstallAssembly

Thread Safety

Public static (Shared in Visual Basic)staticShared members of this type are safe for multithreaded operations. Instance members are not guaranteed to be thread-safe.

See Also

Syntax based on .NET Framework version 2.0.
Documentation version 1.0.0.0.