• Status: Solved
  • Priority: Medium
  • Security: Public
  • Views: 7782
  • Last Modified:

Application install in Task sequence

Hello

I have set up SCCM 2012 with MDT 2012 integration. I have successfully created build and capture task sequence. I have also created office 2010 application which deploys without any problems to collections.

My problem is when I want to install applications in a task sequence. I made a task sequence which only contains install application. I select multiple application using base variable. I set the variable in the collection variable on my collection. First I thought the problem was related to setting the variable, but from the log I can see that the variable is working, and it's adding the office application to the list.

See attached text from the smsts.log

<![LOG[[ smsinstallapp.exe ]]LOG]!><time="20:49:28.528-120" date="08-16-2012" component="InstallApplication" context="" type="1" thread="3828" file="main.cpp:207">
<![LOG[Application Names: ]LOG]!><time="20:49:28.528-120" date="08-16-2012" component="InstallApplication" context="" type="1" thread="3828" file="main.cpp:233">
<![LOG[BaseVar   = 'APPINST', ContinueOnError='False']LOG]!><time="20:49:28.528-120" date="08-16-2012" component="InstallApplication" context="" type="1" thread="3828" file="main.cpp:239">
<![LOG[SwdAction = '0002']LOG]!><time="20:49:28.529-120" date="08-16-2012" component="InstallApplication" context="" type="1" thread="3828" file="main.cpp:240">
<![LOG[DAInstaller::Execute() ]LOG]!><time="20:49:28.529-120" date="08-16-2012" component="InstallApplication" context="" type="1" thread="3828" file="dainstaller.cpp:221">
<![LOGSetting progress step for initialization]LOG]!><time="20:49:28.529-120" date="08-16-2012" component="InstallApplication" context="" type="0" thread="3828" file="dainstaller.cpp:228">
<!LOGSetting total steps to 1]LOG]!><time="20:49:28.529-120" date="08-16-2012" component="InstallApplication" context="" type="0" thread="3828" file="daprogress.cpp:176">
<![LOG[Env variable with specified basename APPINST and suffix '01' is found.]LOG]!><time="20:49:28.609-120" date="08-16-2012" component="InstallApplication" context="" type="1" thread="3828" file="dainstaller.cpp:84">
<![LOG[Set authenticator in transport]LOG]!><time="20:49:28.612-120" date="08-16-2012" component="InstallApplication" context="" type="1" thread="3828" file="libsmsmessaging.cpp:7592">
<![LOG[Added "Office 2010 NOR&ENG" to the install list ]LOG]!><time="20:49:28.612-120" date="08-16-2012" component="InstallApplication" context="" type="1" thread="3828" file="dautils.cpp:345">
<![LOG[Adding 1 installs to steps]LOG]!><time="20:49:28.612-120" date="08-16-2012" component="InstallApplication" context="" type="0" thread="3828" file="daprogress.cpp:188">
<![LOGSetting total steps to 2]LOG]!><time="20:49:28.612-120" date="08-16-2012" component="InstallApplication" context="" type="0" thread="3828" file="daprogress.cpp:176">
<![LOGStep 1 out of 2 complete]LOG]!><time="20:49:28.612-120" date="08-16-2012" component="InstallApplication" context="" type="0" thread="3828" file="daprogress.cpp:226">
<![LOG[Executing Policy Assignment Request.]LOG]!><time="20:49:28.617-120" date="08-16-2012" component="InstallApplication" context="" type="0" thread="3828" file="dautils.cpp:434">
<![LOG[Default CSP is Microsoft Enhanced RSA and AES Cryptographic Provider]LOG]!><time="20:49:28.617-120" date="08-16-2012" component="InstallApplication" context="" type="0" thread="3828" file="libcrypt.cpp:1592">
<![LOG[Default CSP Type is 24]LOG]!><time="20:49:28.617-120" date="08-16-2012" component="InstallApplication" context="" type="0" thread="3828" file="libcrypt.cpp:1593">
<![LOG[Failed to request policy assignments, hr=0x80004005]LOG]!><time="20:49:29.087-120" date="08-16-2012" component="InstallApplication" context="" type="3" thread="3828" file="dautils.cpp:438">
<![LOG[Policy download failed, hr=0x80004005]LOG]!><time="20:49:29.087-120" date="08-16-2012" component="InstallApplication" context="" type="3" thread="3828" file="dautils.cpp:578">
<![LOG[Process completed with exit code 2147500037]LOG]!><time="20:49:29.109-120" date="08-16-2012" component="TSManager" context="" type="1" thread="2536" file="commandline.cpp:1098">
<![LOG[!--------------------------------------------------------------------------------------------!]LOG]!><time="20:49:29.109-120" date="08-16-2012" component="TSManager" context="" type="1" thread="2536" file="instruction.cxx:3011">
<![LOG[Failed to run the action: Install Application.
Unspecified error (Error: 80004005; Source: Windows)]LOG]!><time="20:49:29.110-120" date="08-16-2012" component="TSManager" context="" type="3" thread="2536" file="instruction.cxx:3102">
<![LOG[Set authenticator in transport]LOG]!><time="20:49:29.115-120" date="08-16-2012" component="TSManager" context="" type="1" thread="2536" file="libsmsmessaging.cpp:7592">
<![LOG[Set a global environment variable _SMSTSLastActionRetCode=-2147467259]LOG]!><time="20:49:29.589-120" date="08-16-2012" component="TSManager" context="" type="0" thread="2536" file="executionenv.cxx:668">
<![LOG[Set a global environment variable _SMSTSLastActionSucceeded=false]LOG]!><time="20:49:29.592-120" date="08-16-2012" component="TSManager" context="" type="0" thread="2536" file="executionenv.cxx:668">
<![LOG[Clear local default environment]LOG]!><time="20:49:29.593-120" date="08-16-2012" component="TSManager" context="" type="0" thread="2536" file="executionenv.cxx:807">
<![LOG[Failed to run the action: Install Application. Execution has been aborted]LOG]!><time="20:49:29.704-120" date="08-16-2012" component="TSManager" context="" type="3" thread="2536" file="instruction.cxx:3190">
<![LOG[Set authenticator in transport]LOG]!><time="20:49:29.708-120" date="08-16-2012" component="TSManager" context="" type="1" thread="2536" file="libsmsmessaging.cpp:7592">
<![LOG[Failed to run the last action: Install Application. Execution of task sequence failed.
Unspecified error (Error: 80004005; Source: Windows)]LOG]!><time="20:49:30.065-120" date="08-16-2012" component="TSManager" context="" type="3" thread="2536" file="engine.cxx:214">
<![LOG[Set authenticator in transport]LOG]!><time="20:49:30.071-120" date="08-16-2012" component="TSManager" context="" type="1" thread="2536" file="libsmsmessaging.cpp:7592">
<![LOG[Task Sequence Engine failed! Code: enExecutionFail]LOG]!><time="20:49:34.278-120" date="08-16-2012" component="TSManager" context="" type="3" thread="2536" file="tsmanager.cpp:756">



