Jump to content

How to Auto-Insrt the Serial Number?


Recommended Posts

hey guyz

I just wanna ask about how to auto-insert the SN windows ask for it in Upgrading from windows xp, then I press Next

ok I know the winnt.sif trick but that's ok when you boot, but what if I just want to upgrade and I'm lazy enough not to type the SN manually?! ;)

i.e like with Windows Me, during uA installation you will find the SN is already waiting for ya in the these boxes , just press Next

Link to comment
Share on other sites


Use switches with WINNT32.EXE (located in I386 folder)

/unattend

Upgrades your previous version of Windows 98, Windows Me, Windows NT 4.0, or Windows 2000 in unattended Setup mode. All user settings are taken from the previous installation, so no user intervention is required during Setup.

/unattend[num]:[answer_file]

Performs a fresh installation in unattended Setup mode. The specified answer_file provides Setup with your custom specifications.

Num is the number of seconds between the time that Setup finishes copying the files and when it restarts your computer. You can use num on any computer running Windows 98, Windows Me, Windows NT, Windows 2000, or Windows XP.

Link to comment
Share on other sites

thanx guyz for the response

if I use the switch unattended, do I still get the optional (New Installation or Upgrade) selection right?

i.e. the uA process start right after I choose which type of installation I like

Link to comment
Share on other sites

Why would you be upgrading from Windows XP to Windows XP??

If you are trying to fix a corrupt installation or something, your better off not being lazy and backing up your important data, then formatting your drive and performing a CLEAN install of Windows that will be unattended and have your product key integrated into the winnt.sif answer file.

Link to comment
Share on other sites

I know, the best results is a clean XP on Clean C ;)

but just for the knowledge, what if I forced to do just Upgrade Option from installed windows, then I'll be asked for a god **** SN, I want it auto-inserted , not unattneded

EDIT

here is exactly what I wanted to do :)

ww1hr9.jpg

ww2nr9.th.jpg

;)

Edited by Wesmosis
Link to comment
Share on other sites

in the answer file set UnattendMode=ProvideDefault

see the deploy.chm file in the deployment tools for more settings.

thanx IcemanND :thumbup

ummm but now I need 2 winnt.sif by your way

one for installation from inside the windows (UnattendMode = ProvideDefault) , and other when I boot (which I want it UnattendMode = FullUnattended)

how this is is feasible? :blink:

and then how to integrate the switchline

%cdrom%\i386\winnt32.exe /unattended

in the autorun windows by setup.exe?

TIA

Link to comment
Share on other sites

I do not know if this will help, you will have to figure out how to get it to run from the auto run on a CD

This checks for %SystemDrive%\WINDOWS\Resources\Themes\Luna\luna.msstyles I figure this will not exist if you where to boot from a CD.

Save As Select_UaInstall.bat

@Echo Off
CLS
Title Select Windows Install
Mode 75,12
Color F3

Set DrvPath=C: D: E: F: G: H: I: J: K: L: M: N: O: P: Q: R: S: T: U: V: W: X: Y: Z:

Set FileChkPath=%SystemDrive%\WINDOWS\Resources\Themes\Luna\luna.msstyles

If Not Exist %FileChkPath% GoTo CheckCD

If Exist %FileChkPath% GoTo Confirm01


:Confirm01
CLS
Color 3F
Mode 75,12

:: PLACE THE PATH TO THE SIF TO START A UPGRADE MODE SIF

Echo.
Echo Confirm Found %FileChkPath%
Echo.
Echo Preparing To Run In Upgrade Mode
ping -n 4 127.0.0.1>nul
GoTO TheEnd

:CheckCD
CLS
Color F9
Mode 75,12

for %%i in (%DrvPath%) do if exist %%i\i386\Winnt.exe set CDDVD=%%i

::PLACE THE PATH TO THE SIF TO START THE UA INSTALL

Echo.
Echo Confirm Found %CDDVD%\i386\Winnt.exe
Echo.
Echo Preparing To Run In Unattened Mode
ping -n 4 127.0.0.1>nul
GoTO TheEnd
:TheEnd
GoTO EOF
Exit

Link to comment
Share on other sites

  • 2 months later...
  • 2 months later...

Edit autorun.inf on the cd/dvd to look like this

[AutoRun]
open=setup.exe
icon=setup.exe,0

shell\silent=Silent Install
shell\silent\command=i386\Winnt32.exe /unattended

now when you right click on the CD there will be a second option to install Windows silently, if you do it by mistake you can still press esc to cancel the installation.

Is that what your after?

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...