Post by ben22 on Jun 20, 2018 7:37:07 GMT
Hi,
I am quite new to UI++, so sincere apologies if this is a stupid question.... I searched and couldn't find anything on this, and I believe my config xml looks correct.
My config.xml
<?xml version="1.0" encoding="utf-8"?>
<UIpp Title="My Build">
<Actions>
<Action Type="Input" Name="ServerInfo" Title="Server Information">
<TextInput Variable="CompName" Question="Server Name:" RegEx="^(?!-)[a-zA-Z0-9-]{1,15}" />
<ChoiceInput Variable="OS" Question="Operating System:" Required="True" Default="OS_2016">
<Choice Option="Server 2016" Value="OS_2016"/>
<Choice Option="Server 2012 R2" Value="OS_2012R2"/>
</ChoiceInput>
<ChoiceInput Variable="Role" Question="Server Role:" Required="True" Default="None">
<Choice Option="None" Value="None"/>
<Choice Option="File" Value="Role_File"/>
<Choice Option="RDS" Value="Role_RDS"/>
<Choice Option="Web" Value="Role_Web"/>
</ChoiceInput>
</Action>
<Action Type="TSVar" Name="OSDComputerName">"%CompName%"</Action>
<Action Type="TSVar" Name="OS">"%OS%"</Action>
<Action Type="TSVar" Name="Role">"%Role%"</Action>
</Actions>
</UIpp>
The log that gets spat out - notice the bolded lines, where the variable is set correctly and then set to "Windows_NT" for reasons I don't understand.
<![LOG[-- UI++ Startup ----------------------------------------]LOG]!><time="15:46:03.000+480" date="06-20-2018" component="UI++" context="" type="1" thread="1224" file="ui++.cpp:97">
<![LOG[UI++ version: 2.10.4.0.]LOG]!><time="15:46:03.000+480" date="06-20-2018" component="UI++" context="" type="1" thread="1224" file="ui++.cpp:102">
<![LOG[Running from within a Task Sequence]LOG]!><time="15:46:03.000+480" date="06-20-2018" component="UI++" context="" type="1" thread="1224" file="ui++.cpp:111">
<![LOG[Loading configuration file "UI++.xml": No error]LOG]!><time="15:46:03.000+480" date="06-20-2018" component="UI++" context="" type="1" thread="1224" file="ui++.cpp:699">
<![LOG[Loading VBScript environment: Success. ]LOG]!><time="15:46:03.000+480" date="06-20-2018" component="UI++" context="" type="1" thread="1224" file="ui++.cpp:267">
<![LOG[Begin configuration file read]LOG]!><time="15:46:03.000+480" date="06-20-2018" component="UI++" context="" type="1" thread="1224" file="ui++.cpp:270">
<![LOG[Found <Input> Action: ServerInfo]LOG]!><time="15:46:03.000+480" date="06-20-2018" component="UI++" context="" type="1" thread="1224" file="ui++.cpp:302">
<![LOG[ Initiating <Input> Action: ServerInfo]LOG]!><time="15:46:03.000+480" date="06-20-2018" component="UI++" context="" type="1" thread="1224" file="ui++.cpp:331">
<![LOG[ * Adding <TextInput> Input: Server Name:]LOG]!><time="15:46:03.000+480" date="06-20-2018" component="UI++" context="" type="1" thread="1224" file="userinputaction.cpp:69">
<![LOG[ * Adding Choice: 'Server 2016', value: 'OS_2016', alternate value: '']LOG]!><time="15:46:03.000+480" date="06-20-2018" component="UI++" context="" type="1" thread="1224" file="userinputaction.cpp:130">
<![LOG[ * Adding Choice: 'Server 2012 R2', value: 'OS_2012R2', alternate value: '']LOG]!><time="15:46:03.000+480" date="06-20-2018" component="UI++" context="" type="1" thread="1224" file="userinputaction.cpp:130">
<![LOG[ * Adding <ChoiceInput> Input: Operating System:]LOG]!><time="15:46:03.000+480" date="06-20-2018" component="UI++" context="" type="1" thread="1224" file="userinputaction.cpp:201">
<![LOG[ * Adding Choice: 'None', value: 'None', alternate value: '']LOG]!><time="15:46:03.000+480" date="06-20-2018" component="UI++" context="" type="1" thread="1224" file="userinputaction.cpp:130">
<![LOG[ * Adding Choice: 'File', value: 'Role_File', alternate value: '']LOG]!><time="15:46:03.000+480" date="06-20-2018" component="UI++" context="" type="1" thread="1224" file="userinputaction.cpp:130">
<![LOG[ * Adding Choice: 'RDS', value: 'Role_RDS', alternate value: '']LOG]!><time="15:46:03.000+480" date="06-20-2018" component="UI++" context="" type="1" thread="1224" file="userinputaction.cpp:130">
<![LOG[ * Adding Choice: 'Web', value: 'Role_Web', alternate value: '']LOG]!><time="15:46:03.000+480" date="06-20-2018" component="UI++" context="" type="1" thread="1224" file="userinputaction.cpp:130">
<![LOG[ * Adding <ChoiceInput> Input: Server Role:]LOG]!><time="15:46:03.000+480" date="06-20-2018" component="UI++" context="" type="1" thread="1224" file="userinputaction.cpp:201">
<![LOG[ + Set the task sequence variable 'CompName' to the value 'TESTMEDIA1']LOG]!><time="15:46:26.000+480" date="06-20-2018" component="UI++" context="" type="1" thread="1224" file="tsvar.cpp:209">
<![LOG[ + Set the task sequence variable 'OS' to the value 'OS_2016']LOG]!><time="15:46:26.000+480" date="06-20-2018" component="UI++" context="" type="1" thread="1224" file="tsvar.cpp:209">
<![LOG[ + Set the task sequence variable 'Role' to the value 'None']LOG]!><time="15:46:26.000+480" date="06-20-2018" component="UI++" context="" type="1" thread="1224" file="tsvar.cpp:209">
<![LOG[ > OK button pushed ... moving to next action.]LOG]!><time="15:46:26.000+480" date="06-20-2018" component="UI++" context="" type="1" thread="1224" file="ui++.cpp:354">
<![LOG[Found <TSVar> Action: OSDComputerName]LOG]!><time="15:46:26.000+480" date="06-20-2018" component="UI++" context="" type="1" thread="1224" file="ui++.cpp:302">
<![LOG[ Initiating <TSVar> Action: OSDComputerName]LOG]!><time="15:46:26.000+480" date="06-20-2018" component="UI++" context="" type="1" thread="1224" file="ui++.cpp:331">
<![LOG[ + Set the task sequence variable 'OSDComputerName' to the value 'TESTMEDIA1']LOG]!><time="15:46:26.000+480" date="06-20-2018" component="UI++" context="" type="1" thread="1224" file="tsvar.cpp:209">
<![LOG[Found <TSVar> Action: OS]LOG]!><time="15:46:26.000+480" date="06-20-2018" component="UI++" context="" type="1" thread="1224" file="ui++.cpp:302">
<![LOG[ Initiating <TSVar> Action: OS]LOG]!><time="15:46:26.000+480" date="06-20-2018" component="UI++" context="" type="1" thread="1224" file="ui++.cpp:331">
<![LOG[ + Set the task sequence variable 'OS' to the value 'Windows_NT']LOG]!><time="15:46:26.000+480" date="06-20-2018" component="UI++" context="" type="1" thread="1224" file="tsvar.cpp:209">
<![LOG[Found <TSVar> Action: Role]LOG]!><time="15:46:26.000+480" date="06-20-2018" component="UI++" context="" type="1" thread="1224" file="ui++.cpp:302">
<![LOG[ Initiating <TSVar> Action: Role]LOG]!><time="15:46:26.000+480" date="06-20-2018" component="UI++" context="" type="1" thread="1224" file="ui++.cpp:331">
<![LOG[ + Set the task sequence variable 'Role' to the value 'None']LOG]!><time="15:46:26.000+480" date="06-20-2018" component="UI++" context="" type="1" thread="1224" file="tsvar.cpp:209">
<![LOG[-- UI++ Finished ----------------------------------------]LOG]!><time="15:46:26.000+480" date="06-20-2018" component="UI++" context="" type="1" thread="1224" file="ui++.cpp:417">
Can someone shed some light on this?
And again, if I have missed something obvious - I apologise in advance!