dokan-dev / dokany

User mode file system library for windows with FUSE Wrapper
http://dokan-dev.github.io
5.15k stars 657 forks source link

Cannot uninstall Dokan Library - Blocked by pending restart stuck state. #1231

Closed pratyushtewari closed 3 weeks ago

pratyushtewari commented 3 weeks ago

image

image

Feature request can skip this form. Bug report must complete it. Check List must be 100% match or it will be automatically closed without further discussion. Please remove this line.

Environment

Check List

Description

I cannot uninstall Dokan Library. It keeps saying it cannot uninstall because of pending restart. I have restarted my computer at least 37 times. This Dokan version was installed without my consent when I installed Mount Cloud Storage software.

Please help me uninstall this Dokan library so that I can do something about it.

I cannot even install the newer version of this software.

image

image

Logs

Dokan_Library_1.4.1.1000_Bundle_20240625144215.log

LTRData commented 3 weeks ago

I would suggest the following steps:

pratyushtewari commented 3 weeks ago

Hi @LTRData - thanks for the command.

I tried the command but I got this Screenshot 2024-06-25 211059

Anyways disregarding that I rebooted and tried uninstalling .. I get the same error ... you need to restart before you can uninstall Dokan error.

Any manual way to remove this?

pratyushtewari commented 3 weeks ago

I tried running the original installer for the same version and clicked on the remove button.

I got error again:

image

pratyushtewari commented 3 weeks ago

Why does it think it needs a reboot? is there a flag I can modify in some file / registry? --- Developers of Dokan .. please help.

Liryna commented 3 weeks ago
pratyushtewari commented 3 weeks ago

Hi @Liryna, I did not find any DeleteFlag in the registry at that location.

image

Here are the files that were generated after the uninstall failed again.

Dokan_Library_1.4.1.1000_Bundle_20240625235222.log Dokan_Library_1.4.1.1000_Bundle_20240625235222_000_Dokan_x64.msi.log Dokan_Library_1.4.1.1000_Bundle_20240625235222_000_Dokan_x64.msi_rollback.log

Hope this uncovers something that I can do to remove the bundle from my computer.

Thanks for helping me!

pratyushtewari commented 3 weeks ago

I went ahead and manually searched every file, cache, temp, dll and registry entry that had dokan word mentioned and deleted it.

Now I think I can reinstall it if I need. but I think I am good for now.

Maybe there is a need to check that the uninstaller is through and does not need to check the reboot flag (that I could not find anywhere).

LTRData commented 3 weeks ago

It sounds more like a Windows Installer issue then to me. If it happens again, Windows Installer repair tool is probably the best way forward.

Liryna commented 3 weeks ago

Agree with @LTRData . Looks like the driver was removed or corrupted externally before the uninstall could do it.

DIFXAPP: INFO: user SID of user performing the install is 'S-1-5-21-3466793186-3738243748-2437575698-1001'.
DIFXAPP: INFO: opening HKEY_USERS\S-1-5-21-3466793186-3738243748-2437575698-1001\Software\Microsoft\Windows\CurrentVersion\DIFxApp\Components\{1AFEA463-3DB8-48FA-87D1-7151BE92DB4B} (User's SID: 'S-1-5-21-3466793186-3738243748-2437575698-1001') ...
DIFXAPP: INFO:   ENTER:  DriverPackageUninstallW
DIFXAPP: INFO:   Uninstalling driver package C:\Windows\system32\DRVSTORE\dokan_D9FB7FBE36A03DF4CCF05ABCD8334B2D1D3277A6\dokan.inf...
DIFXAPP: ERROR:  Unable to revert to a previous driver store for service 'dokan1'.
DIFXAPP: ERROR:  Will attempt to uninstall the driver.
DIFXAPP: ERROR:  Error unable to open service 'dokan1' to delete it because of error 0x424
DIFXAPP: ERROR:  Error occurred while deleting service to uninstall the driver store.
DIFXAPP: ERROR:  We were unable to install any other driver store entry to support the service dokan1 and we also failed to delete the service.
DIFXAPP: ERROR:  Failed to uninstall the driver. Attempting to undo system changes ... (Error code 0x643: Fatal error during installation.)
DIFXAPP: INFO:   Installing INF file "C:\Windows\system32\DRVSTORE\dokan_D9FB7FBE36A03DF4CCF05ABCD8334B2D1D3277A6\dokan.inf" of Type 2.
DIFXAPP: INFO:   Installing File System Driver 'C:\Windows\system32\DRVSTORE\dokan_D9FB7FBE36A03DF4CCF05ABCD8334B2D1D3277A6\dokan.inf'
DIFXAPP: ERROR:  Unable to open service 'dokan1' to start it because of error 0x424
DIFXAPP: ERROR:  Error occurred while uninstalling driver package 'C:\Windows\system32\DRVSTORE\dokan_D9FB7FBE36A03DF4CCF05ABCD8334B2D1D3277A6\dokan.inf'
DIFXAPP: INFO:   Successfully re-added '{1AFEA463-3DB8-48FA-87D1-7151BE92DB4B}' to reference list of driver store entry ''
DIFXAPP: INFO:   RETURN: DriverPackageUninstallW  (0x643)
DIFXAPP: ERROR encountered while uninstalling driver store C:\Windows\system32\DRVSTORE\dokan_D9FB7FBE36A03DF4CCF05ABCD8334B2D1D3277A6\dokan.inf
DIFXAPP: UninstallDriverPackages failed with error 0x643