Creating controls for your application deployment is fairly simple.
Create a simple HTML controls with the variable names you would like to use and the values
Remove the character returns , spaces and form this in a single line format
Create a script to drive the installation based on the options entered from the wizard variable.
Initialize the variable in your script
Now, use oEnvironment.Item(“VariableName”) to leverage your newly created wizard variable. ( you can use MDT help “Create new Scripts from a Template”)
Create the application with the above created script to drive the installation
Paste the line from Step 2 to the “Display Name :” section of the application property
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.
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.
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\Setup_Java.wsf - This will be your script file.
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 !