Wednesday, January 07, 2009
Deployment Forum HomeDeployment Forum ArticlesDeployment Forum Download LibraryDeployment Forum Member BlogsDeployment Forum Community Forums
Member Login
StandardLiveID


Register
Forgot Password ?



Guests can view and read messages in the community forums, but you must register and log in to Deployment Forum before you can post messages. Click Register at the top of this page. Before posting messages, please read the forum guidelines at the bottom of this page.

Subject: Error 500 when adding to the Windows Deployment Wizard.
Prev Next
You are not authorized to post a reply.

AuthorMessages
SieversUser is Offline

Posts:18

Send Message
08/22/2008 12:48 PM  

I am trying to add a wizard screen to select which one of our offices the computer is being shipped to.  I owe huge credit to David Sebban's orignal modification for Room selection (David Sebban's Room Selection).  The website link has been translated from French, which I had to look at the code on the non translated web site.  I have attached a jpg below that shows what I have done and the error.   If any one could look at the code that I have added, and tell me what I am doing wrong.  I have just got into vbscripting, htas, and xml over the 6 months so it might be a easy one I am overlooking.  Any help would be highly apprieciated.  Thanks in advance.

 The error message i recieve:

A VBScript Runtime Error has occurred:

Error: 500 = Variable is undefined

VBScript Code:

----------------------------

ValidateFBLOffices

 

Code Snippets:

DeployWiz_Definition_ENU.xml:

  
(Note:  See Picture Below.  This is a screen capture of the Microsoft Deployment Toolkit Wizard Editor)

Under Settings I set the following:
Condition:    UCASE(Property("SkipFBLOFFICES"))<>"YES"
Initialization:    InitializeFBLOffices
Validation:    ValidateFBLOffices
 

DeployWiz_Initialization.vbs:

Function InitializeFBLOffices

    Dim oItem
    Dim oOption
    Set oXMLSiteData = nothing

    ' Load the Site Configuration XML file.
    Set oXMLSiteData = oUtility.CreateXMLDOMObjectEx( property("DeployRoot") & "\control\FBLOffices.xml" )

    For each oItem In oXMLSiteData.selectNodes("//FBLOffices/FBLOffice")
        Set oOption = document.createElement("OPTION")
        oOption.Value = oItem.selectSingleNode("ID").text
        oOption.Text = oItem.selectSingleNode("Name").text
        FBLOfficeList.Add oOption
    Next
End Function

DeployWiz_Validation.vbs

Function ValidateFBLOffices
    If SiteList.Value <> "" Then
        oEnvironment.Item("FBLOffices") = FBLOfficeList.Value
        ValidateFBLOffices = True
    Else
        ValidateFBLOffices = False
    End If
End Function

FBLOffices.xml:

(See Attachment below) 

CustomSettings.ini:

Properties=modelalias, FBLOffice

 


Attachment: FBLOffices.xml







SieversUser is Offline

Posts:18

Send Message
08/22/2008 1:19 PM  

One thing I did notice is that the Variables.dat is not populating a FBLOffice variable.

 

PyrosoftUser is Offline

Posts:48

Send Message
08/26/2008 8:53 AM  
I may be on the wrong track here, but do you not just need a "dim ValidateFBLOffices" line added to the DeployWiz_Validation.vbs?
SieversUser is Offline

Posts:18

Send Message
08/27/2008 10:53 AM  
I tried to put that under the ValidateFBLOffices function.  It causes the whole script to fail and throws an error at the Litetouch Wizard.  I'm pretty sure that the ValidateFBLOffices=True or False is referencing to the function it self.  Any other ideas?
SieversUser is Offline

Posts:18

Send Message
08/27/2008 11:05 AM  
So am I mistaken about the error message?  When the Error 500 comes up and states VBScript Code: ValidateFBLOffice.  Isn't this just referencing the function and not a actual varialbe?  If so how do I tell which variable is throwing the error?
SieversUser is Offline

Posts:18

Send Message
08/27/2008 3:40 PM  

This is the line that was causing the problem:

 If SiteList.Value <> "" Then

Which I changed to

 If FBLOfficeList.Value<> "" Then

But it doesn't set the variable in the variables.dat.  Anyone have any suggestions?

You are not authorized to post a reply.
Forums > Deployment Solutions > MDT 2008 > Error 500 when adding to the Windows Deployment Wizard.



ActiveForums 3.7
Forum Policies
Minimize

These forums are a user-supported community for IT professionals to exchange deployment tips, solutions, and techniques. For the benefit of all Deployment Forum members, please observe the following guidelines when posting to these forums:

  • We reserve the right to remove any message. Our moderators will remove all messages that are not respectful or productive. Profanity, racism, prejudice, and flaming are not tolerated.
  • Do not advertise products or services. Our moderators will remove all advertisements or service announcements. Product and service recommendations from active Deployment Forum members are encouraged, however.
  • Make sure your question isn't already answered. Before posting questions, search the forums. After ensuring that your questions are unique, post them to the most appropriate forum. This will help reduce noise in the forums.
  • Help make the most of each thread. Do not post unrelated messages to a thread. Also, if you've resolved a question outside of these forums, please share the solution with other members by posting it back to the thread.
  • Do not share confidential information. Confidential information includes product keys and addresses. Our moderators will edit any message containing confidential information, so double-check messages and their attachments before posting them.
  • Post messages using only the English language. For the benefit of all Deployment Forum members, please post your messages using the English language.

We hope that you enjoy using this community. Please submit your comments and feedback on the Comments and Feedback page or post them to the Comments, Feedback forum.



Privacy Statement  |  Terms Of Use
© 2007 Jerry Honeycutt