Control over registry operations in Windows and .NET applications

CallbackRegistry.UninstallDriver method


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

CallbackRegistry     See also    


Uninstalls the driver from the system


    class procedure UninstallDriver(ProductName : AnsiString; var RebootNeeded : boolean);

[C++ (Lib)]
    static void UninstallDriver(LPCSTR ProductName, LPBOOL RebootNeeded);

[C++ (VCL)]
    static void __fastcall UninstallDriver(__classid(TCallbackRegistry), AnsiString ProductName, bool &RebootNeeded);

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

    static void UninstallDriver(string ProductName, ref bool RebootNeeded)

    Shared Sub UninstallDriver(ByVal ProductName As String, ByRef RebootNeeded As Boolean)


  • ProductName - the ProductName string that identifies installation of the driver by your application
  • RebootNeeded - On return this parameter specifies if system restart is necessary for driver deinstallation to be successful.


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.

This method does not remove CallbackRegistry of other major versions than the one to which it belongs. You need to use cbreginst.dll installer DLL, shipped with CallbackRegistry 2.x, to uninstall previous version, if you are upgrading your application from the version which used CallbackRegistry 2 to the version which uses CallbackRegistry 3.

See also

GetDriverStatus     InstallDriver    

Back to top