I want to install a .sys file into %windir%/System32/drivers
directory on a 64-Bit Platform. The setups works fine under 32-Bit, but when I´m installing on a 64-Bit platform, the setup stores the file under %windir%/SysWOW64/drivers.
I tried to install the file under <Windir>\System32\Drivers
, seems to be the wrong destination.
So my question is, how can i store a .sys file under %windir%/System32/drivers
on a 64-Bit System without making a new setup?
BTW: I´m using an Installscript Project under Installshield 2011.
Gretings and sorry for bad english ;)
Resolved!
I added following code into my Installscript:
function OnBegin() begin if (SYSPROCESSORINFO.nProcessorArchitecture = PROCESSOR_ARCHITECTURE_IA64 || SYSPROCESSORINFO.nProcessorArchitecture = PROCESSOR_ARCHITECTURE_AMD64) then Disable(WOW64FSREDIRECTION); endif; end;
This codesnippet will prevent that the installer automatically installs the files under the x64 default system folder. Then I changed the install destination of the component to
<WINSYSDIR64>\Drivers
and everything worked fine.