dokan-dev / dokany

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

Cant install driver #935

Closed juanrd0088 closed 3 years ago

juanrd0088 commented 3 years ago

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

After building and installing dokan, i get fails when try to install dokanctl.exe and when i try to run mirror.exe image

Logs

Please attach in separate files: mirror output, library logs and kernel logs. In case of BSOD, please attach minidump or dump analyze output.

Liryna commented 3 years ago

Have you reboot after all the bcdedit command?

juanrd0088 commented 3 years ago

Thanks I just rebooted and the mirror works but dokanctl fails. dokan ctl says the error but I think it is because it is working well image

Could dokan1.sys be wrong? Seeing a previous answer I copied it from another path (/ release / driver / sys, instead of release / driver) and it doesn't let me delete it now, because it is active I suppose

Liryna commented 3 years ago

Exact, the error is normal at this point. To replace the driver, you need to dokanctl.exe /r d, reboot and then only after you can replace the dokan1.sys file and do a dokanctl.exe /i d again to start the new version.

Note: That's only needed if you want to make changes in driver. Otherwise you are fine to directly use the one from the installer. If you do make changes in the driver, I personally use a VM that I restore to the state where the driver is not installer but the bcdedit commands / reboot are already done and then I only need to copy and install the new driver.

juanrd0088 commented 3 years ago

Thank you very much. I'm already using a VM but I'll follow your advice.