I have a program that I can install correctly on my workstations with a batch file.I get Error 255 or Error 1 which means the software will not install. SCCM 2007 and SCCM 2012
Here is a copy of the Exexcmrg.log file What I don't understand is when I go into the cache folder and run the batch file the software install correctly.
Content is available for program Time Capsule. execmgr 8/27/2014 3:15:02 PM 1172 (0x0494)
Notify user package SOV004AA optional program Time Capsule is ready to run execmgr 8/27/2014 3:15:02 PM 1172 (0x0494)
Execution Request for package SOV004AA program Time Capsule state change from WaitingContent to NotifyExecution execmgr 8/27/2014 3:15:02 PM 1172 (0x0494)
Execution Manager timer has been fired. execmgr 8/27/2014 3:15:32 PM 1172 (0x0494)
Executing program Install.bat in Admin context execmgr 8/27/2014 3:15:32 PM 4852 (0x12F4)
Execution Request for package SOV004AA program Time Capsule state change from Running to NotifyExecution execmgr 8/27/2014 3:15:32 PM 4852 (0x12F4)
Checking content location C:\Windows\system32\CCM\Cache\SOV004AA.3.S-1-5-21-731751332-322183305-1136387443-156307 for use execmgr 8/27/2014 3:15:32 PM 4852 (0x12F4)
Successfully selected content location C:\Windows\system32\CCM\Cache\SOV004AA.3.S-1-5-21-731751332-322183305-1136387443-156307 execmgr 8/27/2014 3:15:32 PM 4852 (0x12F4)
GetFileVersionInfoSize failed for file C:\Windows\system32\CCM\Cache\SOV004AA.3.S-1-5-21-731751332-322183305-1136387443-156307\Install.bat, error 1812 execmgr 8/27/2014 3:15:32 PM 4852 (0x12F4)
Executing program as a script execmgr 8/27/2014 3:15:32 PM 4852 (0x12F4)
Successfully prepared command line "C:\Windows\system32\CCM\Cache\SOV004AA.3.S-1-5-21-731751332-322183305-1136387443-156307\Install.bat" execmgr 8/27/2014 3:15:32 PM 4852 (0x12F4)
Command line = "C:\Windows\system32\CCM\Cache\SOV004AA.3.S-1-5-21-731751332-322183305-1136387443-156307\Install.bat", Working Directory = C:\Windows\system32\CCM\Cache\SOV004AA.3.S-1-5-21-731751332-322183305-1136387443-156307\ execmgr 8/27/2014 3:15:32 PM 4852 (0x12F4)
Created Process for the passed command line execmgr 8/27/2014 3:15:32 PM 4852 (0x12F4)
Raising event:
[SMS_CodePage(437), SMS_LocaleID(1033)]
instance of SoftDistProgramStartedEvent
{
AdvertisementId = "SOV206D8";
ClientID = "GUID:29B64BE7-D18A-41F3-962C-04232F5147DF";
CommandLine = "\"C:\\Windows\\system32\\CCM\\Cache\\SOV004AA.3.S-1-5-21-731751332-322183305-1136387443-156307\\Install.bat\"";
DateTime = "20140827191532.527000+000";
MachineName = "SOVPLAWS84466";
PackageName = "SOV004AA";
ProcessID = 2620;
ProgramName = "Time Capsule";
SiteCode = "SOV";
ThreadID = 4852;
UserContext = "NT AUTHORITY\\SYSTEM";
WorkingDirectory = "C:\\Windows\\system32\\CCM\\Cache\\SOV004AA.3.S-1-5-21-731751332-322183305-1136387443-156307\\";
};
execmgr 8/27/2014 3:15:32 PM 4852 (0x12F4)
Raised Program Started Event for Ad:SOV206D8, Package:SOV004AA, Program: Time Capsule execmgr 8/27/2014 3:15:32 PM 4852 (0x12F4)
Merging policies execmgr 8/27/2014 3:15:32 PM 1172 (0x0494)
Merging policies execmgr 8/27/2014 3:15:32 PM 1172 (0x0494)
Program exit code 1 execmgr 8/27/2014 3:17:38 PM 1172 (0x0494)
Looking for MIF file to get program status execmgr 8/27/2014 3:17:38 PM 1172 (0x0494)
Script for Package:SOV004AA, Program: Time Capsule failed with exit code 1 execmgr 8/27/2014 3:17:38 PM 1172 (0x0494)
Raising event:
[SMS_CodePage(437), SMS_LocaleID(1033)]
instance of SoftDistProgramErrorEvent
{
AdvertisementId = "SOV206D8";
ClientID = "GUID:29B64BE7-D18A-41F3-962C-04232F5147DF";
DateTime = "20140827191738.186000+000";
ExitCode = "1";
MachineName = "SOVPLAWS84466";
PackageName = "SOV004AA";
ProcessID = 2620;
ProgramName = "Time Capsule";
SiteCode = "SOV";
ThreadID = 1172;
UserContext = "NT AUTHORITY\\SYSTEM";
};
execmgr 8/27/2014 3:17:38 PM 1172 (0x0494)
Raised Program Error Event for Ad:SOV206D8, Package:SOV004AA, Program: Time Capsule execmgr 8/27/2014 3:17:38 PM 1172 (0x0494)
Execution is complete for program Time Capsule. The exit code is 1, the execution status is FailureNonRetry execmgr 8/27/2014 3:17:38 PM 5572 (0x15C4)
Execution Manager timer has been fired. execmgr 8/27/2014 3:17:54 PM 5572 (0x15C4)
2 Comments
[ + ] Show comments
-
the batch install probably needs a temp directory to work out of, and SCCM is running it as system. - SMal.tmcc 10 years ago
-
System uses the temp directory under C:\windows so this should not be an issue. - EdT 10 years ago
Answers (1)
Please log in to answer
Posted by:
EdT
10 years ago
As you can see from the log information you have posted, the batch file is being run as the user "NT Authority\System" when run from SCCM. When you run it manually, it is being run under the user account you are logged in as. System accounts behave differently to user accounts - for example they have no access to network resources. Without knowing what is in your batch file, all I can suggest is that you review your batch file contents with this in mind.
Comments:
-
Thanks EdT my batch file just calls the setup.exe and creates a folder for some database that needs to be copied over. I tried just using the setup.exe or the msi and I get the same error as above in the log file. I guess I will have to use another account to get this software to install correctly in SCCM 2007 and SCCM 2012. - bzerebiec 10 years ago
-
Where is the database copied over from? If it is from a network location then that is going to fail under SCCM unless you use an account with domain privileges instead of local system. If the MSI is rolling back, then there is a further problem in the MSI itself - however, this can be determined by enabling verbose logging of MSI installs before your next test deployment. - EdT 10 years ago