MariusN Posted February 7, 2013 Share Posted February 7, 2013 (edited) Hi folks...This might sound stupid, but i have encountered programs that can run on 32 bit AND 64 bit systems...I know 32 bit can run on a 64 bit PC, but those spesific programs were ONE application only that "sorta" adjust itself to the OS involved.. IS there a way to make AutoIt to "automaticly adjust" itself as a 32 or 64 bit application without having to recompile it as 2 different files? ...tia PS: Reason for asking is i tried to run one of my utilities on a 64 bit program and it couldnt fix a registry problem. After re-creating my app as a 64 bit app, it worked just fine... Edited February 7, 2013 by MariusN Link to comment Share on other sites More sharing options...
Shaggi Posted February 7, 2013 Share Posted February 7, 2013 Either you make a 32-bit exe and have @OsArch guards all over the place, or you have a 32-bit launcher, that launches an 32-bit exe or 64-bit exe, depending on @OsArch. This can also be done in the installation process of your program (if it has any) Ever wanted to call functions in another process? ProcessCall UDFConsole stuff: Console UDFC Preprocessor for AutoIt OMG Link to comment Share on other sites More sharing options...
Tripredacus Posted February 7, 2013 Share Posted February 7, 2013 PS: Reason for asking is i tried to run one of my utilities on a 64 bit program and it couldnt fix a registry problem. After re-creating my app as a 64 bit app, it worked just fine...You ran into registry redirection. A 32bit app is going to get redirected to the wow3264node. In order to write to the correct registry section using a 32bit app, you need to detect the @OSArch, and if 64, you use the HKLM64 (for example).Check the remarks for RegWrite:http://www.autoitscript.com/autoit3/docs/functions/RegWrite.htm Twitter | MSFN | VGCollect Link to comment Share on other sites More sharing options...
spudw2k Posted February 7, 2013 Share Posted February 7, 2013 This help you understand the results of using HKLM vs HKLM64 and 32 vs 64. Spoiler Things I've Made: Always On Top Tool ◊ AU History ◊ Deck of Cards ◊ HideIt ◊ ICU ◊ Icon Freezer ◊ Ipod Ejector ◊ Junos Configuration Explorer ◊ Link Downloader ◊ MD5 Folder Enumerator ◊ PassGen ◊ Ping Tool ◊ Quick NIC ◊ Read OCR ◊ RemoteIT ◊ SchTasksGui ◊ SpyCam ◊ System Scan Report Tool ◊ System UpTime ◊ Transparency Machine ◊ VMWare ESX BuilderMisc Code Snippets: ADODB Example ◊ CheckHover ◊ Detect SafeMode ◊ DynEnumArray ◊ GetNetStatData ◊ HashArray ◊ IsBetweenDates ◊ Local Admins ◊ Make Choice ◊ Recursive File List ◊ Remove Sizebox Style ◊ Retrieve PNPDeviceID ◊ Retreive SysListView32 Contents ◊ Set IE Homepage ◊ Tickle Expired Password ◊ Transpose ArrayProjects: Drive Space Usage GUI ◊ LEDkIT ◊ Plasma_kIt ◊ Scan Engine Builder ◊ SpeeDBurner ◊ SubnetCalcCool Stuff: AutoItObject UDF ◊ Extract Icon From Proc ◊ GuiCtrlFontRotate ◊ Hex Edit Funcs ◊ Run binary ◊ Service_UDF Link to comment Share on other sites More sharing options...
MariusN Posted February 12, 2013 Author Share Posted February 12, 2013 Thanks folks...much obliged :-) 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