Install Software via Tasksequence
Hi When I install a Software via Software Distribution it is working fine. When installing several SW's via Tasksequence most of them fails one or two is successful. This is the error Message what i get when it fails: d7-8d67-c6fe0773e99c}:itemclass=win32reg_addremoveprograms64:namespace=\\localhost\root\cimv2'. Added/updated setting 'inventorydataitem:dataitemid={bc1c87e2-cc2b-435a-8475-4e18448880e9}:itemclass=win32reg_smsguestvirtualmachine:namespace=\\.\root\cimv2'. Raising event: instance of CCM_PolicyAgent_SettingsEvaluationComplete { ClientID = "GUID:F8A6FA44-D038-4C31-A8D1-F4EA4EF8C415"; DateTime = "20110909120600.231000+000"; PolicyNamespace = "\\\\mge22143\\root\\ccm\\policy\\machine\\actualconfig"; ProcessID = 3216; ThreadID = 532; }; Successfully submitted event to the Status Agent. End TS policy evaluation Policy evaluation initiated Waiting for policy to be compiled in 'root\ccm\policy\machine' namespace Verified policy is compiledin 'root\ccm\policy\machine' namespace Failed to invoke Execution Manager to Install Software for PackageID='P0100209' ProgramID='install' AdvertID='P012016A' hr=0x80008013 InstallSoftware failed, hr=0x80008013 Install Software failed, hr=0x80008013 "Allow this program to be intalled frome the Install Software task sequence without being advertised" is also enabled on each Program of the packages.
September 9th, 2011 4:12pm

