TaskSequenceID not processsed for MandatoryApplications

Answered TaskSequenceID not processsed for MandatoryApplications

  • Thursday, September 06, 2012 11:50 PM
     
     

    Hi

    I'm trying to get some software ticked in the application list.  Some that is optional but ticked, and some mandatory depending on task sequence id.

    Problem is the application selections don't show the items checked from the task sequences.  I have process rules and customsettings.ini entered on the intialization stage.  Here is my customsettings.ini

    [Settings]
    Priority=TaskSequenceID, Default
    Properties=MyCustomProperty, SavedJoinDomain

    [Default]
    OSInstall=YES

    FullName=Administrator
    AdminPassword=Apples04

    SkipCapture=NO
    SkipAdminPassword=YES
    SkipProductKey=YES
    SkipComputerBackup=NO
    SkipBitLocker=YES
    SkipLocaleSelection=YES
    SkipTimeZone=YES
    SkipSummary=YES


    OrgName=COMPANYNAME

    JoinDomain=DEMO
    DomainAdmin=MDTJoin
    DomainAdminDomain=DEMO
    DomainAdminPassword=Password





    ComputerName=*

    UILanguage=en-us
    UserLocale=en-GB
    KeyboardLocale=0809:00000809
    TimeZone=085
    TimeZoneName=GMT Standard Time



    DisableTaskMgr=YES
    HideShell=YES


    Applications001={0f13d078-98dc-4fae-95c9-32014a4022be}
    Applications002={d495b1ac-81f9-4119-9719-8d9ceea8c31e}
    Applications003={93d722d1-84ba-42e5-8594-1ce2b47cff77}
    Applications004={2c914b1f-3e33-4669-9c28-ab15f0333cd7}
    Applications005={bac01873-b6c6-40fe-8014-3bd62a28e0d2}
    Applications006={5ceeb21c-fd33-4cc8-b49a-a8ff20822758}
    Applications007={ec7320c9-c745-4e52-821b-5915d774357c}
    Applications008={e883481c-66db-41b7-ae55-dfd6a31900e3}

    [W7PROSP1X86]
    MandatoryApplications001={87c44c74-3276-4687-9314-428b681d7a85}
    Applications001={0c9962ff-2540-4759-b45c-bbe6f9e033ec}


    [W7PROSP1X64]
    MandatoryApplications001={6fb94e62-7984-43e0-a009-6c0de7d370b3}
    Applications001={b5391362-4a01-4993-8ab7-5aca514a2a36}

