SolFSStorage.Uninstall method (OS edition, Windows platform)


Pascal    Plain C    C++ (DLL/Lib)    C++ (VCL)    C++ (.NET)    C#    VB.NET    Java 

SolFSStorage     See also    


Uinstalls the drivers from Windows

Not applicable


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

[Plain C]
    long _stdcall StorageUninstallDrivers(PSolFSChar ProductName, PSolFSWideChar CabFileName, PSolFSWideChar InstalledPath, SolFSBool *RebootNeeded);

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

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

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

    static void Uninstall( string CabFileName, string ProductName, string InstalledPath, ref UInt32 RebootNeeded)

    Shared Sub Uninstall( ByVal CabFileName As String, ByVal ProductName As String, ByVal InstalledPath As String, ByRef RebootNeeded As UInt32)


  • 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
  • InstalledPath - Path to which the driver and helper DLLs were installed. Leave it empty to uninstall from Windows system folders.
  • 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


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.

This method does not remove EldoS Solid File System 5.x and earlier. You need to use solfsinst.dll installer DLL, shipped with Solid File System 5.x or the previous version, to uninstall that previous version. Alternatively, use UninstallEx method.

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 CBFS Connect 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     UninstallEx