CallbackRegistry.Install method


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

CallbackRegistry     See also    


Installs the driver into the system.


    class procedure Install( CabFileName : TCBString; ProductName : AnsiString; PathToInstall : TCBString; var RebootNeeded : boolean);
    type TCBString = {$ifdef UNICODE}UnicodeString{$else}WideString{$endif};

[C++ (Lib)]
    static void Install( LPCWSTR CabFileName, LPCSTR ProductName, LPCWSTR PathToInstall, LPBOOL RebootNeeded);

[C++ (VCL)]
    static void __fastcall Install(__classid(TCallbackRegistry), WideString CabFileName, AnsiString ProductName, WideString PathToInstall, bool &RebootNeeded);

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

    static void Install( string CabFileName, string ProductName, string PathToInstall, ref bool RebootNeeded)

    Shared Sub Install( ByVal CabFileName As String, ByVal ProductName As String, ByVal PathToInstall As String, ByRef RebootNeeded As Boolean)


  • CabFileName - Path to .cab file, which is used to install the driver and helper DLLs.
  • ProductName - the ProductName string that identifies installation of the driver by your application
  • PathToInstall - Path to which the driver and helper DLLs should be installed. Leave it empty to install to Windows system folders.
  • RebootNeeded - on return this parameter specifies if system restart is necessary for driver installation to be successful


Use this function to install the driver to the system. Once installed, the driver is loaded using user-mode API. 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     UninstallDriver