Need help with script
Add your rating:
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.
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)
Please log in to answer
Posted by:
rajdera1
13 years ago
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
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
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
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.
so that the conversation will remain readable.