Menu
CCMEXEC.COM – Enterprise Mobility
  • Home
  • General
  • Configuration Manager
  • Windows 10
  • Intune
  • GitHub
  • Windows 11
  • About the author
CCMEXEC.COM – Enterprise Mobility

Installing an application with dependencies

Posted on October 30, 2010 by Jörgen Nilsson

I often get the question how to handle applications with dependencies to other applications using Configuration Manager 2007. I have written this example and will follow up with a post on how to do it using SCCM v.next which is much easier than using SCCM 2007.

You can use the “run another program before” feature in SCCM 2007 but it doesn’t provide you with any overview of which applications are depending and is very basic. This is one of the reasons I use a task sequence for installing applications with dependencies instead. It is much easier to get an overview of which applications will be installed and also very easy to create dependencies if the software is already present it won’t install again.

This example will show how to install the Microsoft App-V 4.6 Client which requires that Visual C++ 2005 sp1 and Visual C++ 2008 sp1 is installed on the computer, before installation. This assumes that the packages needed are already created in SCCM:

  1. Create a custom Task Sequence
  2. Edit the newly created Task Sequence and add the three applications that should be installed so it looks like this:
    Software_dep1
  3. On the Microsoft Visual C++ 2005 Sp1 application, select the option tab and add the condition “If Statement”, and select “None” Software_dep1_2
  4. Mark the newly created condition, and select add Condition, “Installed Software” , as you can see you can use for instance a registry key of check if a file exists on the drivw which can be used to evalute if the application is installed even if it isn’t a Windows Installer package.
    Software_dep3
    Software_dep4
  5. In the next dialog, browse to the MSI package for the Visual C++ 2005 SP1, and select open as displayed below.
  6. After that the condition section should look like this:
    Software_dep2
  7. This condition will now install Visual C++ 2005 sp1 only if it isn’t installed already.
  8. Repeat the steps for Visual C++ 2008 sp1.
  9. Then advertise the task sequence and test the installation.

 If one of the applications requires a reboot before the next application is installed, add a group and set the condition on the group instead of the application and include a reboot in the step.
Note! When adding a “restart task sequence step” the task sequence editor by default selects the option “The boot image assigned to this task sequence” this must be changed to “The currently installed default operating system” otherwise the task sequence will fail.  Software_dep6

1 thought on “Installing an application with dependencies”

  1. Marcin says:
    March 25, 2015 at 9:15 am

    Nice, but what if *.msi doesn’t exists?

    Reply

Leave a Reply Cancel reply

Your email address will not be published. Required fields are marked *

This site uses Akismet to reduce spam. Learn how your comment data is processed.

My name is Jörgen Nilsson and I work as a Senior Consultant at Onevinn in Malmö, Sweden. This is my blog where I will share tips and stuff for my own and everyone elses use on Enterprise Mobility and Windows related topics.
All code is provided "AS-IS" with no warranties.

Tweets by ccmexec

Recent Posts

  • Windows Servicing, Personal Teams and Success.cmd
  • Windows MDM Security Baseline – Settings Catalog
  • Configuring MS Edge Security Baseline v107 using Settings Catalog
  • Configuring Desktop App Installer using CSP and script?!
  • Customizing Taskbar and Start in Windows 11 22h2 with PowerShell

©2023 CCMEXEC.COM – Enterprise Mobility | WordPress Theme by Superb Themes
This website uses cookies to improve your experience. We'll assume you're ok with this, but you can opt-out if you wish.Accept Reject Read More
Privacy & Cookies Policy

Privacy Overview

This website uses cookies to improve your experience while you navigate through the website. Out of these, the cookies that are categorized as necessary are stored on your browser as they are essential for the working of basic functionalities of the website. We also use third-party cookies that help us analyze and understand how you use this website. These cookies will be stored in your browser only with your consent. You also have the option to opt-out of these cookies. But opting out of some of these cookies may affect your browsing experience.
Necessary
Always Enabled
Necessary cookies are absolutely essential for the website to function properly. This category only includes cookies that ensures basic functionalities and security features of the website. These cookies do not store any personal information.
Non-necessary
Any cookies that may not be particularly necessary for the website to function and is used specifically to collect user personal data via analytics, ads, other embedded contents are termed as non-necessary cookies. It is mandatory to procure user consent prior to running these cookies on your website.
SAVE & ACCEPT