Hi there,

I'm new to this forum, and to SCCM in general, and am trying to figure out what error code 12 means. I am trying to do an uninstall of AVG antivirus and an install of McAfee ePO agent, AV + patch and Spyware through a silent install to a group of machines. The AVG 8.5 uninstall does an automatic reboot immediately after the uninstall, but I do not want to do this, so I have added /norestart to the command line in the program. When I do the uninstall without the /norestart, it does the uninstall, reboots immediately, then comes back and completes the McAfee install, after which we have a planned reboot with a timer countdown of 15 minutes that informs the users to save their stuff before the mandatory reboot happens. When this comes back up, the machine has McAfee installed. The problem here is that we don’t want to do the auto reboot after AVG install, because then the user will lose their minds, especially if they were working on a "really long email". So, with the /norestart in command line, it doesn't reboot, but it also does not complete the McAfee install, so this defeats the purpose. A piece of the log is as follows ( I have the full log, of course):

<![LOG[Raised Program Started Event for Ad:KEN20133, Package:KEN0007A, Program: AVG Antivirus Uninstall]LOG]!><time="12:15:04.489+240" date="06-10-2010" component="execmgr" context="" type="1" thread="1888" file="executioncontext.cpp:523">
<![LOG[Program exit code 12]LOG]!><time="12:16:28.533+240" date="06-10-2010" component="execmgr" context="" type="1" thread="3512" file="scriptexecution.cpp:547">
<![LOG[Looking for MIF file to get program status]LOG]!><time="12:16:28.533+240" date="06-10-2010" component="execmgr" context="" type="1" thread="3512" file="executionstatus.cpp:282">
<![LOG[Script for Package:KEN0007A, Program: AVG Antivirus Uninstall failed with exit code 12]LOG]!><time="12:16:28.533+240" date="06-10-2010" component="execmgr" context="" type="3" thread="3512" file="executionstatus.cpp:249">
<![LOG[Raising event:
[SMS_CodePage(437), SMS_LocaleID(1033)]
instance of SoftDistProgramErrorEvent
{
AdvertisementId = "KEN20133";
ClientID = "GUID:53C03424-E59C-4F71-A087-3B67341CD761";
DateTime = "20100610161628.690000+000";
ExitCode = "12";
MachineName = "TRANSCRIPTION1";
PackageName = "KEN0007A";
ProcessID = 164;
ProgramName = "AVG Antivirus Uninstall";
SiteCode = "KEN";
ThreadID = 3512;
UserContext = "NT AUTHORITY\\SYSTEM";
};
]LOG]!><time="12:16:28.706+240" date="06-10-2010" component="execmgr" context="" type="1" thread="3512" file="event.cpp:525">
<![LOG[Raised Program Error Event for Ad:KEN20133, Package:KEN0007A, Program: AVG Antivirus Uninstall]LOG]!><time="12:16:28.706+240" date="06-10-2010" component="execmgr" context="" type="1" thread="3512" file="executioncontext.cpp:648">
<![LOG[Execution is complete for program AVG Antivirus Uninstall. The exit code is 12, the execution status is FailureNonRetry]LOG]!><time="12:16:28.737+240" date="06-10-2010" component="execmgr" context="" type="1" thread="3512" file="execreqmgr.cpp:3908">
<![LOG[Deleting request for program AVG Antivirus Uninstall. Failing parent program Install McAfee ePO Agent 4.5 - Granite]LOG]!><time="12:16:29.285+240" date="06-10-2010" component="execmgr" context="" type="1" thread="3512" file="execreqmgr.cpp:7868">
<![LOG[Deleting request for program Install McAfee ePO Agent 4.5 - Granite. Failing parent program Install McAfee VirusScan 8.7i - Granite]LOG]!><time="12:16:29.285+240" date="06-10-2010" component="execmgr" context="" type="1" thread="3512" file="execreqmgr.cpp:7868">
<![LOG[Deleting request for program Install McAfee VirusScan 8.7i - Granite. Failing parent program Install McAfee VirusScan 8.7i Patch 3 - Granite]LOG]!><time="12:16:29.285+240" date="06-10-2010" component="execmgr" context="" type="1" thread="3512" file="execreqmgr.cpp:7868">
<![LOG[Deleting request for program Install McAfee VirusScan 8.7i Patch 3 - Granite. Failing parent program Install McAfee AntiSpyware 8.7 - Granite]LOG]!><time="12:16:29.285+240" date="06-10-2010" component="execmgr" context="" type="1" thread="3512" file="execreqmgr.cpp:7868">
<![LOG[The user has logged off.]LOG]!><time="12:41:51.908+240" date="06-10-2010" component="execmgr" context="" type="1" thread="1968" file="execreqmgr.cpp:4761">
<![LOG[The user has logged off.]LOG]!><time="13:06:14.897+240" date="06-10-2010" component="execmgr" context="" type="1" thread="3568" file="execreqmgr.cpp:4761">
<![LOG[A user has logged on.]LOG]!><time="12:43:33.078+240" date="06-10-2010" component="execmgr" context="" type="1" thread="576" file="execreqmgr.cpp:4522">
<![LOG[The logged on user is DOMAIN\administrator]LOG]!><time="12:43:33.484+240" date="06-10-2010" component="execmgr" context="" type="1" thread="576" file="execreqmgr.cpp:4540">

