EldoS
 Table of Contents >  CBDisk.Uninstall method
Navigation
Web site
Support
Table Of Contents

CBDisk.Uninstall method

Filter:

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

CBDisk     See also    

Overview

Uninstalls the drivers and helper DLLs from the system

Declaration

[Pascal]
    class procedure Uninstall( CabFileName : TCBString; ProductName : AnsiString; var RebootNeeded : DWORD);
    type TCBString = {$ifdef UNICODE}UnicodeString{$else}WideString{$endif};

[C++ (Lib)]
    static void Uninstall( const wchar_t * CabFileName, const char * ProductName, unsigned long *RebootNeeded);

[C++ (VCL)]
    static void __fastcall Uninstall( TCBString CabFileName, AnsiString ProductName, unsigned long & RebootNeeded);

[C++ (.NET)]
    static void Uninstall( String* CabFileName, String* ProductName, UInt32 &RebootNeeded);

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

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

Parameters

  • CabFileName - Path to .cab file, which was used to install the driver and helper DLLs.
  • 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 deinstallation to be successful. Flags (described below) tell the application, which modules requested system restart.

Values of RebootNeeded

[Pascal] [C++ (VCL)] [C++ (Lib)] [C++ (.NET)] [C#] [VB.NET] [Java] Value Meaning
CBDISK_MODULE_DRIVER 1 The driver (.sys file)
CBDISK_MODULE_NET_REDIRECTOR_DLL 65536 (0x00010000) Network redirector DLL (CbDiskNetRdr2.dll)
CBDISK_MODULE_MOUNT_NOTIFIER_DLL 131072 (0x00020000) Mount Notifier DLL (CbDiskMntNtf2.dll)

Description

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

NOTE: you must NOT uninstall the driver and helper DLLs, if you upgrade the installation. In other words, use Uninstall method only to completely remove CallbackDisk from the system.

Read more about installing and uninstalling the drivers.

Call from...

This method may be called only from outside of callback / event handlers.

See also

GetModuleStatus     Install    


Got questions or comments about this topic? Tell us about them.
Contact Us | Terms of Use | Trademarks | Privacy Statement
Copyright (c) 1998-2011, EldoS Corporation