Help - Search - Members - Calendar
Full Version: Info on Win98 unattended install
MSFN Forums > Microsoft Software Products - Discussion & Support > Windows 95/98/98SE/ME

   
Google Internet Forums Unattended CD/DVD Guide
Rexx72
I'm a newbie to this scripting stufff...

I'm trying to make a unattended install CD for win98 + the updates and some programs.
(I provide support for a lot of people running win98 boxes (usually after a serious viral infection) and i'm tired of looking at the setup screen just to push a few buttons)


here's my wish list for the CD
- Boot and Fdisk
(should be able to find something with command line switches to include in a batch file) (Done - see below)
- Reboot & Format automatically (ditto)
- install windows (seems simple enough with msbatch.ini )
- install drivers
(could hit a wobbly here lots of different systems, so would probably have to install manually or ***) (Low Priority)
- install updates, security patches, ie6, directx, etc
(don't forsee any problems, plenty of resources both here and elsewhere)
- install common programs e.g. flash, mozilla, winzip, etc (ditto)
- run a script to automate the setting up of things like DUN, etc. maybe reading from a "answer file" (hope the terminology is correct, all new to me)

I know most of this is possible from some of the posts.

================ (NB!! NB!! How do I do this)==================

I have a problem at the moment of not being able to see the connection, nor know how to construct the *.reg files required to move from the msbatch part to the rest of the process. I have a vague notion that stuff needs to be loaded to the runonce, etc part of the registry.

Could you help me by either;
- Refering me to some online source of info about the format of the reg file you used to achieve the above or
- Perhaps you could let me have a copy of your msbatch & .reg files to look at (I'm sure I could figure it out if i had a complete set at the moment I have no idea what I'm looking for.)

================ (NB!! NB!! How do I do this)==================

I've got the basic part of setting up the msbatch.ini file from the MS articles and have successfully done so, although a lot of the stuff in that article did not seem to be relevant to what i'm trying to do. (best article is here!)

However it seems that the sources of a "lot of info by searching google" about same referred to in posts both here and elsewhere have dried up or point to the MS articles on msbatch.ini

The rest would seem simple enough as there are plenty of examples in other posts of what switches etc to use for the installing updates,etc.


Any help would be greatly appreciated.....


*** could I perhaps use the MRU bit in msbatch to refer to Dir created and copied from another (re-writable) cd post format and before install begins. It would seem only chipset drivers are essential before updates and apps are installed.
Justice
There is a tool in the reskit folder on the Win98 CD. Msbatch. You can enter all setup options with this, and have a printers pre-installed, plus setup a few IE options. Install it and it will build the msbatch.inf file for you. Copy the win98 directory from the cd and put it on the HD somewhere. Then save the msbatch.inf file to the win98 directory when you are done with it. Now here is where my memory becomes fuzzy, since I haven't done it in so long. There is a 2nd tool in the reskit folder, or you may need to buy the full reskit, I forget what it's called but it let's you pre-install your drivers to the win98 folder you copied. You open the program, point the program to the inf file of the driver, and to the folder you copied of the setup files for 98.

Now, for installing apps... I've never done that with 98, so I can't help you there.
prathapml
Yup!
all of what you say is possible, though it takes some ugly lots of time to carry out.
Rexx72
@ Justice
Thanks for the reply. As I said I've got the msbatch & infinst (that's what I think your refering too) things sorted, no problem. Its getting it to move on to the next bit is where I'm becoming unstuck.


@ prathapml
Thanks, I could do with some help. I'm begining to see how much time it takes 16 hours to prep first step, which I'll discuss in my next post.
Rexx72
I've completed my first 2 objectives (and then some), namely;

- Boot and Fdisk
- Reboot & Format automatically

*BRAG* Quite proud of myself actually, 2 days ago I didn't know what a batch file was. *BRAG*

Details

I've modified a win98 boot disk (with which I then create a boot CD) that removes upto 5 Logical Partitions (+ Extended) and 1 Primary. I assume if someones multibooting OSes they won't be needing me to re-install for them so therefor in most cases there would only be one primary partition. It then creates a Primary Partition and formats it, ready to go for the win98 installation.



Details
Changed the config.sys to boot with cd in 3 seconds.

CODE
menudefault=CD,3


Changed Autoexec.bat to Set CD to Z: and run my bat file
(used the /f command .com switch so it doesn't get dump to a prompt when it trys to Label a drive that doesn't exist)
CODE
LH %ramd%:\MSCDEX.EXE /D:mscd001 /L:Z
and
command /f /c autoform.bat



Modified the edb.cab to included my stuff and the progs for label and choice.

QUOTE
1998/05/06  08:01 PM            15,252 ATTRIB.EXE
1998/05/06  08:01 PM            28,096 CHKDSK.EXE
1998/05/06  08:01 PM            20,554 DEBUG.EXE
1998/05/06  08:01 PM            69,902 EDIT.COM
1998/05/06  08:01 PM            13,299 EXT.EXE
1998/05/06  08:01 PM            49,575 FORMAT.COM
1998/05/06  08:01 PM                36 HELP.BAT
1998/05/06  08:01 PM            25,473 MSCDEX.EXE
1998/05/06  08:01 PM                20 RESTART.COM
1998/05/06  08:01 PM        143,818 SCANDISK.EXE
1998/05/06  08:01 PM          7,329 SCANDISK.INI
1998/05/06  08:01 PM            18,967 SYS.COM
1999/04/23  10:22 PM          9,324 LABEL.EXE
1999/04/23  10:22 PM          5,239 CHOICE.COM
2004/07/06  11:20 PM          2,457 AUTOFORM.BAT
2004/07/05  07:17 AM                13 fdisk2.scr
2004/07/07  08:04 AM                22 fdisk1b.scr
2004/07/07  08:02 AM                80 fdisk3a.scr
2004/07/07  08:02 AM                44 fdisk3b.scr
2004/07/07  07:54 AM                16 fdisk4.scr
2004/07/07  08:03 AM                25 fdisk1.scr


I'm sure my batch file isn't as streamline as it could be.
Had to use a disk in B: (CDrom uses a: for boot) to provide a persisted & changeable data source. Basically I just write files to it to reference where in the process I am, so that the .bat file doesn't repeat itself after rebooting.
.bat file then handles the fdisking to delete partitions, then reboots, fdisks the new partition, reboots and then formats. This disk is not something to leave lying around unmarked!!! (or maybe on the bosses desk. hehehe newwink.gif )

When I've tested this I disable any 2ndry HDD and CDs

CODE
@echo off

REM ================ Check where you are in the process ====================

if exist b:\formatd.one goto END
if exist b:\fdisk2.scr goto FORMAT
if exist b:\fdisk1.scr goto FDISK2
goto QUERY1

REM ==========================Start the process ============================


:QUERY1
echo A - Remove & Recreate Partion, Then Format & Install
echo B - Create Partiton, Then Format & Install
echo C - Format & Install
echo D - Quit

REM Gives you 30 seconds to get out of Dodge
choice /c:abcd /t:a,30
if ERRORLEVEL 4 goto END
if ERRORLEVEL 3 goto MENU3
if ERRORLEVEL 2 goto MENU2
if ERRORLEVEL 1 goto FDISK1

REM ============================ Menu Options ===================================

:MENU2
echo done > b:\fdisk1.scr
goto FDISK2

:MENU3
echo done > b:\fdisk2.scr
echo done > b:\fdisk1.scr
goto FORMAT

REM ==========================Killing the Partions================================
REM Handles up to 6 Logical (+ Extended) & 1 Primary (Patched)
:FDISK1

REM Changing all formated Drives labels to DELETE in prep for fdisk

for %%1 in (c d e f g h i) do label %%1:DELETE

copy %RAMD%:\fdisk3a.scr b:\*.*
copy %RAMD%:\fdisk3b.scr b:\*.*
copy %RAMD%:\fdisk4.scr b:\*.*
copy %RAMD%:\fdisk1.scr b:\*.*
copy %RAMD%:\fdisk1b.scr b:\*.*

REM Removing Logical Partitions (whether Formatted & not)
fdisk < b:\fdisk3a.scr
fdisk < b:\fdisk3b.scr
REM Removing Extend Partition
fdisk < b:\fdisk4.scr
REM Removing Primary Partition (whether Formatted & not)
fdisk < b:\fdisk1.scr
fdisk < b:\fdisk1b.scr
del b:\fdisk3a.scr
del b:\fdisk3b.scr
del b:\fdisk4.scr
del b:\fdisk1b.scr
REM only fdisk1.scr remains for checking
restart.com

REM ===========================Partitioning the drive=============================

:FDISK2
copy %RAMD%:\fdisk2.scr b:\*.*
fdisk < b:\fdisk2.scr
restart.com

REM ============================Format The Drive==================================

:FORMAT
format c: /autotest /u
if errorlevel 0 goto SETUP1
echo ********* Problems formating drive *********

goto END

REM =========================Begin Next Stage of Installation=====================

:SETUP1
ECHO Success .... ready to begin setup
Del b:\fdisk1.scr
Del b:\fdisk2.scr
echo done > b:\formatd.one
goto END

:END
rem winsetup.bat


btw Antivirus programs are not keen on the format line. pccillian kept quarantining the file. rolleyes.gif HAHAHA


I'd appreciate any comments and/or suggestions

@moderators I couldn't find anything about length of posts in the rules. Just let me know if I need to split this up or something.
Digit_X
hi, does anyone here know about slipstreaming win98se updates? Is it possible?
diesel_98a
no not really only became available w/ win2k and after. however some can be installed using a batch file or bat file i believe.
bookie
I am actually working on a batchfile enabling to install all the 98 updates at once.

I have the problem, that I don't get the restart after reboot done. How can you determine the cd-rom's drive-letter?

If anyone is interested in the skript, email me.


Regards
Markus
mat0
hi, im new here, and ive been searching on internet how to create a win98se unnatended installation, and thank god i found this thread, i could install Microsoft Batch 98 adn create the file biggrin.gif
it would be an excellent idea to create a Microsoft Win98SE-ME Unnatended GUIDE and make it sticky, because many many MANY people are still using it today, specially where i work.
im unable to provide a guide or info coz i dont know almost anything about unnatended guides. what do you think?
easye35
What and where did the fdisk.scr 's come from?
bookie
Hi there,

as many were interested in the script, here's the batch. You have to test it as it contains updates for both Win98 and Win98 SE.

the commands for the batch are as follows:
CODE
238453GER8.exe /Q /R:N
245729DE8.exe /Q /R:N
249973GER8.exe /Q /R:N
256015GER8.exe /Q /R:N
259728GER8.exe /Q /R:N
273727GER8.exe /Q /R:N
273991GER8.exe /Q /R:N
274548GER8.exe /Q /R:N
314147GER8.exe /Q /R:N
323172GER8.exe /Q /R:N
323255GER8.exe /Q /R:N
811630GER8.exe /Q /R:N
823559GER8.exe /Q /R:N
js56mde.exe /Q /R:N
q240308.exe /Q /R:N
q313829.exe /Q /R:N
q330994.exe /Q /R:N
q828750.exe /Q /R:N
TelnetUp.exe /Q /R:N

The /Q doesn't give an output to the user, the /R:N prevents from rebooting.

Pack it into a

CODE
start /w TelnetUp.exe /Q /R:N


and the batch waits for the first one to terminate before it starts the second one.

This solution still isn't perfect in my opinion but enough for these tasks. I programmed the same in vb, where it seems to be easier to keep an eye on, to keep it up-to-date and to add new hotfixes or other executables.

Cheers
Bookie
MiR
QUOTE
hi, does anyone here know about slipstreaming win98se updates? Is it possible?


I think the best way to do this (the updates are not removable by the user) is simply to extract the updates into the win98 directory and the windows setup picks up all the updated files from there instead of using the cabs.

I havnt tested this but the method seems to work well in windows 95.
tarquel
I use a process at work similar to bookies which is a collection of large batch file(s).

Parts of it are manually clicked, but its sooooooo much faster than finding the files, loading them, etc.

As we are (well...I am) trying to make the move slowly but surely to having all machines running XP, its kinda making my batch files seem like a a waste of time lol

I plan to work on them some more when i get back to work in just under two weeks but I'm not 100% sure that I'll have any time spare to work on them.

@Rexx72:

How have you progressed in things since your last post? It'd be handy to hear your thoughts again. Your script for repartitioning, etc was really good and something I have ben meaning to do, but as always, no time or better, more urgent stuff was priority lol

Regards,
N.
lockwood
Rexx,

That script looks good to format and partition the drive. My question is what do you save that as and do you run the file from a floppy or place it on the cd along with the needed files to format and fdisk?

I got a batch file to work as I need it and I got the cd booting right away. The only piece of the puzzle I have left is having it automatically partioning the entire drive and formatting it.

Anyones help in this matter is greatly appreciated.
chankya
Dear Rexx72

it's nice start it could be like Gape's and MDGx's work if u carryon with some help of MDGx's WEB site for all batch,utility,lots of link for this please check the site

http://www.mdgx.com/

u can download directly for entire sites help and site description for a single file.

Windows 9x/NT4/2000/ME/XP/2003 + DOS 7.xx/8.00: W95-11D.EXE [1.15 MB] or W95-11D.ZIP [1.25 MB]

Good Work carryon.

That's enough for now.

MSFN Enjoy !!!
lockwood
I'm still stuck, I'm sure I'm missing something small here but does anyone know how to get a Win98 Unattend Install to automatically partition and format the disk as well?
os2fan2
You probably can't format it during install. I suspect that it would be better to run the fdisk proggie from a batch file before running setup. This is how i run win2k setup.

In essence, the whole point of unattended install is that you don't have to attend it: you can easily walk away and make a cuppa. It really does not matter that setup/whatever is running.

If you set up your floppy disk right, you can have the default boot pass to the hard drive, so that when it reboots, it goes to the hard drive. This means you can leave your floppy disk in the drive!

W
jack99
yes.gif with the ms batch exe in the res/toolkit on the 98 cd u can partial make a unattended ini but id like to see one that includes ie6 dx 9 etc and a explantion how to do it ive seen such a bat but even with exe in folder with batch 98 i never got it to silently install ie 6 dx 9 etc perhaps a god of dos or a ini jedi could make one....
os2fan2
installing ie6 is a matter of putting a properly formatted iebatch.txt into the ie6 directory. It then chugs away - no questions, no prompts, nothing. Not even a reboot. You can add extra stuff (eg the autopatch-version of the tweakui) at the same point.

W
MDGx
QUOTE (bookie @ Aug 6 2004, 08:58 AM)
I am actually working on a batchfile enabling to install all the 98 updates at once.

I have the problem, that I don't get the restart after reboot done. How can you determine the cd-rom's drive-letter?

If anyone is interested in the skript, email me.

Regards
Markus
This is sample batch code to detect CD/DVD drive letter [only the 1st if u have more than 1].
Works in native MS-DOS outside Windows and in a DOS box within Windows.
Example:
CODE
@ECHO OFF
:: Detect CD/DVD drive letter of Windows ME Setup CD-ROM:
C:
IF NOT EXIST C:\EXTR\NUL MD C:\EXTR
CD\EXTR
IF EXIST C:\WIN9X\WIN_8.CAB SET @=C:
IF EXIST D:\WIN9X\WIN_8.CAB SET @=D:
IF EXIST E:\WIN9X\WIN_8.CAB SET @=E:
IF EXIST F:\WIN9X\WIN_8.CAB SET @=F:
IF EXIST G:\WIN9X\WIN_8.CAB SET @=G:
IF EXIST H:\WIN9X\WIN_8.CAB SET @=H:
IF EXIST I:\WIN9X\WIN_8.CAB SET @=I:
IF EXIST J:\WIN9X\WIN_8.CAB SET @=J:
IF EXIST K:\WIN9X\WIN_8.CAB SET @=K:
IF EXIST L:\WIN9X\WIN_8.CAB SET @=L:
IF EXIST M:\WIN9X\WIN_8.CAB SET @=M:
IF EXIST N:\WIN9X\WIN_8.CAB SET @=N:
IF EXIST O:\WIN9X\WIN_8.CAB SET @=O:
IF EXIST P:\WIN9X\WIN_8.CAB SET @=P:
IF EXIST Q:\WIN9X\WIN_8.CAB SET @=Q:
IF EXIST R:\WIN9X\WIN_8.CAB SET @=R:
IF EXIST S:\WIN9X\WIN_8.CAB SET @=S:
IF EXIST T:\WIN9X\WIN_8.CAB SET @=T:
IF EXIST U:\WIN9X\WIN_8.CAB SET @=U:
IF EXIST V:\WIN9X\WIN_8.CAB SET @=V:
IF EXIST W:\WIN9X\WIN_8.CAB SET @=W:
IF EXIST X:\WIN9X\WIN_8.CAB SET @=X:
IF EXIST Y:\WIN9X\WIN_8.CAB SET @=Y:
IF EXIST Z:\WIN9X\WIN_8.CAB SET @=Z:
:: Write entire CABS list to text file:
FOR %%x IN (%@%\WIN9X\*.CAB) DO EXTRACT /D /A %%x >> \EXTR\CABSLIST.TXT
:: Clean up:
SET @=
MEM/C | FIND/I "vmm32">NUL
IF ERRORLEVEL 1 GOTO D0S
:: Open CABs list text in Notepad if running Windows 9x/ME:
IF EXIST C:\EXTR\CABSLIST.TXT NOTEPAD C:\EXTR\CABSLIST.TXT
GOTO END
:D0S
:: Open CABs list text in EDIT.COM if running native MS-DOS 7/8:
IF EXIST C:\EXTR\CABSLIST.TXT EDIT C:\EXTR\CABSLIST.TXT
:END
CLS
EXIT


But it's easier to use locate.com [freeware]:
http://www.highfiber.com/~raster/freeware.htm
if u know at least 1 filename [even incomplete, wild cards work too] on a specific CD/DVD.

If u need MSBATCH from MS:
http://www.mdgx.com/add.htm#DEV

If u need IEXPRESS or CAB SDK which both make CABs or EXEs, even with self-installers:
see above URL.
BTW:
IEXPRESS files [newer versions: IEXPRESS.EXE, MAKECAB.EXE + WEXTRACT.EXE] are also part of XP SP2:
http://www.mdgx.com/xp.htm#SP2

If u need to edit/create INFs, get a Windows 2000 Server setup CD and install SysDiff from \VALUEADD\3RDPARTY\MGMT\WINSTLE folder [run SWIADMLE.MSI].
More info:
http://www.serverwatch.com/tutorials/article.php/2194021

See also [shareware sad.gif]:
http://www.inner-smile.com/dl_inf.htm

MSDN INF guide:
http://msdn.microsoft.com/library/en-us/in...4cdb5a5.xml.asp

MS TechNet IE 5/6 Batch Mode + File Install:
http://www.microsoft.com/technet/prodtechn...t6/appxccmd.asp

If u need 3rd party DOS based command line tools [which replace MS-DOS 7/8 tools, and most are even better] which can be added to a redistributable CD/DVD without having to go thru copyright issues [free GPL]:
http://www.freedos.org/freedos/software/lsm.cgi?q=d&a=base
or check my DOS tools page:
http://www.mdgx.com/dos.htm

Hope this helps. cool.gif
chankya
Dear MDGx

Thanks for u'r kind reply on this topics i think u don't mind when i put u'r web address at any such post for helping people searching the thing u already have.

thanks for u'r kind reply and efforts.

by4now

MSFN ENJOY!!!
Google Internet Forums Unattended CD/DVD Guide
This is a "lo-fi" version of our main content. To view the full version with more information, formatting and images, please click here.