E_FAIL_DEPENDENCY_NOT_RUN 0x80008013 - This program cannot run because it depends on another program that has not run successfully before. This error code is returned to task sequence manager when a task sequence Install Software Action step cannot be run because the step has a child program which has not been run before (http://technet.microsoft.com/en-us/library/bb632794.aspx). A Task Sequence is not made to install the depencies automatically, you need to create separate steps for that. My Blog: http://www.petervanderwoude.nl/ Follow me on twitter: pvanderwoude
Free Windows Admin Tool Kit Click here and download it now
September 9th, 2011 4:22pm

Thank you. Can you explain how the contet of this depencies step looks like? Should I create the separate step before the software installation step?
September 9th, 2011 4:37pm

Yes, create additional Software Install tasks before the one failing to install the dependancy programs/components.Jason | http://myitforum.com/cs2/blogs/jsandys | Twitter @JasonSandys
Free Windows Admin Tool Kit Click here and download it now
September 9th, 2011 4:38pm

Thank you, Jason Can you explain how the content of this depencies step looks like?
September 9th, 2011 4:41pm

Basically, if you have a Package that has three programs configured so that Program 2 runs before Program 3, and Program 1 runs before Program 2, in a TS, you can not only add a step for Program 3. It will ignore the "Always run this program first" parameter. In this example, you need to add three Install Software steps, and add each one in the correct order. --Joe.--Joe.
Free Windows Admin Tool Kit Click here and download it now
September 9th, 2011 5:02pm

No, it's not about "cutting" your batchfile into pieces... You have to take a look at the Properties of you Program, then go to the tab Advanced and look what is filled in with Run another program first. Whatever program is selected there should be run in the Task Sequence before this program.My Blog: http://www.petervanderwoude.nl/ Follow me on twitter: pvanderwoude
September 9th, 2011 9:39pm

In my Properties of the Program this Option is not enabled. So I'm going to enable "Run another program first" in the Properties of the Program and select a package for e.g. a package that content is a batch file which is doing nothing and that's it?
Free Windows Admin Tool Kit Click here and download it now
September 9th, 2011 11:53pm

In my Properties of the Program this Option is not enabled. So I'm going to enable "Run another program first" in the Properties of the Program and select a package for e.g. a package that content is a batch file which is doing nothing and that's it? Nope the whole idea was that if something was selected there it should be run before this Program in the Task Sequence. Normally the errorcode that you are experiencing means that, that was the situation you have too... But as that is probebly not your problem, you have to dig further... what is it that this Program (PackageID='P0100209' ProgramID='install') does?My Blog: http://www.petervanderwoude.nl/ Follow me on twitter: pvanderwoude
September 10th, 2011 6:14pm

It runs a batch file with this content: pushd %~dp0 xcopy /y /e MeV_4_6_2 "%ProgramFiles(x86)%\MeV_4_6_2\" cScript.exe "%ProgramFiles(x86)%\MeV_4_6_2\Mev_Shortcut.vbs" popd Via Software Distribution it is working fine. "Allow this program to be intalled frome the Install Software task sequence without being advertised" is also enabled.
Free Windows Admin Tool Kit Click here and download it now
September 10th, 2011 8:41pm

Please double check PackageID='P0100209' ProgramID='install' for the option to run another program first. If it executes via SW dist, that's just fine, because it would be able to run the dependency first. Inside a TS that's not possible though. Can you post a more complete portion of the smsts.log?Miguel Rodriguez
September 10th, 2011 11:23pm

via Software Distribution it works fine an this option "Run another program first" is disabled. When enable this option I need to select a package! Any package or the same like what I'm trying to install.
Free Windows Admin Tool Kit Click here and download it now
September 11th, 2011 12:11am

Please find the Log file: ************************************************************************************** <![LOG[SMS PkgID 'P0100209' resolved to location 'C:\_SMSTaskSequence\Packages\P0100209']LOG]!><time="11:20:38.941+-120" date="09-12-2011" component="InstallSoftware" context="" type="1" thread="388" file="installsoftware.cpp:145"> <![LOG[Start to compile TS policy]LOG]!><time="11:20:38.941+-120" date="09-12-2011" component="InstallSoftware" context="" type="0" thread="388" file="utils.cpp:2126"> <![LOG[Policy complied successfully in WMI 'root\ccm\policy\defaultmachine\requestedconfig' namespace]LOG]!><time="11:20:38.956+-120" date="09-12-2011" component="InstallSoftware" context="" type="1" thread="388" file="utils.cpp:2226"> <![LOG[End TS policy compilation]LOG]!><time="11:20:38.956+-120" date="09-12-2011" component="InstallSoftware" context="" type="0" thread="388" file="utils.cpp:2230"> <![LOG[Start to evaluate TS policy with lock]LOG]!><time="11:20:38.956+-120" date="09-12-2011" component="InstallSoftware" context="" type="1" thread="388" file="policyutil.cpp:8015"> <![LOG[Updating settings in \\mge22143\root\ccm\policy\machine\actualconfig]LOG]!><time="11:20:38.956+-120" date="09-12-2011" component="InstallSoftware" context="" type="1" thread="388" file="policyutil.cpp:6237"> <![LOG[Machine RequestedConfig policy instance(s) : 574]LOG]!><time="11:20:39.097+-120" date="09-12-2011" component="InstallSoftware" context="" type="0" thread="388" file="policyutil.cpp:6382"> <![LOG[Added/updated setting 'inventorydataitem:dataitemid={279a03ab-a342-4658-8ef3-85847391541a}:itemclass=win32reg_smsguestvirtualmachine64:namespace=\\.\root\cimv2'.]LOG]!><time="11:20:39.128+-120" date="09-12-2011" component="InstallSoftware" context="" type="0" thread="388" file="policyutil.cpp:6485"> <![LOG[Added/updated setting 'inventorydataitem:dataitemid={34923f16-70b5-4f3d-a807-9a64496b2e80}:itemclass=win32reg_addremoveprograms:namespace=\\localhost\root\cimv2'.]LOG]!><time="11:20:39.128+-120" date="09-12-2011" component="InstallSoftware" context="" type="0" thread="388" file="policyutil.cpp:6485"> <![LOG[Added/updated setting 'inventorydataitem:dataitemid={935cdac1-b225-40d7-8d67-c6fe0773e99c}:itemclass=win32reg_addremoveprograms64:namespace=\\localhost\root\cimv2'.]LOG]!><time="11:20:39.128+-120" date="09-12-2011" component="InstallSoftware" context="" type="0" thread="388" file="policyutil.cpp:6485"> <![LOG[Added/updated setting 'inventorydataitem:dataitemid={bc1c87e2-cc2b-435a-8475-4e18448880e9}:itemclass=win32reg_smsguestvirtualmachine:namespace=\\.\root\cimv2'.]LOG]!><time="11:20:39.128+-120" date="09-12-2011" component="InstallSoftware" context="" type="0" thread="388" file="policyutil.cpp:6485"> <![LOG[Raising event: instance of CCM_PolicyAgent_SettingsEvaluationComplete { ClientID = "GUID:CC7823B8-2063-42DA-8151-A8C09BDB3FBD"; DateTime = "20110912092039.128000+000"; PolicyNamespace = "\\\\mge22143\\root\\ccm\\policy\\machine\\actualconfig"; ProcessID = 2600; ThreadID = 388; }; ]LOG]!><time="11:20:39.128+-120" date="09-12-2011" component="InstallSoftware" context="" type="1" thread="388" file="event.cpp:525"> <![LOG[Successfully submitted event to the Status Agent.]LOG]!><time="11:20:39.128+-120" date="09-12-2011" component="InstallSoftware" context="" type="0" thread="388" file="event.cpp:543"> <![LOG[End TS policy evaluation]LOG]!><time="11:20:39.128+-120" date="09-12-2011" component="InstallSoftware" context="" type="1" thread="388" file="policyutil.cpp:8018"> <![LOG[Policy evaluation initiated]LOG]!><time="11:20:39.128+-120" date="09-12-2011" component="InstallSoftware" context="" type="1" thread="388" file="utils.cpp:3261"> <![LOG[Waiting for policy to be compiled in 'root\ccm\policy\machine' namespace ]LOG]!><time="11:20:39.128+-120" date="09-12-2011" component="InstallSoftware" context="" type="1" thread="388" file="installsoftware.cpp:401"> <![LOG[Verified policy is compiled in 'root\ccm\policy\machine' namespace]LOG]!><time="11:20:39.175+-120" date="09-12-2011" component="InstallSoftware" context="" type="1" thread="388" file="installsoftware.cpp:457"> <![LOG[Failed to invoke Execution Manager to Install Software for PackageID='P0100209' ProgramID='install' AdvertID='P012016A' hr=0x80008013]LOG]!><time="11:20:39.346+-120" date="09-12-2011" component="InstallSoftware" context="" type="3" thread="388" file="installsoftware.cpp:282"> <![LOG[InstallSoftware failed, hr=0x80008013]LOG]!><time="11:20:39.346+-120" date="09-12-2011" component="InstallSoftware" context="" type="3" thread="388" file="installsoftware.cpp:293"> <![LOG[Install Software failed, hr=0x80008013]LOG]!><time="11:20:40.719+-120" date="09-12-2011" component="InstallSoftware" context="" type="3" thread="388" file="main.cpp:374"> <![LOG[Process completed with exit code 2147516435]LOG]!><time="11:20:40.735+-120" date="09-12-2011" component="TSManager" context="" type="1" thread="3572" file="commandline.cpp:1102"> <![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="11:20:40.735+-120" date="09-12-2011" component="TSManager" context="" type="1" thread="3572" file="instruction.cxx:3010"> <![LOG[Failed to run the action: TIGR MeV 4.6.2. Unknown error (Error: 80008013; Source: Unknown)]LOG]!><time="11:20:40.735+-120" date="09-12-2011" component="TSManager" context="" type="3" thread="3572" file="instruction.cxx:3101"> <![LOG[Sending status message . . .]LOG]!><time="11:20:40.735+-120" date="09-12-2011" component="TSManager" context="" type="1" thread="3572" file="utility.cxx:292"> <![LOG[Send a task execution status message SMS_TSExecution_ActionFailError]LOG]!><time="11:20:40.735+-120" date="09-12-2011" component="TSManager" context="" type="1" thread="3572" file="utility.cxx:314"> <![LOG[Formatted header:]LOG]!><time="11:20:40.751+-120" date="09-12-2011" component="TSManager" context="" type="1" thread="3572" file="libsmsmessaging.cpp:1500"> <![LOG[<Msg SchemaVersion="1.1" ReplyCompression="zlib"><ID/><SourceID>GUID:CC7823B8-2063-42DA-8151-A8C09BDB3FBD</SourceID><SourceHost/><TargetAddress>mp:[http]MP_StatusManager</TargetAddress><ReplyTo>direct:OSD</ReplyTo><Priority>3</Priority><Timeout>3600</Timeout><SentTime>2011-09-12T09:20:40Z</SentTime><Protocol>http</Protocol><Body Type="ByteRange" Offset="0" Length="4182"/><Hooks/><Payload Type="inline"/><TargetHost/><TargetEndpoint>StatusReceiver</TargetEndpoint><ReplyMode>Sync</ReplyMode><CorrelationID/></Msg> ]LOG]!><time="11:20:40.751+-120" date="09-12-2011" component="TSManager" context="" type="1" thread="3572" file="libsmsmessaging.cpp:1501"> <![LOG[Set a global environment variable _SMSTSLastActionRetCode=-2147450861]LOG]!><time="11:20:40.766+-120" date="09-12-2011" component="TSManager" context="" type="0" thread="3572" file="executionenv.cxx:668"> <![LOG[Set a global environment variable _SMSTSLastActionSucceeded=false]LOG]!><time="11:20:40.766+-120" date="09-12-2011" component="TSManager" context="" type="0" thread="3572" file="executionenv.cxx:668"> <![LOG[Clear local default environment]LOG]!><time="11:20:40.766+-120" date="09-12-2011" component="TSManager" context="" type="0" thread="3572" file="executionenv.cxx:807"> <![LOG[The execution engine ignored the failure of the action (TIGR MeV 4.6.2) and continues execution]LOG]!>
September 12th, 2011 2:25pm

Just a wild shot... at which point is the directory "%ProgramFiles(x86)%\MeV_4_6_2\" created?My Blog: http://www.petervanderwoude.nl/ Follow me on twitter: pvanderwoude
Free Windows Admin Tool Kit Click here and download it now
September 12th, 2011 2:45pm

Right after this xcopy /y /e MeV_4_6_2 "%ProgramFiles(x86)%\MeV_4_6_2\" What I noticed is, via Software Distribution no Problem, running batch locally as a local admin on the client no problem, running the batch as a domain admin not working!
September 12th, 2011 2:59pm

This topic is archived. No further replies will be accepted.

Other recent topics Other recent topics