Determine OS and run appropriate exe.
Hi all. I am fairly new to this so please bear with me.
I am trying to figure out how to determine if the person installing is running 64 bit Vista or a 32 bit OS, and I can 't seem to find a way to do that.
Also I am sure this is probably very basic, and I am still searching help to try to figure it out, but once I know what OS I have I want to run either
C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727\RegAsm.exe /codebase
or
C:\WINDOWS\Microsoft.NET\Framework64\v2.0.50727\RegAsm.exe /codebase
I think I have the Exec statement worked out, but I am not sure how to do a If - Then type of function.
Hmmm maybe that is the answer? I try to run the 64 version and if it fails I run the 32 bit one?
Any help greatly appreciated.