|
This is actually more complicated than it may seem..
The file redirection functionality that was built into the 64-bit versions of Windows only affects the %WINDIR%\SYSTEM32 directory. It does not affect the Program Files directory (even though a new x86 version of the Program Files directory was introduced in 64-bit Windows. So if you want to this feature, you need to change your script to create a sub-directory below %WINDIR%\SYSTEM32.
As for Program Files... note that on Windows Server 2008 and Vista, the Program Files directory *is* affected by the file virtualization feature of *User Access Control*. So if you write to this directory on those versions of Windows, your changes can wind up in the Virtual Store, depending on the actual access permissions you have on the system. This functionality is not affected by WOW64FileRedirection.
Lastly: the fact that SetOption returns "OFF" to be the default setting of WOW64FileRedirection is indeed incorrect. File Redirection is always on by default. I'll see if I can fix this in the next update.
Kind regards,
Ruud
|