Call4Cloud | MMP-C | Autopilot | Device Preparation

Ugh: CCMSETUP Error Codes

Patch My Pc | install & update thousands of apps

One of the things I’ve lamented and heaped scorn onto in the past is the use of non-standard error codes for processes and installers in particular. Why? Well, if a process or installer returns a standard error code, it’s pretty easy to figure out what that error code means using one of the techniques I described in one of my older posts appropriately titled Error Codes. If, however, a non-standard error code is returned, how is anyone supposed to know what it means especially if the codes aren’t documented by the vendor.

What does this have to do with ccmsetup? If you’ve installed Current Branch version 1602, you may have noticed that the .NET Framework 4.5.2 is now a prerequisite for the client agent and thus ccmsetup will install it if a system doesn’t already have it installed. You may have also noticed that installing this version of the .NET Framework requires a reboot in some circumstances. ccmsetup handles this gracefully (and doesn’t force a reboot) but does exit without finishing the installation, returns error code 7, and writes “CcmSetup is exiting with return code 7” as the final line of ccmsetup.log.

While troubleshooting this issue for a customer using my client startup script, I did what everyone should do when troubleshooting: figure out what error code 7 means. The standard meaning for error code 7, “The storage control blocks were destroyed”, makes no sense for this scenario though so I proceeded to review the other logs in the ccmsetup\logs folder. This lead me to the .NET Framework installer log (named dotNetFx452_Setup.log-MSI_netfx_Full_GDR_x86.msi) which clearly indicated that the .NET Framework installer was requesting a reboot. Others participating in a forum thread I was following also came to this same conclusion at right about the same time. Boo custom error codes.

In response to a query about this from Mr. Finland (aka Enterprise Mobility MVP Panu Saukko), guess what the beloved product team for our most favorite product “admitted”? Yep, they used non-standard error codes for ccmsetup — this almost brought me to tears btw. Oh the humanity! Also in the response to Panu, Brain Huneycutt provided the following short-list of error codes returned by ccmsetup for general public knowledge:

Error CodeMeaning
0Success
6Error
7Reboot Required
8Setup already running
9Prerequisite evaluation failure
10Setup manifest hash validation failure

As with most deviations, I’m sure that there was a well thought-out reason for this and it wasn’t just an intern making an uninformed choice; now that the codes are documented though, we can all take a few deep breaths, wipe away the tears, and carry on.

11 thoughts on “Ugh: CCMSETUP Error Codes

    1. Sometimes, there’s simply no way to know what wrong when making a call to something external and it doesn’t return what you are expecting. Like calling the wife from the bar and she starts screaming at you — something’s wrong for sure, but there’s really no way to know for sure what ๐Ÿ™‚ j/k

  1. Thanks. I know this is an old post but I have found myself coming back to ConfigMgr once again after about almost a year of VMM/SCOM/Azure and other fun stuff. I was beating my head over all the return code 7’s I was getting…..

  2. Hey,
    So I am currently migrating one hierarchy to another – and reboot windows are tight at best – and only once per month.

    With that in mind, does anyone know the actual impact of the dreaded return code 7?
    i.e. the client still registers with the MP and seems to be generally available. Has anyone investigated what functions do and don’t work while it is in this “requires reboot” state ?

    1. I’m sure that depends on what’s requesting the reboot. IME, the .NET framework is the main component that typically requests a reboot when upgrading it. There’s no telling what won’t work if that’s not been upgraded though.

  3. Exit Code 7 is reboot required??? WTF??? I can tell you that this is false. I have rebooted multiple times, made sure .net framework was not installing/or any maintenance happening at the same time this event occured of reinstalling the client. As far as I can tell, there’s no solid solution to code 7. Honestly, it’s a waste of everyone’s time and those jerks who created this software should really know the root cause of this error. Not to tell everyone oh it just need a reboot due to pending reboot or .net shit. Which is wrong 90% of the time. C’mon. Seriously.

    1. Sorry, this is not false. Those error codes are straight from the product group and are now part of the official documentation. Keep in mind that this post is for ccmsetup **only**. The Win32 error/exit code 7 means something completely different. As for the rest of your rant and the profanity, I’d say it’s time to grow up.

  4. @Exit Code 7
    Wow!! That guy was so rude about the ccm exit code 7.
    I had the pleasure of working with Jason for about 4 months on a new MEMCM install.
    He is most definitely an expert in the field of MEMCM (SCCM).
    I have seen this code in ccmsetup.log many many times and rebooting has been the answer EVERY single time.
    You should read what is being said more carefully before you make yourself look bad in front of the whole world.
    And why would you be rude to someone that is trying to help rather than ask for clarification?

  5. I just came across this thread and find it interesting that no one mentions that 99% of the client functionality works after receiving the Error Code 7 even before you reboot. There is only one thing that doesn’t work until you reboot but no one ever seems to mention it, not even the MVP’s.

  6. I received exit code 7 and performed a reboot and noticed in Event Viewer, Microsoft-Windows-WindowsUpdateClient/Operational log file that I was getting Windows Update Error 0x8024407 multiple times. Back in the customer’s machine, I ran troubleshooter in Windows Security/Windows Updates which stated that the issue was fixed. But it was not. After reboot, same error 0x8024407 appeared. I then did ccmsetup /uninstall and reinstall. Got error code=0. Did a reboot to check and still received the 0x8024407 error. (This is a Win10 box). I do believe that the Anti Virus is preventing the updates. Any thoughts? I am a remote contractor and do not have enough admin permissions to restrict the AV. Hope this helps others.

Leave a Reply

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

  −  1  =  3

Proudly powered by WordPress | Theme: Wanderz Blog by Crimson Themes.