Help - Search - Members - Calendar
Full Version: Unattended doesn't work
MSFN Forums > Unattended Windows Discussion & Support > Multi-Boot CD/DVDs

   


Google Internet Forums Unattended CD/DVD Guide
Nikser
I'm trying to make a bootcd with Windows XP SP2 Home and Pro on them, with unattended installs. I made and tested all the scripts and stuff, and made i menu with easyboot, but the unattended part doesn't work with the menu. Well, it only works partly. The installation is unattended, but the scripts that SHOULD run (they should, they have been tested thoroughly) after the first boot, dont get run when i boot using the menu. I tried running the w2ksec.bin from the root, and i tried using a boot sector i extracted from my original SP2 pro cd using IsoBuster, but they both give the same problem.

can anyone help me?

thank you in advance!
Incroyable HULK
Are you currently MultiBooting? I mean do you have more than 1 OS on your CD and have EX Edited w2ksect.bin and setupldr.bin

OR

You only have a Custom Boot Menu and you are launching with w2ksect.bin directly without any modifications?
Nikser
I made the two options in the menu already, but i havent yet put the files on the cd-rom, so only the Pro version is on the disk, in the root. (So not in a different directory or anything yet, just <cdrom>\i386 and stuff. and because i dont have special dir's, i havent edited the setupdlr or w2ksect)
Incroyable HULK
So you have everything inside

%ProgramFiles%/EasyBoot/disk1 (root with I386, $OEM$, etc.)

Inside /disk1 you have w2ksect.bin and you are calling this file with the following command in EasyBoot:

CODE
run w2ksect.bin


If so, I don't see why it won't work.

What is your method for Burning or Generating the ISO?
Nikser
Yes, thats the situation (except the I have everything in C:\disk1). I make the ISO using EasyBoot itself, cause then I can pick the loader.bin as bootsector, else I won't get the menu.
Incroyable HULK
Ok then what do you mean by:

QUOTE
The installation is unattended, but the scripts that SHOULD run after the first boot

Do you mean by that at the first LOGON?

Give me more details for theses scripts, where they are located, from where they are launched, at wich step of the setup...

If you can get pass the TextMode setup (blue background) I don't think your problem has anything to do with the boot technique. Is is probably related to the Unattended Installation itself...
Nikser
the whole installation runs unattended as specified in winnt.sif, but after the first boot a script called start.cmd is supposed to run which doesn't. it is located in the folder \$oem$\$1\install. it has always worked, until I added the bootmenu thingie. And it hasn't been changed either.
Incroyable HULK
start.cmd is called from where?

3 possibilities:

1) Winnt.sif under
CODE
[GuiUnattended]
   DetachedProgram=


2) Winnt.sif under
CODE
[GuiRunOnce]


3) cmdlines.txt
Nikser
GuiRunOnce in winnt.sif
Incroyable HULK
GuiRunOnce is executed at first LOGON not first reboot:

http://unattended.msfn.org/xp/timeline.htm

And it is executed at the same time as RunOnceEx.

The only way to execute something at first reboot is with:
1) Winnt.sif under
CODE
[GuiUnattended]
  DetachedProgram=
Nikser
Oh my mistake, you're right, after the first time Welcome screen it should run, but it doesn't run AT ALL. And it did before I added the bootmenu.
Incroyable HULK
Since you are using the $OEM$ folder, does your drivers get installed? Does the $OEM$ folder is properly copied over to your hard drive? Maybe you should post your winnt.sif
Nikser
The folder IS copied over, but I have added no drivers, so I don't know about that
Incroyable HULK
please post your winnt.sif
Nikser
CODE
[Data]
AutoPartition=0
MsDosInitiated="0"
UnattendedInstall="Yes"
AutomaticUpdates="Yes"

[Unattended]
UnattendMode=FullUnattended
OemSkipEula=Yes
OemPreinstall=Yes
UnattendSwitch="Yes"
TargetPath=\WINDOWS
FileSystem=*
WaitForReboot="No"

[GuiUnattended]
AdminPassword=*
EncryptedAdminPassword=NO
OEMSkipRegional=1
OemSkipWelcome=1
TimeZone=110

