New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Warnings from DDK regarding INF-file #648
Comments
Hi @Rondom , I saw it too, tried to see how bad it is and how it should be done but found nothing unfortunately. 😢 |
https://docs.microsoft.com/en-us/windows-hardware/drivers/install/inf-delfiles-directive
But SwapBuffers sample is also doing the same: 😢 |
Hiya, I also ran into this and found that even the "nullFilter" MS sample driver (nullFilter.inf) (which does literally nothing) generates this warning! Very frustrating. Since this was the first result on Google after searching for this warning, I'll post my solution here (relevant sections only): Before:
As you can see both I split So the final INF file looks like this:
I tested this and was able to replace a running and attached minifilter driver file without issues on Windows 7 and Windows 10 (the latter does not normally allow you to delete driver files while they are loaded, so that seems to indicate it's working). Note that this only takes care of replacing the file(s), not stopping the service. The |
Hi @Mattiwatti , Thank you for your feedback and research ! 🏆 I have tested the solution you provided and it also removes the warning on our side #682. But as I understand doing this breaks the |
For INF file fix see: * dokan-dev/dokany#648 * https://docs.microsoft.com/en-us/windows-hardware/drivers/install/inf-delfiles-directive ``` Do not specify a file that is listed in a CopyFiles directive. If a file is listed in both a CopyFiles-referenced and a DelFiles-referenced section, and the file is currently present on the system with a valid signature, the operating system might optimize away the copy operation but perform the delete operation. This is very likely not what the INF writer intended. ```
Filesystem are special type of driver that cannot be of primitive type. Closing this for now as it does no looks to be possible to be fixed. |
This is now mandatory to sign the driver. I was able to make it work but Windows complains that the system needs to restart due to changes of existing files which is not the case (we only copy the driver in
The first option is easy and future proof while the second allows us to support older versions for a time. |
https://ci.appveyor.com/project/Maxhy/dokany/branch/master/job/o9718w9o7ujdf4nr/messages
The text was updated successfully, but these errors were encountered: