B
Brendon Rogers
Windows 2000 Server and Pro SP4
I have customized my RIS CIW / OSC files to provide me with a simple menu
choice which requires the tech to select the licence type on the computer,
we want to collect this information for auditing purposes.
Excerpt from LICENSE.OSC:
<FORM ACTION="WARNING">
License type: <SELECT NAME="LICENSETYPE" MAXLENGTH=40><BR>
<OPTION VALUE="None">None
<OPTION VALUE="WindowsXP">Windows XP
<OPTION VALUE="WindowsXP2K">Windows XP & 2000
<OPTION VALUE="Windows2KNT">Windows 2000 & NT4
<OPTION VALUE="WindowsNT">Windows NT4
<OPTION VALUE="Windows9895">Windows 98SE & 95
</SELECT>
I have the menu system working just fine, now my issue is how to pass the
choice to the OS so I can store it somewhere and refer to it later on.
Technet mentions you can use any variable you like in the OSC files, in this
case its %LICENSETYPE%.
How do I store the data in this variable in the registry or a text file? I
have managed to implement a workaround in the .SIF file:
[GuiRunOnce]
%LICENSETYPE%
This stores the info in
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce.
I then run a VBScript which is called by CMDLINES.TXT which should read this
key, reseave it in a more appropriate location then delete it (since its
obviously not a valid RunOnce command). However, it appears the VBScript
runs after the RunOnce entry is populated. I have tested the VBScript on a
completed machine and it works then so the script is not at fault.
Any suggestions or other ideas?
Brendon
I have customized my RIS CIW / OSC files to provide me with a simple menu
choice which requires the tech to select the licence type on the computer,
we want to collect this information for auditing purposes.
Excerpt from LICENSE.OSC:
<FORM ACTION="WARNING">
License type: <SELECT NAME="LICENSETYPE" MAXLENGTH=40><BR>
<OPTION VALUE="None">None
<OPTION VALUE="WindowsXP">Windows XP
<OPTION VALUE="WindowsXP2K">Windows XP & 2000
<OPTION VALUE="Windows2KNT">Windows 2000 & NT4
<OPTION VALUE="WindowsNT">Windows NT4
<OPTION VALUE="Windows9895">Windows 98SE & 95
</SELECT>
I have the menu system working just fine, now my issue is how to pass the
choice to the OS so I can store it somewhere and refer to it later on.
Technet mentions you can use any variable you like in the OSC files, in this
case its %LICENSETYPE%.
How do I store the data in this variable in the registry or a text file? I
have managed to implement a workaround in the .SIF file:
[GuiRunOnce]
%LICENSETYPE%
This stores the info in
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\RunOnce.
I then run a VBScript which is called by CMDLINES.TXT which should read this
key, reseave it in a more appropriate location then delete it (since its
obviously not a valid RunOnce command). However, it appears the VBScript
runs after the RunOnce entry is populated. I have tested the VBScript on a
completed machine and it works then so the script is not at fault.
Any suggestions or other ideas?
Brendon