Sign in to follow this  
Followers 0
Kogmedia

Windows X32 but returning X64 due to processor...

10 posts in this topic

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... :whistle:

Anyone know a UDF or a workaround?

Thanks


[font="Verdana"]Keith (Kogmedia)[/font]My ScriptQuick Search - Internet / Hard Drive Search

Share this post


Link to post
Share on other sites



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))

Share this post


Link to post
Share on other sites

#5 ·  Posted (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 by Kogmedia

[font="Verdana"]Keith (Kogmedia)[/font]My ScriptQuick Search - Internet / Hard Drive Search

Share this post


Link to post
Share on other sites

#7 ·  Posted (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 by danwilli

Share this post


Link to post
Share on other sites

Need to learn dll calls

Please see "DllCall" in my sig

Share this post


Link to post
Share on other sites

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 account

Sign in

Already have an account? Sign in here.


Sign In Now
Sign in to follow this  
Followers 0