I think WOW64FileRedirection is about http://msdn2.microsoft.com/en-us/library/aa384187.aspx .
Maybe check the value for @ONWOW64 and use environment vars like %ProgramFiles%, %ProgramFiles(x86)% and %ProgramW6432%
 Code:
Break On
If @ONWOW64 = 1
	? "ProgramFiles = " %ProgramFiles%
	? "ProgramW6432 = " %ProgramW6432%
Else
	? "ProgramFiles = " %ProgramFiles%
	
	; whoops, next one is to find 
	; 
	; in 64-bit mode
	; the ProgramFiles directory for 
	; 32 bit applications
	; 
	; ? "ProgramFiles(x86) = " %ProgramFiles(x86)%
EndIf


Edited by Witto (2008-04-08 05:06 PM)
Edit Reason: error in script