Hi.
I have a problem I was wondering if someone could help me with. I need to copy (only copy) two driver files to the System32\drivers folder from within a program on a Windows 7 and Windows Vista, 32 and 64 bit operating system.
I can copy the files quite successfully from an administrator console, “copy file.sys c:\windows\system32\drivers” and I can quite successfully (after writing a INF) with “rundll32.exe setupapi.dll,InstallHinfSection DefaultInstall 132 c:\my folder\my inf.inf”
However both methods inside a NSIS installer will refuse to work. The same inside an executable. I receive no error and my problem is possibly best demostrated with what happens when I try running an executable with several system(“copy c:\file.sys c:\windows\system32\drivers\file.sys”)
1 file copied.
1 file copied.
Would you like to overwrite file.sys?
After the program has finished executing, the file is no longer there. Almost like Windows has deleted it as soon as the application has ended.
I have tried, an INF installer, installed as the above, the drivers are cross signed, the applications are signed, I have tried system, I have tried CopyFile, I have tried NSIS’s File “/oname=c:\windows.…” file.sys
I am out of ideas and I have so far only found one reference to somebody else have the same problem but his issue was never resolved. I have written some filter drivers which work successfully on the targetted operating system and only need to have their files copied to the system32\driver folder for the program to be complete.
Does anyone reconise this problem and could anyone help?
Thankyou so much.
TBL.