I have made some testing of the TRawdisk.InstallDriver() function and it always fails on Seven 64 bits (the function returns FALSE).

I have verified and GetLastError() return 0 just after function call, so this is not a priviledge problem (logged in windows user was admin).

I have tested to load the sys driver from a simple directory (c:\test\) or a directory with spaces but none worked, so this is not a path related issue.

I have also showed the path of sys driver in a message box to be sure I didn't make a mistake and the path is correct (the sys driver is in the showed directory).

Could you give me a very simple Delphi source code you have successfully tested on windows seven 64 bits, so that I can test it on my failing computer ?
(or at least a compiled executable that works on your Windows 7 64bits)

Thanks !

[NOTE: the exact same code works nicely on a vista 32 bits PC and on another Windows 7, 32 bits PC but fails on the 64 bits edition]

First of all, are you installing 64-bit driver? Different drivers are needed for 32-bit and for 64-bit systems.

If you do install 64-bit file, please right-click on the driver file name in Explorer, in context menu choose Properties, then in the dialog that opens go to Digital Signatures tab. There please verify the status of the signature. Should be OK.

No, installation of the driver is a procedure that must be performed once rather than each time. And you need to remember that administrator rights are needed to install the driver, so if your application is run from under the limited account, installation will fail.

We use cookies to help provide you with the best possible online experience. By using this site, you agree that we may store and access cookies on your device. You can find out more about and set your own preferences here.