[UserData]
ProductKey=*****-*****-*****-*****-*****
FullName="Windows"
OrgName=""
ComputerName=WinXP

[Display]
BitsPerPel=32
Xresolution=800
YResolution=600

[TapiLocation]
CountryCode=31
AreaCode=0495

[Branding]
BrandIEUsingUnattended=Yes

[Identification]
JoinWorkgroup=Werkgroep

[Networking]
InstallDefaultComponents=Yes

[Components]
msnexplr=off

[Shell]
DefaultStartPanelOff = Yes

[GuiRunOnce]
%systemdrive%\install\start.cmd
Incroyable HULK
Humm looks fine to me.

Have you used some special option when making your ISO? When using EasyBoot, make sure you have JOLIET enabled and DO NOT use the DOS(8.3) option
Nikser
i do not use the 8.3 option, but i don't use the JOLIET option. you think thats it?
Incroyable HULK
Maybe... I suggest you try

EDIT: based on the fact you told me it worked BEFORE you switched to MultiBoot...
Nikser
Well, Ive tried the JOLIET thing, didnt help...
Incroyable HULK
beats me blink.gif

Have you considered launching it from cmdlines.txt at the root of the $OEM$ folder?

cmdlines.txt
CODE
[Commands]
"AllUsers.cmd"
"RunOnceEx.cmd"
etc...
Nikser
Funny you'd say that, I was just trying... I'm making the ISO file at the moment, after that I'll just install it on Virtual PC and let you know if it works.
Nikser
Darnit, it didn't help... Any more thoughts?
Incroyable HULK
If you take this setup and just burn with Nero with the Microsoft Boot Sector it will work perfectly? I really don't get it. As long as the TextSetup mode is started, EasyBoot has nothing to do with the rest of the installation.

Can you post this Batch file?
Nikser
Here it is (and don't freak out, it's dutch smile.gif )


CODE
CLS
@echo off
TITLE Windows XP SP2 - Unattended Installation

ECHO.
ECHO --- Starten installatie van programma's ---
ECHO.

ECHO.
ECHO Installeren van Lavasoft Ad-Aware Personal 1.05
ECHO Even geduld...
start /wait %systemdrive%\install\Applications\AdAware\aawsepersonal.exe /s
taskkill /IM Ad-Aware.exe /F
taskkill /IM hh.exe /F

ECHO.
ECHO Installeren van Adobe Acrobat Reader 6
ECHO Even geduld...
start /wait %systemdrive%\install\Applications\AdobeReader6\AdbeRdr60_nld.exe -p"-s /v\"/qn\""

ECHO.
ECHO Installeren van Nero Burning ROM 6.6.0.3
ECHO Even geduld...
start /wait %systemdrive%\install\Applications\Nero\nero6603.exe /silent /noreboot

ECHO.
ECHO Installeren van Nero Burning ROM Nederlands Taalpakket
ECHO Even geduld...
start /wait %systemdrive%\install\Applications\Nero\NBR6603NLD.exe /silent /noreboot

ECHO.
ECHO Installeren van .NET Framework v1.1
ECHO Even geduld...
start /wait %systemdrive%\install\NetFramework\netfx.msi /qb

ECHO.
ECHO Installeren van .NET Framework v1.1 Service Pack 1
ECHO Even geduld...
start /wait %systemdrive%\install\NetFramework\NDP1.1sp1-KB867460-X86.exe /Q

ECHO.
ECHO Installeren van Nederlands Taalpakket voor .Net Framework 1.1
ECHO Even geduld...
start /wait %systemdrive%\install\Hotfixes\langpack.exe /q:a /c:"inst /l /q"

ECHO.
ECHO Installeren van Windows Media Player 10
ECHO Even geduld...
start /wait %systemdrive%\install\Hotfixes\WMP10\MP10Setup.exe /q:A /c:"setup_wm.exe /Q /R:N /DisallowSystemRestore"

ECHO.
ECHO Installeren van WinRAR 3.41 NL
ECHO Even geduld...
start /wait %systemdrive%\install\Applications\WinRAR\wrar341nl.exe /s

ECHO.
ECHO Installeren van Office 2003 Professional
ECHO Even geduld...
start /wait %systemdrive%\install\Applications\Office2003\setup.exe TRANSFORMS=Unattended.MST /qb-

