11-08-2010 09:09 AM - edited 11-08-2010 09:12 AM
Is it possible to have one install file that will install either 32 bit or 64 bit program automatically on a cpu without the user selecting anything?
Else, is there a CVI built in function for detecting whether the CPU is 32 bit or 64 bit? My program calls an external .exe that has a version for each.
I see the GetWinOSVersion and can call it on my current computer, but am not sure what gets returned for Windows7 or 64bit vs 32 bit.
Thanks
11-08-2010 11:57 AM
During runtime, i found this global variable when I was told my easytab panel wasn't supported ... awesome I know
11-08-2010 12:19 PM - edited 11-08-2010 12:24 PM
I guess another question is if I am installing on a 64 bit machine, and need to add Registry Keys and access them but only creating a 32 bit exe, Do I need to still create a 64-bit install, but include the 32 bit dlls/exes? or would just installing my normal 32-bit application work?
The reason I ask is I tried installing my normal 32 bit application which creates a registry key for the installed dir, but I am not seeing this in regedit.
Sorry I am new to the 64 bit stuff and want to make sure I have everything working.
Thanks
11-08-2010 02:05 PM
Okay, I found out and learned more about 64 bit computers and their registry. Apparently the 32 bit app does write to the registry, just not in the "exact" location of where it would normally be but in a WOW folder, where it is redirected.
This link was helpful - http://msdn.microsoft.com/en-us/library/aa384232(v=VS.85).aspx
So my issues are resolved essentially since I can just use my 32 bit app, although others may still be interested in learning about a one click install for 32 or 64 bit computers.