Basically, I need to know what this error/exit code means as a way to troubleshoot the issue. The ultimate goal is to uninstall AVG, install McAfee, all silently, and with a notice of reboot that gives users time to close their apps and save work before it reboots to complete the Mcafee install.

Any assistance would be greatly appreciated.

Thanks, and enjoy the day!


Bill
0 Comments   [ + ] Show Comments

Comments

Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Answers

0
The execution exit code is simply what the program reports to SCCM on exit. So you're not really looking for any sort of SCCM error code, but what error code 12 means from an AVG perspective.

Have you tried:

Manually running your command line to uninstall under a real admin account
Allowing user interaction in the SCCM program
Enabling MSI logging (I'm assuming this is an MSI, anyway) with the /l*v switch?

If you get errors popping up when running it manually or when running it through SCCM with user interaction enabled, that should help lead you towards what needs to happen to make it work. Otherwise, get a good verbose log and see what particular CA or action is failing in the installer to glean some more clues.
Answered 06/10/2010 by: Jsaylor
Second Degree Blue Belt

Please log in to comment
0
So, and excuse my density, how do I found out what the error code 12 in regards to AVG, I guess, means? I have not done the things you mentioned here, and will try them with user intervention, but I'm really trying to find out what this and other error codes mean. Again, I'm brand new to this stuff (and scripting class is next week ;o)), so at a bit of a loss. Oddly, I have tried the setup.exc /uninstall /hide /norestart from Start > Run, and it works, but it also prompts for a "are you sure?" type message (which I do not want), but it does not work at all from the command line. This is with and without /norestart in the line. Weird...

Thanks!
Answered 06/11/2010 by: athertonwj
Senior Yellow Belt

Please log in to comment
0
Unfortunately googling AVG error codes doesn't seem to bring up anything particularly useful. If you have a vendor contact, you may want to see if you can get them to tell you what error code 12 means, exactly. Also, just about any time a prompt shows up during an installation, it will fail during an SCCM install. The system account will never respond to any prompts, so the prompt itself will be invisible to any users, and System won't respond to it either, so it will just hang there forever.

If it's an old installshield compiled installer, you may have to create a response file (they call them .iss's) with the /r or -r switch to get rid of all dialogs. I believe in this situation you'd also have to combine it with -removeonly. You should be able to google up some guides on how to create an ISS.
Answered 06/11/2010 by: Jsaylor
Second Degree Blue Belt

Please log in to comment
0
Thanks, bud. We do have a contract with someone. I'll give them a shout.
Answered 06/11/2010 by: athertonwj
Senior Yellow Belt

Please log in to comment
0
Here is the SCCM report for this:

The program for advertisement "KEN20133" failed ("KEN0007A" - "AVG Antivirus Uninstall"). A failure exit code of 12 was returned. User context: NT AUTHORITY\SYSTEM Possible cause: Systems Management Server (SMS) determines status for each program it executes. If SMS cannot find or correlate any installation status Management Information Format (MIF) files for the program, it uses the program's exit code to determine status. An exit code of 12 is considered a failure. Solution: For more information on the exit code, refer to the documentation for the program you are distributing.

Still looking for an answer. Thanks, folks!
Answered 06/14/2010 by: athertonwj
Senior Yellow Belt

Please log in to comment
0
Bill,

Have you tried the AVG Remover to uninstall AVG 8.5? There is a post on the AVG forums here.

Error 12 may be 'Access code is invalid' - See MSDN System Error Codes here.

Hope this kickstarts your investigations again [:)]

Thanks,

Dunnpy
Answered 06/14/2010 by: dunnpy
Red Belt

Please log in to comment
0
Thanks, Dunnpy, this is great info. I have not tried the avgremover.exe in the package, only manually, but that was to be my next step. My suspicion is that error code 12 is avg's way of saying I need a reboot, and nothing 's going to happen until I get it.
Answered 06/14/2010 by: athertonwj
Senior Yellow Belt

Please log in to comment
Answer this question or Comment on this question for clarity