Page 2 of 2

OK - seems to be more clear

PostPosted: Wed Sep 05, 2007 5:56 pm
by sergio71
But from where to get the slp key.
With the acer i got a recovery (The drive C can be recovered from a PQI file). On the Dell I ordered I expect the same to receive (as I already have a dell D620 with such a recovery.
THe is nowhere a winnt.sif file anywhere. THe key installed is
not those on the label and if i use this key, then Xp asks me to enter a valid key.

PostPosted: Thu Sep 06, 2007 12:31 am
by mr_smartepants
The key on your sticker cannot be used to activate XP. This is well documented. As crazy as it sounds, it is illegal to give you the SLP key you need even though there is only one for ACER. You have to recover it yourself. But it's easy:
Step 1: Go through the recovery process to restore your system to factory defaults (from the recovery partition).
Step 2: On the desktop, create two text files named "Getfiles.bat" and "Getkey.vbs".
Step 3: Right-click on Getfiles.bat, select "Edit" and paste the following code:
Code: Select all
attrib -s %SystemRoot%\system32\CatRoot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\OEMBIOS.CAT
makecab %SystemRoot%\system32\CatRoot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\OEMBIOS.CAT
attrib +s %SystemRoot%\system32\CatRoot\{F750E6C3-38EE-11D1-85E5-00C04FC295EE}\OEMBIOS.CAT
makecab %SystemRoot%\system32\OEMBIOS.BIN
makecab %SystemRoot%\system32\OEMBIOS.DAT
makecab %SystemRoot%\system32\OEMBIOS.SIG
cscript //nologo getkey.vbs > winnt.sif

Step 4: Right-click on Getkey.vbs, select "Edit" and past the following code:
Code: Select all
Dim objFS, objShell
Dim strXPKey

Set objShell = CreateObject("WScript.Shell")

strXPKey = objShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\ProductName")
If Len(strXPKey) > 0 Then
  WScript.Echo "[UserData]"
  WScript.Echo "ProductKey=" & chr(34) & GetKey(objShell.RegRead("HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\DigitalProductId")) & chr(34)
  WScript.Echo "[Data]"
  WScript.Echo "MSDosInitiated=0"
  WScript.Echo "UnattendedInstall=Yes"
End If

Function GetKey(rpk)
  Const rpkOffset=52:i=28
  szPossibleChars="BCDFGHJKMPQRTVWXY2346789"
  Do
    dwAccumulator=0 : j=14
    Do
      dwAccumulator=dwAccumulator*256
      dwAccumulator=rpk(j+rpkOffset)+dwAccumulator
      rpk(j+rpkOffset)=(dwAccumulator\24) and 255
      dwAccumulator=dwAccumulator Mod 24
      j=j-1
    Loop While j>=0
    i=i-1 : szProductKey=mid(szPossibleChars,dwAccumulator+1,1)&szProductKey
    if (((29-i) Mod 6)=0) and (i<>-1) then
      i=i-1 : szProductKey="-"&szProductKey
    End If
  Loop While i>=0
  GetKey=szProductKey
End Function

Step 5: Double-click Getfiles.bat and let it run.
Step 6: Save the four OEMBIOS.* and the winnt.sif file to a USB drive to use in your new XP build with the OEMSCAN addon. The winnt.sif file contains your SLP key.

That's as simple as I can make it. Hope it helps.

I will try this

PostPosted: Thu Sep 06, 2007 2:24 am
by sergio71
in the evening. Many thanks - seems to be simple (but it is nothing obvious).

KInd Regards

Many Thanks..

PostPosted: Thu Sep 06, 2007 3:58 am
by sergio71
It works on Acer to extract the files and the key. But I guess the same key cannot be used on Dell as well.
So I hope my Backup of the recovery partition works and i can recover the recovery partition
and then restore the xp from this.

PostPosted: Thu Sep 06, 2007 10:37 am
by Siginet
It can be used on Dell. at least as far as I know any slp key can be used on any manufacturer. But it is best to use the key that goes with the manufacturer.

works (partially)

PostPosted: Thu Sep 06, 2007 4:03 pm
by sergio71
Hi thanks for the help.
THe activation works now very well - anyway i
have new problems. I took the winnt.sif file from mr shortpants and use the key I extracted from the recovery
installation.

Now the problems are some message after the installation:
rund32.dll can not be found
when opening the software dialog sysoc.ini can not be found
and something similar for framedyn.dll and srclient.dll.

I guess it has something to do with the winnt.sif file -
I will try with one where there is just the key or
try to change it to be not unattended!

PostPosted: Fri Sep 07, 2007 12:36 am
by mr_smartepants
sergio71 wrote:I took the winnt.sif file from mr shortpants


Well that's a name I've never been called before! ;)

The bare minimum info your winnt.sif file should contain is:
Code: Select all
[UserData]
ProductKey="11111-22222-33333-44444-55555"
[Data]
MSDosInitiated=0
UnattendedInstall=Yes


Your best bet is to use nLite to modify all the files for you. You'll get fewer errors that way.