On Monday, 16 December 2013 at 10:54:15 UTC, Hugo Florentino
wrote:
Hi,
I am writing a launcher to make a Windows application portable,
but since this application supports both x86 and x86_64, I
would like to detect the architecture of the OS my launcher is
being run on, in order to launch the proper executable.
How can I do this?
Regards, Hugo
http://stackoverflow.com/questions/601089/detect-whether-current-windows-version-is-32-bit-or-64-bit
http://support.microsoft.com/kb/556009
To detect environment variables you can use
std.process.environment.get