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

Upgrade an application using SCCM 2007

Posted on November 3, 2010October 31, 2010 by Jörgen Nilsson

When upgrading an application one challenge can be that the previous version needs to be uninstalled before the new version is installed. Sometimes there could be more than one previous version that must be uninstalled during the upgrade. In this example we have the following requirements for the upgrade:

  1. If present Java 6.20 update 20 must be uninstalled before installing the new version.
  2. If present Java 6.20 update 21 must be uninstalled before installing the new version.
  3. If Java 6.20 update 21 is installed a reboot is required after the uninstallation.

As the example I posted before on how to use a task sequence to install applications with dependencies, a task sequence is the most efficient way to handle this. This assumes that the packages are created already in SCCM and bot install and uninstall programs exist.

  1. Create a custom task sequence
  2. Edit the task sequence and add “Install software” steps for all three applications, selecting the uninstall program for the Update 20 and Update 21 applications and the Install program for Update 22.
  3. On the Java 6 Update 20 step, select the options tab and add the following conditions:
    1. An If statement, “None”
    2. Select the If statement and add an “Installed Software” condition and browse and open the MSI file for Java 6 Update 20.
    Software Upgrade11
  4. Create a group called Java 6 Update 21, and repeat the condition steps above for that group aswell.
  5. In the Newly created group add a “Restart Computer” Task. 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.
  6. The task sequence should now look like this and you are ready to advertise it and test it out.
    Software Upgrade2

5 thoughts on “Upgrade an application using SCCM 2007”

  1. Christoph Voigt says:
    November 4, 2010 at 11:57 am

    Jörgen,
    I wonder: do you distribute the task-sequence in logged-off mode only or also when a user is logged in? It’s not really an issue with something like Java (except you have many business critical applications running on Java) but how do you handle the uninstall/reboot/install scenario for applications that are probably already running and in use 24/7 (like Office, Lotus Notes, SAP etc.)?

    Reply
  2. Jörgen Nilsson says:
    November 4, 2010 at 3:27 pm

    Hi,
    As you point-out it depends on which kind of application is it. Running an application upgrade when the user i logged of is in my experience less usable because the increasing account of laptops just connecting, hibernating e.t.c
    So normally I use a script as a pre-run for the tasksequence which checks if processes are running prompts the user that the application will be upgraded and which application must be closed for the upgrade to succeed. I will try to share that script and experiance of using it aswell.
    But of course each application and customer scenario is different..

    Regards,
    Jörgen

    Reply
  3. Frank says:
    November 18, 2010 at 9:20 am

    Hi, I am interested to see this script to.
    Thnks in advance

    Reply
  4. Q says:
    February 23, 2011 at 3:27 pm

    I setup this task sequence for a different application and the advertisement is received by the two machines I’m testing against. But that is where it stays. It proceeds past receiving. Any ideas?

    Thanks!

    Reply
  5. Martin says:
    September 8, 2011 at 11:43 am

    Jörgen,

    What are the advantages of making a group in the task sequence?

    And step 3 says: An If statement, none, but your screenshot says All? Can you clarify?

    Thanks in advance 🙂

    Martin

    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