Jump to content

few unexplained errors


Recommended Posts

my first unattended windows went straight thru by admin, well i then wanted to add a few things after finding out what else i was able to do, ( lots might i add) but i started with programs , first, then with some customization, i dont rememeber editing the winnt.sif that much at all (computer name/res/guirunonceex and some things to not install games autoupdate etc) that would change anything but now it asks to create a user, so i went to the home page got the info on how to add user thru cmdlines.txt well i do all that add my user, i noticed that "mrjojo" had a problem with the password and went thru with what was listed to help, to add user with no password n what not. well now once i install, im still asked to add a user, even tho i added one,

now another is deleting the install files after the file's have been installed :

ECHO.ECHO Deleting Temp Installation Files...RD /S /Q %systemdrive%\install

correct? works for me, but what if i wanna delete the folder C:/drivers?

i should prolly change install dir to Drivers dir correct? i have this

ECHO.ECHO Deleting Driver Installation Files...RD /S /Q %systemdrive%\Drivers

well after everything installs and everything runs through, im left with C:\Drivers still listed and undeleted. no idea whats up..

i cant think of anything or why its happening, if you need any info just ask.

Link to comment
Share on other sites


Here's an example. Provided by the "Unattend Guide"

» cleanup.cmd (used with RunOnceEx.cmd)

cmdow @ /HIDshutdown.exe -r -f -t 60 -c "Windows XP will now restart in 1 minute..."net user aspnet /delete
RD /S /Q "%AllUsersProfile%\Start Menu\Programs\PrintMe Internet Printing"RD /S /Q "%AllUsersProfile%\Start Menu\Programs\Java Web Start"
DEL "%UserProfile%\Start Menu\Programs\Windows Media Player.lnk"DEL "%UserProfile%\Desktop\Flashget.lnk"DEL "%AllUsersProfile%\Start Menu\Programs\Windows Movie Maker.lnk"DEL "%AllUsersProfile%\Start Menu\Programs\Adobe Reader 6.0.lnk"DEL "%AllUsersProfile%\Desktop\Java Web Start.lnk"DEL "%AllUsersProfile%\Desktop\Adobe Reader 6.0.lnk"DEL "%AllUsersProfile%\Desktop\Alcohol 120%.lnk"
RD /S /Q "%systemroot%\Cache\Adobe Reader 6\"RD /S /Q %systemdrive%\drivers\RD /S /Q %systemdrive%\apps\
EXIT
Link to comment
Share on other sites

Are you sure it's getting that far and the batch file isn't quitting before it gets to that point? Try putting a series of pauses in there so you can verify its progress. I use this command and it's always worked fine, so I don't know why else yours wouldn't be working.

rd /s/q %systemdrive%\Drivers
Link to comment
Share on other sites

Are you sure it's getting that far and the batch file isn't quitting before it gets to that point?  Try putting a series of pauses in there so you can verify its progress.  I use this command and it's always worked fine, so I don't know why else yours wouldn't be working.
rd /s/q %systemdrive%\Drivers

i actually thought what your thinking, ill show my configs.

winnt.sif

;SetupMgrTag

[Data]

   AutoPartition=0

   MsDosInitiated="0"

   UnattendedInstall="Yes"

[unattended]

   UnattendMode=FullUnattended

   OemSkipEula=Yes

   OemPreinstall=Yes

   TargetPath=\WINDOWS

   Repartition=No

   OemPnPDriversPath="Drivers\IDE;Drivers\RAID;Drivers\RAID\3ware6k;Drivers\RAID\3ware78k;Drivers\RAID\3112r;Drivers\RAID\3114r;Drivers\RAID\3124r;Drivers\RAID\hpt371;Drivers\RAID\sis180;Drivers\RAID\sis181;Drivers\SATA;Drivers\SATA\3112;Drivers\SATA\3114;Drivers\SATA\3124;"

[GuiUnattended]

   AdminPassword=*

   EncryptedAdminPassword=NO

   OEMSkipRegional=1

   TimeZone=020

   OemSkipWelcome=1

[userData]

   ProductKey=you really dont wanna know

   FullName=" "

   OrgName=" "

   ComputerName="SERVERNESS"

[Display]

BitsPerPel=32

Xresolution=1024

YResolution=768

[RegionalSettings]

   LanguageGroup=1

   Language=00000409

[identification]

   JoinWorkgroup=WORKGROUP

[Networking]

   InstallDefaultComponents=Yes

[shell]

CustomDefaultThemeFile="%Systemroot%\Resources\Themes\Watercolor Lite Blue.theme"

[Components]

msmsgs=off

msnexplr=off

freecell=off

hearts=off

minesweeper=off

pinball=off

solitaire=off

spider=off

zonegames=off

AutoUpdate=off

[GuiRunOnce]

%systemdrive%\install\bootlogo.cmd

%systemdrive%\install\load.cmd

bootlogo.cmd

bootcfg /RAW /A /Kernel=OEMKrnl.exe /ID 1

bootcfg /Timeout 0

load.cmd

CLS

@echo off

ECHO.

ECHO Removing Wallpapers and Screensavers...

DEL "%systemroot%\*.bmp"

DEL "%systemroot%\Web\Wallpaper\*.jpg"

DEL "%systemroot%\system32\dllcache\*.scr"

DEL "%systemroot%\system32\*.scr"

ECHO.

