Jump to content

Select PRODKEY during CIW-stage


Recommended Posts

My recent attempts on a completely automated install haven't been as successful as I hoped...

I can't seem to get the product key selection in the osc-screen to work.

The idea is to have a <select>-field, where one chooses the appropriate computername and the product-key gets filled out with the correct key. I have to do this, as I unfortunately don't have a volume licence but 3 oem-licences (which can't be all the same, logically). Also, it's my honor that doesn't allow me to just create 3 different images with different sif-files, I'm shure you understand that ;)

Following is the code from welcome.osc (I cut the CIW-stage down to welcome.osc and the auto-entered install.osc) and from ristndrd.sif

welcome.osc

<OSCML>
<TITLE> Client Installation Wizard Einloggen</TITLE>
<FOOTER> [ENTER] Installieren [ESC] Loeschen [F3] Computer neu starten</FOOTER>
<META KEY=F3 ACTION="REBOOT">
<META KEY=F1 HREF="LOGINHLP">
<META KEY=ESC HREF="LOGIN">
<META ACTION="LOGIN">
<BODY left=5 right=75>
<BR>
<BR>
Bitte geben Sie ihren Benutzernamen und Ihr Passwort fuer die Domaene %SERVERDOMAIN% ein.
<BR>
<BR>
<BR>
<FORM ACTION="CHOICE">
  Benutzername: <INPUT NAME="USERNAME" MAXLENGTH=255>
      Passwort: <INPUT NAME="*PASSWORD" TYPE=PASSWORD MAXLENGTH=20><BR>
       Domaene: <INPUT NAME="USERDOMAIN" VALUE=%SERVERDOMAIN% MAXLENGTH=255>
<BR>
Licence:<SELECT NAME="PRODKEY" NOAUTO>
<OPTION VALUE="ABCDE-FGHIJ-KLMNO-PQRST-UVWXY" SELECTED>WH-HOME-PC01
<OPTION VALUE="ZYMVY-IUTGS-IPUMY-JSORS-IDBYM">WH-HOME-PC04
<OPTION VALUE="QROTP-YALOM-QRIOM-QUHZU-MYAOR">WH-HOME-NB01
</SELECT>

<INPUT NAME="NTLMV2Enabled" VALUE=%NTLMV2Enabled% MAXLENGTH=255 type=VARIABLE>
<INPUT NAME="ServerUTCFileTime" VALUE=%ServerUTCFileTime% MAXLENGTH=255 type=VARIABLE>
</FORM>
<BR>
<BR>
<BR>
Das Tastaturlayout ist US-Englisch, d.h. Y und Z sind vertauscht. Ebenso sind andere Sonderzeichenbelegungen zu beruecksichtigen.
<BR>
Benutzen Sie die TAB-Taste, um zwischen den einzelnen Feldern zu wechseln.
<BR>
<BR>
Sie sind verbunden mit %SERVERNAME%
</BODY>
</OSCML>

ristndrd.sif

[data]
floppyless = "1"
msdosinitiated = "1"
OriSrc = "\\%SERVERNAME%\RemInst\%INSTALLPATH%\%MACHINETYPE%"
OriTyp = "4"
LocalSourceOnCD = 1
DisableAdminAccountOnDomainJoin = 1

[SetupData]
OsLoadOptions = "/noguiboot /fastdetect"
SetupSourceDevice = "\Device\LanmanRedirector\%SERVERNAME%\RemInst\%INSTALLPATH%"

[Unattended]
OEMPreinstall = Yes
DriverSigningPolicy = Ignore
OEMPnPDriversPath = \Drivers\NIC;\Drivers\ATI;\Drivers\IntelBoard;\Drivers\SBAudigy;\Drivers\AC97;\Drivers\MISC
FileSystem = LeaveAlone
ExtendOEMPartition = 0
TargetPath = \WINDOWS
OemSkipEula = yes
InstallFilesPath = "\\%SERVERNAME%\RemInst\%INSTALLPATH%\%MACHINETYPE%"
Hybernation=1
CrashDumpSetting=0

[UserData]
FullName = "%USERFIRSTNAME% %USERLASTNAME%"
OrgName = "%ORGNAME%"
ComputerName = %MACHINENAME%
ProductKey = %PRODKEY%

[GuiUnattended]
OemSkipWelcome = 1
OemSkipRegional = 1
TimeZone = %TIMEZONE%
AdminPassword = "*"

[Display]
BitsPerPel = 16
XResolution = 800
YResolution = 600
VRefresh = 60

[Networking]

[NetServices]
MS_Server=params.MS_PSched

[Identification]
JoinDomain = %MACHINEDOMAIN%
DoOldStyleDomainJoin = Yes

---snip---

[OSChooser]
Description="Windows XP SP2 BASEINSTALL"
Help="Basisinstallation von WINXPPROSP2"
LaunchFile="%INSTALLPATH%\%MACHINETYPE%\templates\startrom.com"
ImageType=Flat
Version="5.1 (2600)"

Checking the temporary sif that gets stored on the server, I see that the %PRODKEY%-value is "" (empty), but I triple-checked that I've selected a value from the <select>-list.

Any help is appreciated.

Michael

[edit] typo in topic title [/edit]

Edited by wagich
Link to comment
Share on other sites


No, I've made them up, but I thought I'd use something which looks real, when you look closely you see characters which don't occur in valid keys.

You're right about using just one, but then the activation comes by and says that I've activated windows too often and therefore need to call (yea, well, I'm enjoing dictating a 60 chars over the phoneline to some underpayed call center guy who doesn't speak my native language...).

Hmm, VLK just make life a lot easier.

Link to comment
Share on other sites

If you set the key manually and pass the variable somewhere else in the file, does PRODKEY come across into GUI setup? I'm not entirely sure that the product key field can be variable-ized, but I'll check to be sure.

Link to comment
Share on other sites

That'd be worth a try...

Do I use SET varname = <value> in the sif-file (and then access it by %varname%)?

Or do you think about an <input>-field in the osc-screen where I put in the code manually?

Link to comment
Share on other sites

I tried something similar to you. Here is my experience on this.

Location    &nbsp: <SELECT NAME="MACHINEOU">
<OPTION VALUE="%SERVERDOMAIN%/1/RIS">TEST
<OPTION VALUE="%SERVERDOMAIN%/2/RIS">TEST
<OPTION VALUE="%SERVERDOMAIN%/3/RIS">TEST
</SELECT>

Then using it in my SIF file. This isn't acutally a really exact match to your stuff but if I wanted, I could use the variable %MACHINEOU% in the sif file.

The only i see different from your file and mine is that you use space when you declare your value.

You could try without dash in your prod key.

Good luck!

Hope this helps!

Edited by jfmartel
Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...