ECHO.
ECHO.
ECHO --- Starten installatie van Windows Updates ---
ECHO.

ECHO.
ECHO Installeren van Windows Media Connect
ECHO Even geduld...
start /wait %systemdrive%\install\Hotfixes\wmcsetup.exe /Q:A /R:N

ECHO.
ECHO Installeren van Hotfix KB823353
ECHO Even geduld...
start /wait %systemdrive%\install\Hotfixes\IE6.0sp1-KB823353-x86-NLD.exe /Q:A /R:N

ECHO.
ECHO Installeren van Hotfix KB831240
ECHO Even geduld...
start /wait %systemdrive%\install\Hotfixes\HighMAT.msi /qn

ECHO.
ECHO Installeren van Hotfix KB834707
ECHO Even geduld...
start /wait %systemdrive%\install\Hotfixes\WindowsXP-KB834707-x86-nld.exe /Q /O /N /Z

ECHO.
ECHO Installeren van Hotfix KB873339
ECHO Even geduld...
start /wait %systemdrive%\install\Hotfixes\WindowsXP-KB873339-x86-NLD.exe /Q /O /N /Z

ECHO.
ECHO Installeren van Hotfix KB885835
ECHO Even geduld...
start /wait %systemdrive%\install\Hotfixes\WindowsXP-KB885835-x86-NLD.exe /Q /O /N /Z

ECHO.
ECHO Installeren van Hotfix KB885836
ECHO Even geduld...
start /wait %systemdrive%\install\Hotfixes\WindowsXP-KB885836-x86-NLD.exe /Q /O /N /Z

ECHO.
ECHO Installeren van Hotfix KB886185
ECHO Even geduld...
start /wait %systemdrive%\install\Hotfixes\WindowsXP-KB886185-x86-nld.exe /Q /O /N /Z

ECHO.
ECHO Installeren van Hotfix KB887797
ECHO Even geduld...
start /wait %systemdrive%\install\Hotfixes\WindowsXP-KB887797-x86-nld.exe /Q /O /N /Z

ECHO.
ECHO.
ECHO --- Overbodige snelkoppelingen verwijderen... ---
DEL "%systemdrive%\Documents and Settings\Windows\Menu Start\Programma's\Hulp op Afstand.lnk"
DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\Programmatoegang en -instellingen.lnk"
DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\Programma's\Windows Media Connect.lnk"
DEL "%systemdrive%\Documents and Settings\All Users\Menu Start\Windows-catalogus.lnk"
DEL "%systemdrive%\Documents and Settings\Windows\Application Data\Microsoft\Internet Explorer\Quick Launch\Nero StartSmart.lnk"
DEL "%systemdrive%\Documents and Settings\Windows\Application Data\Microsoft\Internet Explorer\Quick Launch\Ad-Aware SE Personal.lnk"

ECHO.
ECHO.
ECHO --- Register-aanpassingen toepassen... ---
REGEDIT /S %systemdrive%\install\RegTweaks.reg

ECHO.
ECHO.
ECHO --- PC herstarten over 1 minuut... ---
shutdown.exe -r -f -t 60 -c "Windows XP zal over 1 minuut herstarten, zodat er genoeg tijd is om alle iconen bij te werken en om de shell volledig te laten laden voordat er opnieuw opgestart wordt!"

ECHO.
ECHO.
ECHO --- Verwijderen van tijdelijke installatie-bestanden... ---
RD /S /Q %systemdrive%\Drivers
RD /S /Q %systemdrive%\install

EXIT
Incroyable HULK
Well... I'm out of option for now...

Can you confirm that If you take this setup and just burn with Nero with the Microsoft Boot Sector it will work perfectly?
Nikser
WTF! I've just tested it, but it doesn't work anymore AT ALL! So I guess it isn't the bootmenu.... But I don't understand, I didn't change anything except for that...
Incroyable HULK
If it isn't working anymore at ALL it may have to do with your options in NERO.

This is the method to use without creating a ISO:


And you have 2 choice for the Image File

1) Your "normal" boot sector from the MS Windows you are using
2) loader.bin in the EZBOOT/DISK1 directory.




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.