cancel
Showing results for 
Search instead for 
Did you mean: 
SAHorowitz
Pilgrim

WOW64FSREDIRECTION not working?

I am having trouble with using the Disable(WOW64FSREDIRECTION) / Enable(WOW64FSREDIRECTION)

When I call Disable(WOW64FSREDIRECTION) WINSYSDIR64 is still pointing to c:\windows\system32. I wrote a test to validate what is going on..

//Temp
if (SYSINFO.bIsWow64 = 0) then
MessageBox("64 = false", INFORMATION);
else
MessageBox("64 = true", INFORMATION);
endif;

Disable(WOW64FSREDIRECTION);
szCompany = "Disable, " + WINSYSDIR64;
MessageBox(szCompany, INFORMATION);
Enable(WOW64FSREDIRECTION);

szCompany = "Enable, " + WINSYSDIR64;
MessageBox(szCompany, INFORMATION);
szCompany = "";
//Temp

My output is:
64 = true
Disable, c:\windows\system32
Enable, c:\windows\system32

I would have expected:
64 = true
Disable, c:\windows\syswow64
Enable, c:\windows\system32

So bottom-line is everything is always getting copied to c:\windows\system32 because when I disable it is still pointing to c:\windows\system32. Can anyone please help me out?

Thanks.

Steve
Labels (1)
0 Kudos
3 Replies
Flexera MichaelU
Flexera

Re: WOW64FSREDIRECTION not working?

You might be getting misled by the odd naming scheme: C:\Windows\System32 is the 64-bit folder; C:\Windows\SysWow64 is the 32-bit folder. Try examining WINSYSDIR similarly, and remember that it's not necessarily the reported path, but where the filesystem maps a path to - without disabling redirection, attempts to access the 64-bit system folder in a 32-bit application (like setup.exe) will be redirected to the 32-bit folder.
0 Kudos
xrz1138
Pilgrim

Re: WOW64FSREDIRECTION not working?

Hello,

I am building an Installscript installer for a 64-bit program using IS 2011
on a 32-bit system.

It seems that the fact that my installer is a 32-bit program is causing Registry
changes to be written to the Wow6432Node sub-key of the Registry.

Question:

Why did adding
disable(WOW64FSREDIRECTION);
to OnBegin and adding
enable(WOW64FSREDIRECTION);
to OnEnd have zero affect on the Registry changes that this installer makes?

(I am in a position where affecting the entire install is OK)

Take care,

Chris
0 Kudos
RobertDickau
Pilgrim

Re: WOW64FSREDIRECTION not working?

(Follow-up of sorts [post=481297]here[/post].)
0 Kudos