I see a problem downloading some policy.

The task sequence completes. Says installed in the software center, but no application has been installed. Don't think it's downloaded the office either. Tried adding one more application, same thing. Says adding 2 applications, but none is downloaded or installed.

If I don't use the variable, but select applications to install everything works and the applications get installed. Is there a setting I'm missing?

Any inputs is much appreciated.
0
jjugland
Asked:
jjugland
  • 6
  • 5
1 Solution
 
Michael PfisterCommented:
Did you tick "Allow installation during task sequence"? I'm not in front of my SCCM so I do not remember the exact wording. But I'm pretty sure its under the advanced tab of the program.
0
 
Michael PfisterCommented:
Also make sure the package content has been distributed to the DPs.
0
 
jjuglandAuthor Commented:
Hello

Yes I have ticked that option. "Allow this application to be installed from the Install Application task sequence action instead of deploying it manually"

I am also sure that the DP is updated.

It works if I select the application in the task sequence, but not when using multiple applications based on a base variable.
0
Free Backup Tool for VMware and Hyper-V

Restore full virtual machine or individual guest files from 19 common file systems directly from the backup file. Schedule VM backups with PowerShell scripts. Set desired time, lean back and let the script to notify you via email upon completion.  

 
Michael PfisterCommented:
Can you post an example of your variables?
As far as I remember the numbers must be ascending, starting with 1, ie

INST-001=PackageID1:InstallCmd
INST-002=PackageID1:InstallCmd

and so on...
0
 
Michael PfisterCommented:
0
 
jjuglandAuthor Commented:
Hello

That format is for sccm 2007 I think, not sccm 2012. From what I understand the format in sccm 2012 is: variableid:appname. In my case:

APPINST01=Office 2010 NOR&ENG

And on that application I have checked that boxed with allow this program...

I believe the problem is that is doesn't find the corresponding program, and then has no policy to download. I have tried to copy the app name, and the deployment name, no luck.

My app is in a folder called Microsoft. Do I have to include that somehow in the name?
0
 
jjuglandAuthor Commented:
Finally figured it out. Only virtual app or MSI app can be used in this way. Office uses setup.exe.....
0
 
Michael PfisterCommented:
I install Office with SCCM 2012 as Package. I wrapped it with an Install.cmd running the Setup.exe...

When you look at the Task Sequence Dialog for the Installation with variables, it says "Each variable must contain a Package ID and program name seperated by a colon."

Thats how I do it and its working....
0
 
jjuglandAuthor Commented:
Actually it was the name of the application that was the problem. The ampersand can not be in the application name.

Now I can deploy applications with a base variable.
0
 
Michael PfisterCommented:
Then MS changed that in SCCM 2012, but the old method with Package ID is still working.
0
 
jjuglandAuthor Commented:
Figured it out. Ampersand not allowed in application name
0

Featured Post

Prep for the ITIL® Foundation Certification Exam

December’s Course of the Month is now available! Enroll to learn ITIL® Foundation best practices for delivering IT services effectively and efficiently.

  • 6
  • 5
Tackle projects and never again get stuck behind a technical roadblock.
Join Now