|
|
#1 |
|
Junior Member
Join Date: Oct 2008
Location: Quebec
Posts: 2
|
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! |
|
|
|
|
|
#2 |
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,449
|
probably FS redirection, try the macros in x64.nsh
IntOp $PostCount $PostCount + 1 |
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Oct 2008
Location: Quebec
Posts: 2
|
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 ... |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|