Archive: Delete a .sys file from system32\drivers\ on VISTA64


Delete a .sys file from system32\drivers\ on VISTA64
Hi,

In my installer, I try to delete an old driver (ex: test.sys) already installed in C:\Windows\System32\drivers\test.sys of a Windows VISTA BUSINESS (64 bits). In my script, I do


RequestExecutionLevel admin
...
Delete "$WINDIR\System32\drivers\test.sys"
...

It's working on Windows XP64 (file deleted) but the file is still there on VISTA64.

The problem seems to come from permissions. Any clue on how to remove this file on VISTA64?

Thanks in advance!


probably FS redirection, try the macros in x64.nsh


Thanks Anders! Works like a charm ;-) !

Here is my updated code(I used Modern UI 2 + NSIS 2.40):

RequestExecutionLevel admin
!include "x64.nsh"
...
!insertmacro DisableX64FSRedirection
Delete "$WINDIR\System32\drivers\test.sys"
!insertmacro EnableX64FSRedirection
...