Jump to content

winnt.bat


Recommended Posts

I just remade my winnt.sif with setupmgr.exe.

Two files were created:

winnt.sif -> I know that already

winnt.bat -> Never seen this before

This is what inside winnt.bat

@rem SetupMgrTag

@echo off

rem

rem This is a SAMPLE batch script generated by Setup Manager.

rem If this script is moved from the location where it was generated, it may have to be modified.

rem

set AnswerFile=.\winnt.sif

set SetupFiles=I:\i386

I:\i386\winnt32 /s:%SetupFiles% /unattend:%AnswerFile% /copysource:lang

Can anyome explain the following:

1.%SetupFiles%

2./copysource:lang

Thank you :)

Link to comment
Share on other sites


Do I have to change them or can I leave them as they are?

EDIT:

Ok, never mind, I understand the %SETUPFILES% line.

But what about /copysource:lang?

Do I have to specify the language of my XP e.g:

/copysource:ENG

or something like that?

EDIT2: found some extra info about winnt.bat:

http://www.sacm.co.za/Feature.asp?NewsID=6...ns&cont=handson

(I simply removed the reference to my CD-ROM drive letter and replaced it with a full stop. This will make sure that it can be executed from any drive letter)
Link to comment
Share on other sites

But what about /copysource:lang?

This switch copies the Lang folder from your CD to your HD.

After installation completes, you might need to install languages other than yours. In this case, you needn't insert your CD to do that.

However, be aware that your line works only if you install Windows from a desktop of another installed Windows. I mean this line:

I:\i386\winnt32 /s:%SetupFiles% /unattend:%AnswerFile% /copysource:lang

If you're going to install Windows on a clean HD, i.e. from a DOS prompt, you MUST use this instead:

winnt.exe /s:%SetupFiles% /u:%AnswerFile% /t:C:\ /rx:.\LANG

C:\ will be your system drive. You can change it as you like.

Link to comment
Share on other sites

  • 2 weeks later...

mazin

I read elsewhere that if the winnt.bat has this:

set AnswerFile=.\winnt.sif

set SetupFiles=.\i386

.\i386\winnt32 /s:%SetupFiles% /unattend:%AnswerFile% /copysource:lang

It will also install properly from a CD. Have not tried it yet.

Link to comment
Share on other sites

You do know that you only need the winnt.bat if you run Windows from a 32-bit environment.

If you want to install straight from CD (via Text Setup) then you don't need this file.

Just incase someone didn't know. :)

Link to comment
Share on other sites

@eran2004

winnt32.exe can't run from a DOS prompt. winnt.exe can.

So, to be clear: use winnt32.exe under a Windows GUI & use winnt.exe under DOS.

@RaveRod

I understand what you mean. I just answered what was posted. :)

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