Create custom LiteTouch Wizard question/variable. - MDT 2012 U1

Answered Create custom LiteTouch Wizard question/variable. - MDT 2012 U1

  • Monday, March 18, 2013 11:41 PM
     
     

    I am looking for a way to ask the user performing deployment for things such as their email address, and name of project.  We have many data center employees who perform builds.  I want them to be able to enter their email address, and project name so they can receive an email when it completes.

     I am currently using the ZTISendEmail script found here .  It uses a variable OSDSendMailTo defined it deployment share properties.  But this is static, and currently we have it sending to all employees.  Also, it just says "The deployment of %OSDComputerName% is complete." Where I want it to say something like "The deployment of %OSDComputerName% for project: %projectname% is complete".

    Can someone point me to an easy way to accomplish this?

    Thanks!


All Replies

  • Tuesday, March 19, 2013 8:38 PM
     
     

    You could try

    [SendMail]
     OSDSendMailFrom=WhateverYourServiceAccountIsthatSendsMail@deploy.net
     OSDSendMailTo=%UserID%@dot.net

    This assumes that the logon account is the same as the user account that is being used for your deployments.


    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ” How to ask a question that is fixable.

  • Tuesday, March 19, 2013 9:20 PM
     
     
    Thanks for that info Ty.  Unfortunately our deployment server is isolated from our corporate network, and I have it configured now to login via a static service account so our deployment technicians dont need to login etc.  I'm also more curious about editing the wizards to set custom variables than anything.
  • Thursday, March 21, 2013 2:35 PM
     
     Answered
    You might be able to insert a field into one of your wizard pages using: http://mdtwizardstudio.codeplex.com/

    Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread. ” How to ask a question that is fixable.

    • Marked As Answer by Jason Fritts Thursday, March 28, 2013 10:00 PM
    •  
  • Thursday, March 28, 2013 5:45 AM
     
     

    Thanks, that does look promising. I was able to open the various wizards and see their code.  However, as I am not much of a coder, im not sure how to proceed from there.  My understanding is that using that tool I should be able to create my own wizard page, with a text box entry for say an email address, and a text box for project name.  How to make those variables which can be used elsewhere, and how to make that new wizard page appear during the normal sequence of wizard panes I am unsure of.

    Any help is appreciated!

  • Thursday, March 28, 2013 10:00 PM
     
     Proposed Answer Has Code

    After staring at the existing wizard code for quite awhile, I was able to figure it out.  For others here is what i did.

    Use the MDT wizard studio to open DeploymentShare\scripts\DeployWiz_Definition_ENU.XML.  This will open the lite touch deployment configuration, showing each of the wizard screens and showing the code and html involved.  For my purpose, I just added a new pane and gave it a name and .xml filename.  From there I just copied the basic HTML code from the DeployWiz_ComputerName.xml into my pane's html code. Then changed the variable names, and removed the validation script parts of the code.  It ended up looking something like this:

        <Body><![CDATA[
    <H1>Project Information.</H1>
    
    <p>This information will be used to identify this project during notifications.</p>
    
    <table>
    	<tr valign=top>
    
    	<td width="100%">
    		Install Name (ex. Customer's DB01 server: <br>
    		<input type=text id="projectname" name="projectname"  size=50 language=vbscript>
    		<br><br>
    
    		Install Ticket # / Sales Order # / dotProject #: <br>
    		<input type=text id="projectid" name="projectid" size=50 language=vbscript>
    		<br><br>
    		
    		Notification Email (ex. email@email.com): <br>
    		<input type=text id="notificationid" name="notificationid" size=50 language=vbscript>
    		<br><br>
    
    	</td>
    
    	</tr>
    </table>]]></Body>

    From there, moved the pane into the right order and saved the DeployWiz_Definition_ENU.xml.  Then those variable names projectname, projectid, notificationid etc. could be used in the customsettings.ini like %projectname% , %projectid%, %notificationid% .  Which I used when defining what the SendMail body sent.

    Anyways, hope that helps someone.  Thanks for the help!


    • Edited by Jason Fritts Thursday, March 28, 2013 10:04 PM
    • Proposed As Answer by Ty Glander Friday, March 29, 2013 5:23 PM
    •