thanks to these boards I've created a nice unattended CD with WPI to install applications afterwards. But I still have one little problem.
This CD will be used by the company I'm currently working for, meaning this CD will be used on a lot of different pc's all on the same network.
Because of this I would have to edit the username/computername afterwards but even then the productkey would still be the same(we still have a lot of OEM key's) so this is not an option.
So to prevent this I made a small batch file to be run from a bootable floppy disk which asks for user input and then creates an answer file, afterwards the setup should run.
Here is the current batch file:
@ECHO OFF rem --------------------------------------------- rem USER INPUT rem --------------------------------------------- INPUT "enter productkey:" productkey INPUT "enter username:" username INPUT "enter computername:" computername rem --------------------------------------------- rem REMOVE OLD ANSWER FILE rem --------------------------------------------- DEL a:\WINNT.SIF rem --------------------------------------------- rem WRITE NEW ANSWER FILE rem --------------------------------------------- ECHO;SetupMgrTag >>a:\WINNT.SIF ECHO [Data] >>a:\WINNT.SIF ECHO AutoPartition=1 >>a:\WINNT.SIF ECHO MsDosInitiated="0" >>a:\WINNT.SIF ECHO UnattendedInstall="Yes" >>a:\WINNT.SIF ECHO. >>a:\WINNT.SIF ECHO [Unattended] >>a:\WINNT.SIF ECHO UnattendMode=FullUnattended >>a:\WINNT.SIF ECHO OemSkipEula=Yes >>a:\WINNT.SIF ECHO OemPreinstall=YES >>a:\WINNT.SIF ECHO TargetPath=\WINDOWS >>a:\WINNT.SIF ECHO UnattendSwitch="yes" >>a:\WINNT.SIF ECHO. >>a:\WINNT.SIF ECHO [GuiUnattended] >>a:\WINNT.SIF ECHO AdminPassword="xxxxxx" >>a:\WINNT.SIF ECHO EncryptedAdminPassword=NO >>a:\WINNT.SIF ECHO AutoLogon=Yes >>a:\WINNT.SIF ECHO AutoLogonCount=1 >>a:\WINNT.SIF ECHO OEMSkipRegional=1 >>a:\WINNT.SIF ECHO TimeZone=110 >>a:\WINNT.SIF ECHO OemSkipWelcome=1 >>a:\WINNT.SIF ECHO. >>a:\WINNT.SIF ECHO [UserData] >>a:\WINNT.SIF ECHO ProductKey=%productkey% >>a:\WINNT.SIF ECHO FullName=%username% >>a:\WINNT.SIF ECHO OrgName="Koster" >>a:\WINNT.SIF ECHO ComputerName=%computername% >>a:\WINNT.SIF ECHO. >>a:\WINNT.SIF ECHO [Display] >>a:\WINNT.SIF ECHO BitsPerPel=16 >>a:\WINNT.SIF ECHO Xresolution=1024 >>a:\WINNT.SIF ECHO YResolution=768 >>a:\WINNT.SIF ECHO Vrefresh=70 >>a:\WINNT.SIF ECHO. >>a:\WINNT.SIF ECHO [TapiLocation] >>a:\WINNT.SIF ECHO CountryCode=31 >>a:\WINNT.SIF ECHO. >>a:\WINNT.SIF ECHO [RegionalSettings] >>a:\WINNT.SIF ECHO LanguageGroup=1 >>a:\WINNT.SIF ECHO. >>a:\WINNT.SIF ECHO [Branding] >>a:\WINNT.SIF ECHO BrandIEUsingUnattended=Yes >>a:\WINNT.SIF ECHO. >>a:\WINNT.SIF ECHO [Proxy] >>a:\WINNT.SIF ECHO Proxy_Enable=1 >>a:\WINNT.SIF ECHO Use_Same_Proxy=1 >>a:\WINNT.SIF ECHO HTTP_Proxy_Server=winroute:3128 >>a:\WINNT.SIF ECHO. >>a:\WINNT.SIF ECHO [Identification] >>a:\WINNT.SIF ECHO JoinDomain=Koster >>a:\WINNT.SIF ECHO. >>a:\WINNT.SIF ECHO [Networking] >>a:\WINNT.SIF ECHO InstallDefaultComponents=Yes >>a:\WINNT.SIF ECHO. >>a:\WINNT.SIF ECHO [GuiRunOnce] >>a:\WINNT.SIF ECHO %systemdrive%\install\wpi\wpi.hta >>a:\WINNT.SIF rem --------------------------------------------- rem START INSTALLATION rem --------------------------------------------- rem D:\i386\WINNT.EXE
As you can see I put a REM before the setup command, this is because when the setup should start running it gives me an error that it doesn't know where to put the windows XP install file(probably because of the ramdisk the bootdisk created on c:\)
So I thought I'd be smart and get the input put it in the answer file then reboot and start the install from CD(requires me to eject the floppy for a while but that's not THAT big a deal) However, I have not been able to find any reboot command for dos.
So in short my question is, does anyone know how to run the setup after inputting the commands to the answer file on the floppy drive. Maybe there is some other way to do this that I don't know but this is the only option I could think about.
Any help would be appreciated



Help

Back to top










