Blogs

Creating additional controls for MDT Application

  • Comments 7
  • Likes

 

Creating controls for your application deployment is fairly simple.

Step 1:

Create a simple HTML controls with the variable names you would like to use and the values

image

Step 2:

Remove the character returns , spaces and form this in a single line format

image

Step 3:

Create a script to drive the installation based on the options entered from the wizard variable.

Initialize the variable in your script

image

Now, use oEnvironment.Item(“VariableName”) to leverage your newly created wizard variable. ( you can use MDT help “Create new Scripts from a Template”)

image

Create the application with the above created script to drive the installation

image

Paste the line from Step 2 to the “Display Name :” section of the application property

image

Step 4:

Launch the wizard and you will see the controls . When the wizard is processed, all these control names are translated in to MDT Variables ( No Additional coding required ). MDT have the capability to do this and these variables are available until the end of the deployment like any other wizard variables.

image

Disclaimer: The information on this site is provided "AS IS" with no warranties, confers no rights, and is not supported by the authors or Microsoft Corporation. Use of included script samples are subject to the terms specified in the Terms of Use.

Comments
  • Hi,

    Do it works for any applications like Java per example ? I want to install choosed version of java selected in the wizard as you shown.

    Thanks

  • Yes, The example above is to enable a support parameter for any application that are deployable via MDT.

  • Ok but I don't understand how you deal with App guid in wsf script..

    When I checked the desired app, which function call app guid to execute app ?

  • You should add a step in your tasksequence.

    Open your task sequence and

    Add - General - Install Application ( Then select Install multiple applications )

    The above will make it make the function call to all the checked application.

  • Yes you right but my goal is to install one of three version of java which will be checked by radio Burton in wizard. T this time, I checked the box "java" but when i selected any version, there,s no instruction to install desired one.. On the gather, only java guid is choosed

  • You need to write that logic instructions in the wsf file that you are creating.  (Step 3) above.

    Let say you created the control called Java_Version

    In your script, you will gather that like this.

    Your folder structure in MDT would look like this

    Application\Java\JRE6.0\jre.6u-30.exe

    Application\Java\JRE7.0\jre.7u-30.exe

    Application\Setup_Java.wsf  - This will be your script file.

    Dim Java_Version

    oEnvironment.Item(Java_version)

    sFile = oShell.CurrentDirectory & "\Java" & Java_version &"\jre.6u-30.exe"

    oUtility.RunWithHeartbeat(sFile & " /s /v""/qn IEXPLORER=1 ADDLOCAL=ALL UPDATE=1")

  • Thank you but I found another way. This post is very helpful !

Your comment has been posted.   Close
Thank you, your comment requires moderation so it may take a while to appear.   Close
Leave a Comment