ECHO Removing useless shortcuts...

DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Update.lnk"

DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Set Program Access and Defaults.lnk"

DEL "%systemdrive%\Documents and Settings\All Users\Start Menu\Windows Catalog.lnk"

ECHO.

ECHO Installing Symantec Antivirus Corporate 8.1

ECHO Please wait...

start /wait %systemdrive%\install\Applications\savcenrb.exe

ECHO.

ECHO Installing PaintShopPro 7.02

ECHO Please wait...

start /wait %systemdrive%\install\Applications\jasc\psp7.msi /qn

ECHO.

ECHO Registering Nero Burning ROM...

REGEDIT /S %systemdrive%\install\Applications\Nero\register.reg

ECHO.

ECHO Installing Nero Burning ROM v6.0.0.3

ECHO Please wait...

start /wait %systemdrive%\install\Applications\Nero\Nero6303.exe /silent /noreboot

ECHO.

ECHO Installing WinRAR 3.3 Plus

ECHO Please wait...

start /wait %systemdrive%\install\Applications\wrar330.exe /s

ECHO.

ECHO Installing Q817787 for Windows Media Player 8

ECHO Please wait...

start /wait %systemdrive%\install\hotfixes\Q817787.EXE /Q:A /R:N

ECHO.

ECHO Installing Q832483 Buffer overrun in an MDAC function could allow code execution

ECHO Please wait ...

start /wait %systemdrive%\install\hotfixes\ENU_Q832483_MDAC_X86.EXE /C:"dahotfix.exe /q /n" /q

ECHO.

ECHO. Importing Reg Tweaks

REGEDIT /S %systemdrive%\apps\regtweaks.reg

ECHO.

ECHO Deleting Driver Installation Files...

RD /S /Q %systemdrive%\Drivers

ECHO.

ECHO Deleting Driver Installation Files making sure they're gone...

RD /S /Q %systemdrive%\Drivers

ECHO.

ECHO Deleting Temp Installation Files...

RD /S /Q %systemdrive%\install

ECHO.

ECHO Restarting the PC in 5 seconds...

shutdown.exe -r -f -t 05 -c "Windows XP will now restart in 5 seconds"

EXIT

(also i dont think its actually rebooting after this finishes it loads xp)

cmdlines.txt

[COMMANDS]

"useraccounts.cmd"

useraccounts.cmd

net user loacalhost /add

net localgroup Administrators localhost /add

net accounts /maxpwage:unlimited

REGEDIT /S autologon.reg

EXIT

autologon.reg

Windows Registry Editor Version 5.00

[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]

"DefaultUserName"="localhost"

"DefaultPassword"=""

"AutoAdminLogon"="1"

hope this helps.

Link to comment
Share on other sites

Hey, that OEMPnPDriversPath string looks familiar! :)

And if it's not rebooting, I'd say it's VERY likely that it's never getting to the driver deletion part of the batch file either (BTW, why do you have it trying to delete that folder twice in a row?). I still think you're best off putting a pause before and after each step to see where it's dying.

EDIT: Are you sure that that batch file is even executing at all?

Link to comment
Share on other sites

i put it twice... because.... well i hwas hoping it would delete it if it was still there.. hoping it wasnt. (i can manually delete it thats not the real problem.

also as you asked before it isnt closing before it gets to it, because it delete's the install dir just not the drivers dir.. after the suposidly reboot xp loads up.i

i was thinking about chaning the order to something like this

ECHO.ECHO. Importing Reg TweaksREGEDIT /S %systemdrive%\apps\regtweaks.reg
ECHO.ECHO Restarting the PC in 5 seconds...shutdown.exe -r -f -t 30 -c "Windows XP will now restart in 5 seconds"
ECHO.ECHO Deleting Driver Installation Files...RD /S /Q %systemdrive%\Drivers
ECHO.ECHO Deleting Temp Installation Files...RD /S /Q %systemdrive%\installEXIT

so shutdown hopefully executes then it will have the time to delete the drives

Link to comment
Share on other sites

ECHO.ECHO Restarting the PC in 5 seconds...shutdown.exe -r -f -t 30 -c "Windows XP will now restart in 5 seconds"
ECHO.ECHO Deleting Driver Installation Files...RD /S /Q %systemdrive%\Drivers
ECHO.ECHO Deleting Temp Installation Files...RD /S /Q %systemdrive%\installEXIT

I don't know if Drivers will get deleted, it should....

but your Shutdown wasn't working before because you deleted teh batch file before it execute the restart......your new code should work....atleast with the Restart....

Link to comment
Share on other sites

ECHO.

ECHO Restarting the PC in 5 seconds...

shutdown.exe -r -f -t 30 -c "Windows XP will now restart in 5 seconds"

ECHO.

ECHO Deleting Driver Installation Files...

RD /S /Q %systemdrive%\Drivers

ECHO.

ECHO Deleting Temp Installation Files...

RD /S /Q %systemdrive%\install

EXIT

I don't know if Drivers will get deleted, it should....

but your Shutdown wasn't working before because you deleted teh batch file before it execute the restart......your new code should work....atleast with the Restart....

lol i just notice what your saying now, (yea im new to this but i am a fast learner )

since load.cmd is in the /install dir and its being deleted before the shutdown can complete.. oddly this didnt happen with my very first install. but it should help now. hopefully. now for the adduser/autologin. any help?

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