CallbackRegistry

Control registry operations in Windows and .NET applications

CallbackRegistry.Uninstall method

Filter:

Pascal    C++ (Lib)    C++ (VCL)    C++ (.NET)    C#    VB.NET   

CallbackRegistry     See also    

Overview

Uninstalls the driver from the system

Declaration

[Pascal]
    class procedure Uninstall( CabFileName : TCBString; ProductName : AnsiString; InstalledPath: string; var RebootNeeded : boolean);

[C++ (Lib)]
    static void Uninstall( const wchar_t * CabFileName, LPCSTR ProductName, LPCWSTR InstalledPath, LPBOOL RebootNeeded);

[C++ (VCL)]
    static void __fastcall Uninstall(__classid(TCallbackRegistry), TCBString CabFileName, AnsiString ProductName, TCBString InstalledPath, bool &RebootNeeded);

[C++ (.NET)]
    static void Uninstall( String^ CabFileName, String^ ProductName, String^ InstalledPath, bool% RebootNeeded);

[C#]
    static void Uninstall( string CabFileName, string ProductName, string InstalledPath, ref bool RebootNeeded)

[VB.NET]
    Shared Sub Uninstall( ByVal CabFileName As String, ByVal ProductName As String, ByVal InstalledPath As String, ByRef RebootNeeded As Boolean)

Parameters

  • CabFileName - Path to .cab file, which was used to install the driver
  • ProductName - the ProductName string that identifies installation of the driver by your application
  • InstalledPath - Path to which the driver was installed. Leave it empty to uninstall from Windows system folders.
  • RebootNeeded - On return this parameter specifies if system restart is necessary for driver deinstallation to be successful.

Description

Use this method to uninstall the driver from the system. ProductName is used to distinguish between installations of the driver made by different applications and to prevent the situation when the driver is installed by two applications and further deinstallation of one of them removes the driver.

Read more about installing and uninstalling the drivers.

See also

GetDriverStatus     Install    

Back to top