SCCM 2012 - Best way to deploy 2 programs and a registry command?

I'm trying to deploy a program along with a reg import command.
The first part of the program is the main installer, so it's an Install.exe program with silent parameters.
The second part is a hotfix, which is another .exe program with silent parameters.
Then, I need to run a reg import settings.reg /f command after those two.

What's the best way to go about running all 3, in order, for an SCCM package to deploy to computers?
Should I just make a .cmd batch file that runs all 3 commands in order, and make a package that is the .cmd file?

This going out to Windows 7 clients mostly.
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

yo_beeDirector of Information TechnologyCommented:
1: You can create a Task Sequence with all three steps in order and advertise the Task Sequences

2: Create the three program in a single packages and apply a hierarchy that one cannot install before the other is install successfully.
Once you created this hierarchy you advertise the program that is the last one to be installed.
When the clients get the advertisement it runs the last program and see that program 2 needs to run prior to program 3.  Because Program 2 cannot run before Program 1 then Program 1 will run and if successful Program 2 will run and so on.

3: You can also use a VBS,CMD, or Bat to run the sequence for you as you mentioned.

All these ways will work, but I like using option 1 and 2 because it will get you more familiar with SCCM and understanding how you can really control the deployment of item.

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
garryshapeAuthor Commented:
Ok cool deal. So with 1, using Custom Task Sequence, how would you be able to report those systems that got the updated client?
Do you just create a new collection querying for presence of MSI code on system, or application/file object existence?

Would you set task sequence to 'always rerun' if you just needed deploy once, or just rerun if previous attempt failed?
yo_beeDirector of Information TechnologyCommented:
You can build a query that that meets the version of the client installed.
Under the Query Node of SCCM you can create new query and import a predefined one that came with SCCM.

In SCCM 2007 there is one for Product Name and Version.  
Once imported you can modify the criteria to meet your desired results.

You want to see if Office 2013 has been installed.  
You would populate the Product Name = "Microsoft Office 2013 Pro" and Product Version = '15.1.345.6'

That would return all machines that were inventoried and have this installed. If the version was 15.1.486.1 then those would not be returned.

You will need to have some familiarity with SQL syntax and structure.

You will need a Collection to advertise to whether you manually add computer objects or build a Query base Collection for the criteria you are looking to upgrade.    So if you are looking to up grade from Office 2010 to Office 2013 you would build a collection query that the Product Name is Microsoft Office and the Version is less than 15.%

I would say no to the always rerun setting.  I would put it only rerun if there was a failure.
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today

From novice to tech pro — start learning today.