Hey all, I have very little knowledge of vbs scripting, so I'm not sure how to write this. I could also use .bat or .cmd if possible. I use SCCM to deploy applications, and we either use a vbs or a .cmd to call an msi or .exe as the program in the SCCM package. These scripts create a folder, copy the installs, then run the msi's from there. That way, if the sccm cache gets deleted, an msi will still repair if needed with the files local.
I have recieved two msi's from a vendor, one for 32 bit systems and one for 64 bit systems. I'd like to avoid having to create two seperate sccm packages, and then having seperate the systems by a 32 bit and 64 bit collections, then deploying. My issue is that a 32 bit app will still install on our Win7 systems, that are 64 bit. I'd like to be able to differentiate if the system is 32 or 64, and install the appropriate msi.
0 Comments   [ - ] Hide Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
Answer this question or Comment on this question for clarity


there are various ways to determine the processer architechture if you want to use batch then get the value of the variable PROCESSOR_ARCHITECTURE this is a Env variable and can be viewed by set command in cmd...using vbscript (I prefer it ) read the value of the reg HKLM\SYSTEM\CurrentControlSet\Control\Session Manager\Environment\PROCESSOR_ARCHITECTURE and store it in a variable then put an if command to install the msi according to the value of the variable....

Check this post
Answered 03/17/2011 by: rajdera1
Orange Belt

Please log in to comment

There's a ton of information you can get from WMI. Use that instead. As ever, there are a quadzillion examples on the web. You might want to start at http://www.computerperformance.co.uk
Answered 03/18/2011 by: VBScab
Red Belt

Please log in to comment