3

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.

William Leara
  • 10,595
  • 4
  • 36
  • 58
Arctic Strike
  • 91
  • 1
  • 6
  • You should note how you resolved your issue in a self-answer (rather than as an update to your question) and accept it. Otherwise this question continues to appear unanswered. – J0e3gan May 18 '14 at 03:11

1 Answers1

0

Please disable WOW64FSREDIRECTION

This should work !

Sid
  • 4,905
  • 1
  • 17
  • 17