All Replies

  • Friday, September 07, 2012 6:06 AM
     
     

    Are your TaskSequenceID same as the ones below (CS.ini)?

    W7PROSP1X86
    W7PROSP1X64

    Can you post the ZTIGather.log and ZTIApplications.log after the deployment is complete. You can find it under \windows\temp\deploymentlogs

     

     

     


    Regards, Vik Singh "If this thread answered your question, please click on "Mark as Answer"

  • Friday, September 07, 2012 10:25 AM
     
     

    i think the applications001 of the default part and the applications001 of [W7PROSP1X64] are conflicting with each other.

    since the tasksequenceID has first priority before it reads the default part (i think correct me if i'm wrong) i would say start the application list of the default part with 002 because it already has 001 from the chosen tasksequence.

    hope this made any sense.

  • Friday, September 07, 2012 1:41 PM
     
     

    I believe the issue you are seeing is because the CustomSettings.ini is not processed between the selection of the task sequence and when the applications list is shown.

    If you need these applications to be selected in the wizard, you would need to add code to the wizard pane to get it to run a gather using CustomSettings.ini.  This could probably be done as an initialization step to the Applications pane.

  • Saturday, September 08, 2012 9:08 PM
     
     

    Are your TaskSequenceID same as the ones below (CS.ini)?

    W7PROSP1X86
    W7PROSP1X64

    Can you post the ZTIGather.log and ZTIApplications.log after the deployment is complete. You can find it under \windows\temp\deploymentlogs

     

     

     Yes they are correct


    Regards, Vik Singh "If this thread answered your question, please click on "Mark as Answer"


  • Saturday, September 08, 2012 9:10 PM
     
     

    i think the applications001 of the default part and the applications001 of [W7PROSP1X64] are conflicting with each other.

    since the tasksequenceID has first priority before it reads the default part (i think correct me if i'm wrong) i would say start the application list of the default part with 002 because it already has 001 from the chosen tasksequence.

    hope this made any sense.

    Not sure, I've tried renaming them previously and makes no difference.  I've also tried putting in mandatory entries into default and they worked correctly, ticking applications and greyed out.

  • Monday, September 10, 2012 7:19 AM
     
     

    ZTiGather and ZTIApplications.log - Can you upload them on a public storage site?


    Regards, Vik Singh "If this thread answered your question, please click on "Mark as Answer"

  • Monday, September 10, 2012 8:59 AM
     
     

    I believe the issue you are seeing is because the CustomSettings.ini is not processed between the selection of the task sequence and when the applications list is shown.

    If you need these applications to be selected in the wizard, you would need to add code to the wizard pane to get it to run a gather using CustomSettings.ini.  This could probably be done as an initialization step to the Applications pane.

    Hi

    I've read threads on this and I've tried the fix http://blogs.technet.com/b/mniehaus/archive/2012/09/04/revisiting-lti-deployment-wizard-application-selection-profiles.aspx but that doesn't fix it for me I'm afraid.

    I'm going to upload those log files today.

  • Monday, September 10, 2012 11:45 AM
     
     

    ZTiGather and ZTIApplications.log - Can you upload them on a public storage site?


    Regards, Vik Singh "If this thread answered your question, please click on "Mark as Answer"

    ZTIApplications.log

    https://skydrive.live.com/redir?resid=32983B977E1C8AF5!261&authkey=!AAf4BGFATF53t0k

    ZTIGather.log

    https://skydrive.live.com/redir?resid=32983B977E1C8AF5!260&authkey=!AMY3GmGpspVfEoQ

  • Monday, September 10, 2012 12:08 PM
     
     

    hmm according to the logs everything should be functioning correctly selection wise, Ztigather found a total of 9 applications.

  • Monday, September 10, 2012 12:25 PM
     
     

    Hi

    Actually that run was better as it did read my Applications001 from my tasksequence section in my customsettings.ini file but it didn't do the MandatoryApplications001

    So it is reading the tasksequences, so thats one step further.  Any ideas on why it didn't read the MandatoryApplications001?

    Is Applications and MandatoryApplications001 spelt correctly? Are they both pural?

  • Monday, September 10, 2012 12:31 PM
     
     

    That post talks about using a wizard selection profile to control what apps are available for display.  whan you need to do is to run a ZTIGather as an initialization stpe for the Applications pane.

    See http://blogs.technet.com/b/mniehaus/archive/2009/10/28/mdt-2010-wizard-example-role-selection.aspx on how to call ZTIGather from the initialization of a pane.

    That post is written for MDT 2010.  If you are running 2012, it will be slightly different.

  • Monday, September 10, 2012 12:36 PM
     
     

    That post talks about using a wizard selection profile to control what apps are available for display.  whan you need to do is to run a ZTIGather as an initialization stpe for the Applications pane.

    See http://blogs.technet.com/b/mniehaus/archive/2009/10/28/mdt-2010-wizard-example-role-selection.aspx on how to call ZTIGather from the initialization of a pane.

    That post is written for MDT 2010.  If you are running 2012, it will be slightly different.

    I'm not really prepared to go that far with a webservice.

    Seems strange that on my last run it did the Applications001  I'm going to check now though that it did tick it and that it didn't just install it without showing in ticked in the wizard


  • Monday, September 10, 2012 12:43 PM
     
      Has Code

    it also read the mandatory application correctly

    from your ztigather.log

    Added value from [W7PROSP1X86]: APPLICATIONS = {0c9962ff-2540-4759-b45c-bbe6f9e033ec}    ZTIGather    10-9-2012 9:32:18    0 (0x0000)
    Property MANDATORYAPPLICATIONS001 is now = {87c44c74-3276-4687-9314-428b681d7a85}    ZTIGather    10-9-2012 9:32:18    0 (0x0000)
    Added value from [W7PROSP1X86]: MANDATORYAPPLICATIONS = {87c44c74-3276-4687-9314-428b681d7a85}    ZTIGather    10-9-2012 9:32:18    0 (0x0000)
    

  • Monday, September 10, 2012 1:23 PM
     
     Answered

    Sorry, I may not have been clear.  I was not proposing to use a web service to get the data.  I linked to that post because is demonstartes ho to add 2 lines the the validate/initializa script for a pane to run ZTIGather to make it read the CustomSettings.ini again during the wizard.

    You essentially need it to add:

    sCmd = "wscript.exe """ & oUtility.ScriptDir & "\ZTIGather.wsf"""
    oItem = oShell.Run(sCmd, , true)

    to the InitializeApplicationList function.

  • Monday, September 10, 2012 1:37 PM
     
     
    Just checked and it didn't tick the Applications or MandatoryApplications under W7PROSP1X86 but it did install both apps.
  • Monday, September 10, 2012 1:39 PM
     
     

    I'm a bit sick of this now.

    I've run it and it is installing the apps under my tasksequence section in customsettings.ini but it doesn't show the tick in the applications list, which fair enough I've read plenty on this on the web.

    Problem is my applications under default in customsettings.ini get ticked, but if i untick them to say don't install it, it still installs them.

  • Wednesday, September 12, 2012 10:29 AM
     
     

    Hi

    What is the function of Gather local only under the Preinstall section in my Task Sequence?  Its set to run by default and Gather only local data (do not process rules).

  • Wednesday, September 12, 2012 10:55 AM
     
     

    Sorry, I may not have been clear.  I was not proposing to use a web service to get the data.  I linked to that post because is demonstartes ho to add 2 lines the the validate/initializa script for a pane to run ZTIGather to make it read the CustomSettings.ini again during the wizard.

    You essentially need it to add:

    sCmd = "wscript.exe """ & oUtility.ScriptDir & "\ZTIGather.wsf"""
    oItem = oShell.Run(sCmd, , true)

    to the InitializeApplicationList function.

    Thank you eschloss, this worked.  I've tried editing other scripts as per other instructions/forum posts etc. but none of them worked.

    This did actually work thank you.  Just need to check now if i uncheck an item whether it actually installs still or not

  • Wednesday, September 12, 2012 11:26 AM
     
     

    I've now tested it and although it ticks the applications as listed in my customsettings.ini file but if I decide I want to untick an application in the wizard it still installs the application.

    Is there a way to fix this?

  • Wednesday, September 12, 2012 12:34 PM
     
     

    ZTIApplications.log ? Can you share it and also mention which application did you untick?


    Regards, Vik Singh "If this thread answered your question, please click on "Mark as Answer"

  • Wednesday, September 12, 2012 1:29 PM
     
     

    ZTIApplications.log ? Can you share it and also mention which application did you untick?


    Regards, Vik Singh "If this thread answered your question, please click on "Mark as Answer"

    Hi

    This run has a mandantoryapp from tasksequence W7PROSP1X86. App is ESET Endpoint Antivirus.

    It also has apps under default and these apps are Acro CutePDF and Adobe Flash 11.4.402.265.  I unticked Adobe Flash but it still installed it.  Is there a way to get the wizard to detect what you have changed in the applications wizard pane?

    Link of ZTIApplications.log https://skydrive.live.com/redir?resid=32983B977E1C8AF5!261&authkey=!AAf4BGFATF53t0k

  • Thursday, September 13, 2012 9:58 AM
     
     

    Any ideas anyone?

    Can someone test on a blank install of MDT 2012 update 1 that if they specify applications for default in customsettings.ini and if you untick them in the wizard do they get installed still or not?

  • Thursday, September 13, 2012 10:14 AM
     
     

    i don't have to test for that i know for certain if you put in applications in the default part and then decide to untick them they don't get installed.

  • Thursday, September 13, 2012 10:21 AM
     
     

    Is there a way of reinstalling mdt without me loosing any config etc.?

    If i just reinstall over the top will it overwrite the scripts with the scripts from the install files?

  • Thursday, September 13, 2012 10:29 AM
     
     

    reinstalling or uninstalling MDT won't have any effect on your deployment share since that is a folder that isn't touched when you install or uninstall MDT

    the only time you are going to lose any configurations is when you changed the base configuration files found in C:\Program Files\Microsoft Deployment Toolkit\Templates\Distribution\Scripts.

    the scripts of your deployment share itself only get updated when you install a new version of MDT and need to upgrade your DS.

    so reinstalling won't have much effect.

    you chan however if you want to reset all your scripts copy all scripts from previous mentioned location to the scripts folder of your DS

  • Thursday, September 13, 2012 1:02 PM
     
     

    OK I've done a repair install and forced it to copy the scripts folder back over.  I've disabled the task sequence sections in my customsettings.ini so its only using default and i added to applications to my customsettings.ini file and then unticked one in the wizard but it still installed it.

    Can i upload some log files for someone to check please?

  • Thursday, September 13, 2012 1:36 PM
     
     

    I think the issue is that these properties are set so that once thay have a value, they cannot be overwritten.  when the value of Applications001 has been set, I don't think un-checking it will clear the value of Aplications001.

  • Thursday, September 13, 2012 1:38 PM
     
     
    You supposed to be able to untick them though to not install that app.  Thats the point of the features of applications and mandatoryapplications
  • Thursday, September 13, 2012 1:58 PM
     
     
    I'm starting a new topic on this issue.