Revisiting LTI deployment wizard application selection profiles


A few years back, I posted a blog at http://blogs.technet.com/b/mniehaus/archive/2010/06/11/selection-profiles-with-the-lite-touch-deployment-wizard.aspx describing how to modify the Lite Touch wizard so that the deployment wizard shows a different list of applications based on the task sequence that was selected.  This worked fine with MDT 2010 Update 1, but there have been a few changes to the scripts and the structure since then.  So how do you need to do it now?  Well, it hasn’t changed much, but just enough to break things.

First, the script that you need to modify is now DeployWiz_Applications.vbs.  This script contains the logic that is specific to the application wizard pane.  (In MDT 2012, the wizard was split up so that each pane uses its own wizard files, see http://blogs.technet.com/b/mniehaus/archive/2012/03/01/3474394.aspx for more details.)  The logic that needs to be changed is in the same “IsThereAtLeastOneApplicationPresent” function, but one of the variable names was changed from “oXMLAppList” to “g_oXMLAppList” to reflect that it is a global variable.  So now the logic needs to be changed to look like this:

image

So the first line is changed from:

g_oXMLAppList.sSelectionProfile = oEnvironment.Item(“WizardSelectionProfile”)

to:

g_oXMLAppList.sSelectionProfile = oEnvironment.Substitute(“For %TaskSequenceID%”)  ‘ MODIFIED

and the second section is added:

‘ INSERTED
If dXMLCollection.count = 0 then
        g_oXMLAppList.sSelectionProfile = oEnvironment.Item(“WizardSelectionProfile”) 
        Set dXMLCollection = g_oXMLAppList.FindItems 
End if
‘ END INSERTED

The key changes from the original version are highlighted above.  So that’s all there is to it, now the logic should work fine with MDT 2012 and MDT 2012 Update 1.

Comments (11)
  1. Thanks for the help on this one!

  2. No, there would be no entries in CustomSettings.ini for this.  This is because %TaskSequenceID% is blank at the time CustomSettings.ini is evaluated.

  3. Travis says:

    Is this what my customsettings should look like?

    [Settings]

    Priority=TaskSequenceID,Default

    Properties=MyCustomProperty

    [Default]

    WizardSelectionProfile=%TaskSequenceID%

  4. Raffi says:

    Hello Michael, thanks for the article but i have a big problem.

    It seems, that the variable %TaskSequenceID% isn´t known at this time.

    On my system (fresh install of testenvironement) a MsgBox("%TaskSequenceID%")

    Shows %TaskSequenceID%

    Any suggestions?? It´s really urgent.

    Thanks,

    Raffi

  5. jesse says:

    I'm getting:

    Error: 424 = Object Required

    VBScript Code:

    ——-

    IsThereAtLeastOnceApplicationPresent

    Thoughts?

  6. Adam5740 says:

    Hi,

    Applied all setting, keep getting error 1032 from DeployWiz_Apllications:

    'Bail out early if …. application step in the

    ends there

  7. Adam5740 says:

    From above, the error comes from:

    – Wizard.hta

    Line 321 Char 3

    Object Required: 'oElement'

  8. gaurav pandey says:

    I want to create a local profile and I want to do in my post installation task sequence can u please guide me how I do this what r the steps ???

    THANK YOU

  9. Chuck says:

    Using MDT 2013, any reason why I would be receiving an error 5206 at the end of my build with these changes? Reverting and running the same tasks there is no 5206 error.

  10. showbox says:

    Thanks for the great info. I really loved this. I would like to apprentice at the same time as you amend your web site, how could i subscribe for a blog site?
    For more info on showbox please refer below sites:
    http://showboxandroids.com/showbox-apk/
    http://showboxappandroid.com/
    Latest version of Showbox App download for all android smart phones and tablets.
    http://movieboxappdownloads.com/ – It’s just 2 MB file you can easily get it on your android device without much trouble. Showbox app was well designed application for android to watch movies and TV shows, Cartoons and many more such things on your smartphone.
    For showbox on iOS (iPhone/iPad), please read below articles:
    http://showboxappk.com/showbox-for-ipad-download/
    http://showboxappk.com/showbox-for-iphone/
    Showbox for PC articles:
    http://showboxandroids.com/showbox-for-pc/
    http://showboxappandroid.com/showbox-for-pc-download/
    http://showboxforpcs.com/
    There are countless for PC clients as it is essentially easy to understand, simple to introduce, gives continuous administration, effectively reasonable. it is accessible at completely free of expense i.e., there will be no establishment charges and after establishment
    it doesn’t charge cash for watching films and recordings. Not simply watching, it likewise offers alternative to download recordings and motion pictures. The accompanying are the strides that are to be taken after to introduce Showbox application on Android.
    The above all else thing to be done is, go to the Security Settings on your Android telephone, Scroll down and tap on ‘Obscure sources’.

  11. aw says:

    hai, I just want to tell you that I am just very new to blogs and seriously loved this website. More than likely I’m planning to bookmark your blog post .
    You amazingly come with really good posts. Thanks a lot for sharing your blog Microsoft.

    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Teknik
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Teknisi
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Televisi
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Teller
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20TNI
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Trans7
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20PLN
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Telkomsel
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Kimia%20Farma
    http://www.lokerjobindo.com/search/label/Loker%20Daerah%20Jakarta%20Selatan
    http://www.lokerjobindo.com/search/label/Loker%20Daerah%20Jakarta%20Pusat
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Jakarta%20Barat
    http://www.lokerjobindo.com/search/label/Loker%20Daerah%20Jakarta%20Timur
    http://www.lokerjobindo.com/search/label/Loker%20Daerah%20Jakarta%20Utara
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Indosat
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20XL%20AXIATA
    http://www.lokerjobindo.com/search/label/Loker%20Daerah%20Bangka%20Belitung
    http://www.lokerjobindo.com/search/label/Loker%20Daerah%20Gorontalo
    http://www.lokerjobindo.com/search/label/Loker%20Daera%20Jambi
    http://www.lokerjobindo.com/search/label/Loker%20Daerah%20Jawa%20Barat
    http://www.lokerjobindo.com/search/label/Loker%20Daerah%20Jawa%20Tengah
    http://www.lokerjobindo.com/search/label/Loker%20Daerah%20Jawa%20Timur
    http://www.lokerjobindo.com/search/label/Loker%20Daerah%20Kalimantan%20Barat
    http://www.lokerjobindo.com/search/label/Loker%20Daerah%20Kalimantan%20Selatan
    http://www.lokerjobindo.com/search/label/Loker%20Daerah%20Kalimantan%20Tengah
    http://www.lokerjobindo.com/search/label/Loker%20Daerah%20Kalimantan%20Timur
    http://www.lokerjobindo.com/search/label/Loker%20Daerah%20Kalimantan%20Utara
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Sopir
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Statistik
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20swasta
    http://www.lokerjobindo.com/search/label/Lowongan%20Kerja%20Tambang

Comments are closed.