Kogmedia Posted July 20, 2007 Share Posted July 20, 2007 Hello, I am making a script to install dotnet framework I need a OS Arch I have searched the help file but can't seam to find a command... Anyone know a UDF or a workaround? Thanks [font="Verdana"]Keith (Kogmedia)[/font]My ScriptQuick Search - Internet / Hard Drive Search Link to comment Share on other sites More sharing options...
DW1 Posted July 20, 2007 Share Posted July 20, 2007 @OSTYPE will not work? AutoIt3 Online Help Link to comment Share on other sites More sharing options...
Kogmedia Posted July 20, 2007 Author Share Posted July 20, 2007 @OSTYPE will not work?OSTYPE returns WIN32_NT on VISTA X64OSTYPE returns WIN32_NT on XP 32 [font="Verdana"]Keith (Kogmedia)[/font]My ScriptQuick Search - Internet / Hard Drive Search Link to comment Share on other sites More sharing options...
DW1 Posted July 20, 2007 Share Posted July 20, 2007 doesn't 64 bit Vista use a different registry editor.... 64 bit regedit.... can you detect the presence of this file? (Im sorry if im no help, I do not have Vista (thank god)) AutoIt3 Online Help Link to comment Share on other sites More sharing options...
Kogmedia Posted July 20, 2007 Author Share Posted July 20, 2007 (edited) Vista uses standard regedit ... I don't know where the key for OSArch is held in registry My work around... If StringInStr(@ProgramFilesDir,"(x86)") Then $OSVesion = 'X64'; OS is 64bit Else $OSVesion = 'X86' OS is 32bit EndIf MsgBox(0,"",$OSVesion) Edited July 20, 2007 by Kogmedia [font="Verdana"]Keith (Kogmedia)[/font]My ScriptQuick Search - Internet / Hard Drive Search Link to comment Share on other sites More sharing options...
DW1 Posted July 20, 2007 Share Posted July 20, 2007 I don't see that ever detecting 64 bit like that AutoIt3 Online Help Link to comment Share on other sites More sharing options...
DW1 Posted July 20, 2007 Share Posted July 20, 2007 (edited) Don't know how to get it to AutoIt but this does what you want BOOL Is64BitProcessRunningOn64BitWindows() { return TRUE; } ____________________ ALSO -------------------------------- BOOL Is64BitWindows() { #if defined(_WIN64) return TRUE; // 64-bit programs run only on Win64 #elif defined(_WIN32) // 32-bit programs run on both 32-bit and 64-bit Windows // so must sniff BOOL f64 = FALSE; return IsWow64Process(GetCurrentProcess(), &f64) && f64; #else return FALSE; // Win64 does not support Win16 #endif } Edited July 20, 2007 by danwilli AutoIt3 Online Help Link to comment Share on other sites More sharing options...
DW1 Posted July 20, 2007 Share Posted July 20, 2007 I think IsWow64Process() resides in kernel32.dll AutoIt3 Online Help Link to comment Share on other sites More sharing options...
Kogmedia Posted July 20, 2007 Author Share Posted July 20, 2007 Thanks I will have a play with that tonight Need to learn dll calls [font="Verdana"]Keith (Kogmedia)[/font]My ScriptQuick Search - Internet / Hard Drive Search Link to comment Share on other sites More sharing options...
DW1 Posted July 20, 2007 Share Posted July 20, 2007 Need to learn dll callsPlease see "DllCall" in my sig AutoIt3 Online Help Link to comment Share on other sites More sharing options...
Recommended Posts
Create an account or sign in to comment
You need to be a member in order to leave a comment
Create an account
Sign up for a new account in our community. It's easy!
Register a new accountSign in
Already have an account? Sign in here.
Sign In Now