locked
cs.ini set custom property via wizard page RRS feed

  • Question

  • I'm unable to understand why custom property DeployType is not parsed in CS.ini when set via custom wizard page. However when used

    Property("DeployType")<>"ThinDesktop" as a condition for skipping Application Selection Wizard. It works. Also, at the end of the wizard screen in summary page I see DeployType value is set to whatever radio button is selected. However, DeployType section is not parsed in CS.ini.

    Please help.

    CS.ini

    [Settings]
    Priority=ByLaptop, ByDesktop, DefaultGateway, DeployType, Default
    Properties=MyCustomProperty, DeployType

    [Default]
    OSInstall=Y
    SkipCapture=YES
    SkipAdminPassword=YES
    SkipProductKey=YES
    SkipComputerBackup=YES
    SkipBitLocker=YES

    [DefaultGateway]
    192.168.137.1=Home

    [Home]
    ;set timezone


    [ByLaptopType]
    Subsection=Laptop-%IsLaptop%

    [Laptop-True]
    ;laptop apps here

    [ThinDesktop]

    ;process selected apps

    SkipApplications=Yes

    [FullDesktop]

    ;list apps

    MadantoryApplications01="{5f3c6612-3a21-4b60-b592-968f70d7f8bd}"

    Wizard page:

    <Wizard>
      <Global>
      </Global>
      <Pane id="CDeploymentType" title="Computer Deployment Type">
        <Body><![CDATA[<H1>Select Computer Deployment Type :</H1>
    <table>
     <tr>
      <td>
       <input type=radio name="DeployType" id="TDRadio1" Checked value="ThinDesktop" language=vbscript AccessKey=A>
      </td>
      <td>
       <Label class="Larger" for=TDRadio1 language=vbscript ><u class=larger>T</u>hin Desktop.</Label>
      </td>
     </tr>
      <tr>
      <td>
       <input type=radio name="DeployType" id="FDRadio2"  value="FullDesktop" language=vbscript AccessKey=B>
      </td>
      <td>
       <Label class="Larger" for=FDRadio2 language=vbscript ><u class=larger>F</u>ull Desktop.</Label>
      </td>
     </tr>
    </table>]]></Body>
      </Pane>
    </Wizard>

    Monday, June 2, 2014 2:55 AM

Answers

  • Hi,

    Just checking the radio box in the wizard won't set the property. You have to add some logic to do it in the associated vbs. You can use something like this :

    Function ValidateMyScreen
    
    If yourradio.checked Then
    	oProperties("yourproperty")="somevalue"
    End If
    
    End Function

    Regards,


    Mickael, My technet galleries contributions : ConfigMgr driver injector : http://gallery.technet.microsoft.com/ConfigMgr-Driver-Injector-aae7d17d SCCM Collection splitter : http://gallery.technet.microsoft.com/SCCM-Collection-Splitter-e1c82b06 ConfigMgr TS Tools : http://gallery.technet.microsoft.com/TSTools-f9b01357


    • Edited by mponsot Monday, June 2, 2014 3:39 PM
    • Marked as answer by Mr.Kris Tuesday, June 3, 2014 12:24 AM
    Monday, June 2, 2014 3:27 PM
  • I'm unable to understand why custom property DeployType is not parsed in CS.ini when set via custom wizard page. However when used

    Property("DeployType")<>"ThinDesktop" as a condition for skipping Application Selection Wizard. It works. Also, at the end of the wizard screen in summary page I see DeployType value is set to whatever radio button is selected. However, DeployType section is not parsed in CS.ini.

    There are some misconceptions here.

    Typically, the cs.ini file is parsed *before* running the wizard. You don't actually *set* DeployType in the cs.ini file, so there is nothing to do here.

    Now if you wish to re-run the cs.ini file after the wizard, during the task sequence, then read this: http://www.deployvista.com/tabid/36/EntryID/139/language/en-US/Default.aspx

    Also note, that typically, if a value is already set, then ZTIGather.wsf will *not* override the value from something in the cs.ini file.


    Keith Garner - Principal Consultant [owner] - http://DeploymentLive.com

    Monday, June 2, 2014 9:12 PM

All replies

  • Hi,

    Just checking the radio box in the wizard won't set the property. You have to add some logic to do it in the associated vbs. You can use something like this :

    Function ValidateMyScreen
    
    If yourradio.checked Then
    	oProperties("yourproperty")="somevalue"
    End If
    
    End Function

    Regards,


    Mickael, My technet galleries contributions : ConfigMgr driver injector : http://gallery.technet.microsoft.com/ConfigMgr-Driver-Injector-aae7d17d SCCM Collection splitter : http://gallery.technet.microsoft.com/SCCM-Collection-Splitter-e1c82b06 ConfigMgr TS Tools : http://gallery.technet.microsoft.com/TSTools-f9b01357


    • Edited by mponsot Monday, June 2, 2014 3:39 PM
    • Marked as answer by Mr.Kris Tuesday, June 3, 2014 12:24 AM
    Monday, June 2, 2014 3:27 PM
  • Thought so .. I have a VBS but wasn't sure whether to use oEnvironment vs Property vs oProperties.

    Thanks

    Monday, June 2, 2014 4:23 PM
  • I'm unable to understand why custom property DeployType is not parsed in CS.ini when set via custom wizard page. However when used

    Property("DeployType")<>"ThinDesktop" as a condition for skipping Application Selection Wizard. It works. Also, at the end of the wizard screen in summary page I see DeployType value is set to whatever radio button is selected. However, DeployType section is not parsed in CS.ini.

    There are some misconceptions here.

    Typically, the cs.ini file is parsed *before* running the wizard. You don't actually *set* DeployType in the cs.ini file, so there is nothing to do here.

    Now if you wish to re-run the cs.ini file after the wizard, during the task sequence, then read this: http://www.deployvista.com/tabid/36/EntryID/139/language/en-US/Default.aspx

    Also note, that typically, if a value is already set, then ZTIGather.wsf will *not* override the value from something in the cs.ini file.


    Keith Garner - Principal Consultant [owner] - http://DeploymentLive.com

    Monday, June 2, 2014 9:12 PM
  • mponsot ... other mistake/overlooked I made was I added customscript pointing to the script and condition but never had validate/initlization etc to write/set the property by calling that function.

    Thanks for highlighting that ...

    • Edited by Mr.Kris Tuesday, June 3, 2014 12:32 AM
    Tuesday, June 3, 2014 12:24 AM