/build/static/layout/Breadcrumb_cap_w.png

Need help with script

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   [ + ] Show comments

Answers (2)

Posted by: rajdera1 13 years ago
Orange Belt
0
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
http://social.technet.microsoft.com/Forums/en-US/winserverManagement/thread/cd44d6d3-bdfa-4970-b7db-e3ee746d6213
Posted by: anonymous_9363 13 years ago
Red Belt
0
Kludgy...

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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