Jump to content

Autologon doesn't seem to work


Recommended Posts


well for some reason on my end they did ok only once. The big problem is that I'm using corporate version and cant slipstream sp1 so I have to add it right before the hot fixes. The only problem is that if I use your patched files really bad things happen. I think it's because my verion of the files might be somewhat different. I dont know but it's like the next time I reboot I get unreadable file errors and then it goes into an endles loop of error messages and never lets me even log in. One of the dll's one that starts with an s is slightly diferent but it was perty for what I did see.

The error's are so bad I thought my hard drive died. Then I suspected the nvidia hard drive drivers. Since they dont activate them in the latest drivers but the folder is sitll there I pointed my installer to them and they did install so at first I thought that things were very bad.

As for the files they are on a remote server that i juat have space on but I dont monitor it so I'm not sure how much bancdwidth is used on that server. Also because it's not my server really I cant leave them up more than a month or so.

Link to comment
Share on other sites

No problem on the files on your server....1 week as I said is just fine...thanks again.

As for the installation...I'm also running corporate, but I did slipstream SP1 (why can't you do this?)...

Your version of the files should be the same.....my unattended install first installs the programs I want....then it applies all hotfixes, then reboots and replaces the system files using the batch file you're hosting.

By the time it replaces those system files, they are all completely up-to-date, because all hotfix patches until today's date have been applied...

So I think it should be the same....?

Link to comment
Share on other sites

Well if I slipstream sp I have a problem with passwords. No password i have or can find will let me into windows. So I have to change the password to a normal pro password before aplying the sp1.

If you know another way i would love to hear it as I tried about anything I could find for quite a few days to get around it.

Link to comment
Share on other sites

Well if I slipstream sp I have a problem with passwords. No password i have or can find will let me into windows. So I have to change the password to a normal pro password before aplying the sp1. 

If you know another way i would love to hear it as I tried about anything I could find for quite a few days to get around it.

Password??? "product key" i have corporate edition and i have slipstreamed sp1a

email me Devil270975@hotmail.com

Link to comment
Share on other sites

Thanks for explaining, looks all clear to me now! Has anyone been able to prevent setup from logging into the default admin account, and force Setup to login with your own created username to run the batch in?

I was thinking about running the autologin registry tweak from cmdlines, or deleting the default admin account via net commands but I'm not so sure about that.

After I studied some posts in this topic, I found some maistakes in your settings, now let me have a conclude.

To skip mini-setup, be sure to set "UnattendSwitch = Yes" in [unattended] section.

To auto creat a usename, please add some commands in your batch file, explained later.

To prevent setup from logging into the default admin account, and force Setup to login with your own created username, please delete "AutoLogon=Yes" in [GuiUnattended] section!

Let me explain.

First, setup you winnt.sif like this:

;SetupMgrTag

[Data]

AutoPartition=0

MsDosInitiated="0"

UnattendedInstall="Yes"

[unattended]

UnattendMode=FullUnattended

OemSkipEula=Yes

OemPreinstall=Yes

UnattendSwitch=Yes

[GuiUnattended]

AdminPassword="xxxxx"

EncryptedAdminPassword=NO

AutoLogon=Yes Delete this!

OEMSkipRegional=1

TimeZone=110

OemSkipWelcome=1

[userData]

ProductKey=xxxx-xxxx-xxxx-xxxx-xxxx

FullName="xxxx"

OrgName="xxxxxx"

ComputerName=xxxxx

If you set AutoLogon=Yes, of course it will autologon, but use default admin account. If positive, as long as you had created another account before [GuiRunOnce], it will also autologon use your created username. It doesn't affect whether your admin account has a password even a encryptedAdminPassword.

To created another account than admin before [GuiRunOnce], you must have a file cmdlines.txt in $oem$ directory, so let's go sencond step.

Creat a file cmdlines.txt and install.cmd in $oem$ directory, the simple sample as follows:

cmdlines.txt

[COMMANDS]

".\INSTALLS.CMD"

install.cmd

@ECHO OFF

net user "UserName" /add>nul

net localgroup administrators "UserName" /add>nul

rem insert any other command you like

The cmdlines.txt will be auto run when setup, that's enough.

More advanced skill.

To be more flexible, set FullName="" and OrgName="" in [userData] section, let the installer choose his own fullname and orgname, in this case, you can auto creat a user account using FullName, see the sample.

install.cmd

@ECHO OFF

reg query "hklm\software\microsoft\windows nt\currentversion" /v "RegisteredOwner">ANYFILENAME

for /f "skip=4 tokens=2 delims=Z" %%i in (ANYFILENAME) do set Fname=%%i

set FName=%FName:~1%

net user "%FName%" /add>nul

net localgroup administrators "%FName%" /add>nul

del ANYFILENAME

If you use Non-English version XP and encountered a problem, than use the following codes instead of the above codes.

@ECHO OFF

reg export "hklm\software\microsoft\windows nt\currentversion" ANYFILENAME1 >nul

find /n "RegisteredOwner" ANYFILENAME1>ANYFILENAME2

FOR /F "tokens=2 delims==" %%i in (ANYFILENAME2) do set FName=%%i

set FName=%FName:~1,-1%

net user "%FName%" /add>nul

net localgroup administrators "%FName%" /add>nul

del ANYFILENAME1

del ANYFILENAME2

Finally, if you are hard to understand the last two phase codes, please click here for explanation.

Link to comment
Share on other sites

devil270975 - you're awesome...I've got almost everything working now...

The only problem left is that after my apps and hotfixes install, my computer reboots and then waits for my password at the login screen...

What's the best way for me to enable Autologin? Maybe I've misread what you've written and have missed something, but I don't think so...

Which part specifically (if any) tells it to auto-log-me-in ?

Thanks for the help... :)

Link to comment
Share on other sites

it's a registry tweak that you have to apply.

;This will allow you to autologin.

;Replace InsertName value with the Username you want to autologin with.

;Replace InsertPassword value with the password corresponding to the Username specified.

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

"DefaultUserName"="User"

"DefaultPassword"=""

"AutoAdminLogon"="1"

Link to comment
Share on other sites

I notice a few people on this thread mentioning all the CDs they've had to throw in the garbage due to rebuilds. I just wanted to make sure that everyone knew that you can use re-writables to create these CDs as long as you chose 'finalize' on the last screen. You can then erase the cd if you made a mistake and want to burn it again. I know that's how most people will be doing it, but just in case...

Link to comment
Share on other sites

I"ll give it a shot, and it'll save me some money!  :D

How much do I owe you?  :rolleyes:

A couple of hundred should cover it. :)

I think if you finalise a CD it just means you can't add files to it later (multisession). Finalising CDs also means you can use re-writables for music in your discman etc.

Link to comment
Share on other sites

Ok....my AutoLogon is still not working quite properly..

I'm getting an annoying message, which stops the otherwise smooth process....

The install goes smoothly (format drive, windows install, system reboots...) but when it goes to log on for the first time, an error message pops up saying:

The system could not log you on. Make sure your user name and domain are correct, then type your password again. Letters in passwords must be typed in the correct case.

In the background I can see my username and the password box is filled (with the circle characters disguising the password). The only thing it lets me do is click OK...

When I click OK, it goes to the user Log-in screen and then if I click on my name, it logs in automatically (no password needed).

It then begins to run my applications.cmd file, and everything goes smoothly from there (hotfixes.cmd runs, then reboots automatically, using the correct username).

Anyone have any ideas as to why that error message is there? I hate it...everything runs smoothly otherwise and I'd like to solve it. Is anyone else getting the same thing?

users.cmd:

@ECHO OFF
@ECHO OFF
net user "Cam" /add>nul
net localgroup administrators "Cam" /add>nul
ECHO.
ECHO Applying Root Registry Tweaks...
REGEDIT /S %systemdrive%\install\RegRootTweaks.reg

ECHO.
EXIT

RegRootTweaks.reg:

Windows Registry Editor Version 5.00

;This will allow you to autologin.
;Replace InsertName value with the Username you want to autologin with.
;Replace InsertPassword value with the password corresponding to the Username specified.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="Cam"
"DefaultPassword"="mypassword"
"AutoAdminLogon"="3"

Thanks for anyone who can help! :)

Link to comment
Share on other sites

ok here are mine.

USER.CMD

CLS
@ECHO OFF
ECHO Adding Default User...
net user User /add
net localgroup "administrators" User /add
ECHO.
ECHO Applying Root Registry Tweaks...
REGEDIT /S %systemdrive%\install\Reg_Root_Tweaks.reg
ECHO.
EXIT

Reg_Root_Tweaks.reg

Windows Registry Editor Version 5.00 

;This will allow you to autologin.
;Replace InsertName value with the Username you want to autologin with.
;Replace InsertPassword value with the password corresponding to the Username specified.
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"DefaultUserName"="User"
"DefaultPassword"=""
"AutoAdminLogon"="1"

;This will add "Services" to the right-click menu of "My Computer"
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\services]
@=hex(2):53,00,65,00,72,00,76,00,69,00,63,00,65,00,73,00,00,00
"SuppressionPolicy"=dword:4000003c
[HKEY_CLASSES_ROOT\CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\shell\services\command]
@=hex(2):25,00,77,00,69,00,6e,00,64,00,69,00,72,00,25,00,5c,00,73,00,79,00,73, 00,74,00,65,00,6d,00,33,00,32,00,5c,00,6d,00,6d,00,63,00,2e,00,65,00,78,00, 65,00,20,00,2f,00,73,00,20,00,25,00,53,00,79,00,73,00,74,00,65,00,6d,00,52, 00,6f,00,6f,00,74,00,25,00,5c,00,73,00,79,00,73,00,74,00,65,00,6d,00,33,00, 32,00,5c,00,73,00,65,00,72,00,76,00,69,00,63,00,65,00,73,00,2e,00,6d,00,73, 00,63,00,20,00,2f,00,73,00,00,00

;This adds the "Open Command Window Here" on the right-click menu for folders
[HKEY_CLASSES_ROOT\Directory\shell\cmd]
@="Open Command Window Here"
[HKEY_CLASSES_ROOT\Directory\shell\cmd\command]
@="cmd.exe /k \"cd %L\""

;Disable Windows Picture and Fax Viewer
[-HKEY_CLASSES_ROOT\SystemFileAssociations\image\ShellEx\ContextMenuHandlers\ShellImagePreview]

;Disable Automatic Restart in the event of a BSOD
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\CrashControl]
"AutoReboot"=dword:00000000

;Disables Error Reporting, but notifies when errors occur
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\PCHealth\ErrorReporting]
"DoReport"=dword:00000000

;Disable Imapi CD-Burning Service
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ImapiService]
"Start"=dword:00000004

;Disable Messenger Service (to block spam. Does not affect MSN or Windows Messenger)
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\Messenger]
"Start"=dword:00000004

;Disable Remote Registry Service
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\RemoteRegistry]
"Start"=dword:00000004

;Disable Windows Time Service
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\W32Time]
"Start"=dword:00000004

;Disable Welcome Screen and uses Classic Logon
;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
;"LogonType"=dword:00000000

;Removes Language Bar
[-HKEY_CLASSES_ROOT\CLSID\{540D8A8B-1C3F-4E32-8132-530F6A502090}]
@="Language bar"
"MenuTextPUI"="@%SystemRoot%\\System32\\msutb.dll,-325"

;Remove Shared Documents from My Computer
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\MyComputer\NameSpace\DelegateFolders\{59031a47-3f72-44a7-89c5-5595fe6b30ee}]

;Remove Shortcut Arrows
[HKEY_CLASSES_ROOT\lnkfile]
"IsShortcut"=-

;Allow renaming of Recycle Bin
[HKEY_CLASSES_ROOT\CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\ShellFolder]
"Attributes"=hex:50,01,00,20
"CallForAttributes"=dword:00000000

;Speed up browsing remote computers
[-HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\RemoteComputer\NameSpace\{D6277990-4C6A-11CF-8D87-00AA0060F5BF}]

;Speed up NTFS
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\FileSystem]
"NtfsDisable8dot3NameCreation"=dword:00000001
"Win31FileSystem"=dword:00000000
"Win95TruncatedExtensions"=dword:00000001
"NtfsDisableLastAccessUpdate"=dword:00000001

;Always unload Dlls
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer]
"AlwaysUnloadDll"=dword:00000001
"NoStartMenuPinnedList"=dword:00000001

;RAM usage tweaks
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management]
"DisablePagingExecutive"=dword:00000001
"LargeSystemCache"=dword:00000001
"IoPageLockLimit"=dword:1bf00000
"SecondLevelDataCache"=dword:00000100

;Prefetcher tweak(faster booting)
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Session Manager\Memory Management\PrefetchParameters]
"EnablePrefetcher"=dword:00000003

;Changes Windows Driver Signing Policy 'prompt' to 'ignore'
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Driver Signing]
"Policy"=hex:00

;Disable Nvidia Driver Helper Service
[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NVSvc]
"Start"=dword:00000004

;Disable System Restore
;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\SystemRestore]
;"DisableSR"=dword:00000001

;Disable Remote Assistance
;[HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server]
;"fDenyTSConnections"=dword:00000001
;"fAllowToGetHelp"=dword:00000000

;Disable Autoupdates
;[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\WindowsUpdate\AU]
;"NoAutoUpdate"=dword:00000001

;Disable Autoupdates
;[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\WindowsUpdate\Auto Update]
;"AUOptions"=dword:00000001
;"AUState"=dword:00000007

;Disable QoS
;[HKEY_LOCAL_MACHINE\SOFTWARE\Policies\Microsoft\Windows\Psched]
;"NonBestEffortLimit"=dword:00000000

;Disable the Desktop Cleanup Wizard
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\Desktop\CleanupWiz]
"NoRun"=dword:00000001

;Adds search keywords to Internet Explorer (in this order: Microsoft Knowledge Base, Altavista, Google, MSN, FileMirrors)
[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\SearchUrl\MSKB]
@="http://support.microsoft.com/?kbid=%s"
[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\SearchUrl\AV]
@="http://www.altavista.com/sites/search/web?q=%s"
[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\SearchUrl\GGL]
@="http://www.google.com/search?q=%s"
[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\SearchUrl\MSN]
@="http://search.msn.com/results.asp?q=%s"
[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\SearchUrl\FM]
@="http://www.filemirrors.com/search.src?file=%s"

;Prevents Internet Explorer windows from being reused
[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main]
"AllowWindowReuse"=dword:00000000

;Max your Internet Explorer's simultaneous downloads to 10 (default was 2)
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Internet Settings]
"MaxConnectionsPer1_0Server"=dword:0000000a
"MaxConnectionsPerServer"=dword:0000000a

;Change MenuShowDelay (Start Menu load speed)
;[HKEY_LOCAL_MACHINE\Control Panel\Desktop]
;"MenuShowDelay"="2"

;Disables Windows Tour bubble popup
;[HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Applets\Tour]
;"RunCount"=dword:00000000
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Applets\Tour]
"RunCount"=dword:00000000

;NoLowDiskSpaceChecks won't check if you are low on diskspace or pop-up a balloon telling you.
;[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
;"NoLowDiskSpaceChecks"=dword:00000001

;Disable Recycle Bin
;Removes low disk space check, start menu pins, recent docs, and forces control pannel into classic mode
;[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer]
;"NoRecentDocsMenu"=dword:00000001
;"NoDriveTypeAutoRun"=dword:00000091
;"NoCDBurning"=dword:00000001
;"NoRecycleFiles"=dword:00000001
;"NoLowDiskSpaceChecks"=dword:00000001
;"NoStartMenuPinnedList"=dword:00000001
;"ForceClassicControlPanel"=dword:00000001
;"Start_NotifyNewApps"=dword:00000000

;Stop Messenger
;[HKEY_LOCAL_MACHINE\Software\Microsoft\MSNMessenger]
;"AppSettings"= hex:22,04,00,00

;Removes MSN v6 from startup
[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Run]
"MsnMsgr"=-

;IE stuff
[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main]
"Start Page"="about:blank"
"ShowGoButton"="no"
"NotifyDownloadComplete"="no"
"Use FormSuggest"="yes"

;Stuff
;[HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Explorer\Advanced]
;"Hidden"=dword:00000001
;"ShowCompColor"=dword:00000001
;"HideFileExt"=dword:00000000
;"DontPrettyPath"=dword:00000000
;"ShowInfoTip"=dword:00000001
;"HideIcons"=dword:00000000
;"MapNetDrvBtn"=dword:00000000
;"WebView"=dword:00000000
;"Filter"=dword:00000000
;"SuperHidden"=dword:00000001
;"SeparateProcess"=dword:00000000
;"ListviewAlphaSelect"=dword:00000000
;"ListviewShadow"=dword:00000000
;"ListviewWatermark"=dword:00000000
;"TaskbarAnimations"=dword:00000000
;"StartMenuInit"=dword:00000002
;"Start_LargeMFUIcons"=dword:00000000
;"Start_MinMFU"=dword:00000000
;"Start_ShowControlPanel"=dword:00000001
;"Start_EnableDragDrop"=dword:00000001
;"StartMenuFavorites"=dword:00000000
;"Start_ShowHelp"=dword:00000000
;"Start_ShowMyComputer"=dword:00000000
;"Start_ShowMyDocs"=dword:00000000
;"Start_ShowMyMusic"=dword:00000000
;"Start_ShowMyPics"=dword:00000000
;"Start_ShowPrinters"=dword:00000000
;"Start_ShowRun"=dword:00000001
;"Start_ScrollPrograms"=dword:00000000
;"Start_ShowSearch"=dword:00000001
;"Start_ShowRecentDocs"=dword:00000000
;"Start_AutoCascade"=dword:00000000
;"Start_NotifyNewApps"=dword:00000000
;"Start_AdminToolsRoot"=dword:00000000
;"StartMenuAdminTools"=dword:00000000
;"TaskbarSizeMove"=dword:00000001
;"TaskbarGlomming"=dword:00000000
;"NoNetCrawling"=dword:00000001
;"FolderContentsInfoTip"=dword:00000001
;"FriendlyTree"=dword:00000000
;"WebViewBarricade"=dword:00000001
;"DisableThumbnailCache"=dword:00000001
;"ShowSuperHidden"=dword:00000001
;"ClassicViewState"=dword:00000001
;"PersistBrowsers"=dword:00000000
;"CascadeNetworkConnections"="YES"
;"StartButtonBalloonTip"=dword:00000002
;"Start_ShowNetConn_ShouldShow"=dword:00000042

;[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Desktop\General]
"BackupWallpaper"="c:\\windows\\web\\wallpaper\\Sunset.jpg"
"Wallpaper"="c:\\windows\\web\wallpaper\\The Beach.jpg"

;[HKEY_LOCAL_MACHINE\Software\Microsoft\Internet Explorer\Main]
;"Start Page"="http://www.webmedic.net...."

The nice thing about this is that these settings are set for all users.

the ones with a ; are disabled.

now in this is the winnt.sif. This is all working perfectly by the way. Now that I have worked all the bugs out.

;SetupMgrTag
[Data]
AutoPartition=0
MsDosInitiated="0"
UnattendedInstall="Yes"

[Unattended]
AutoActivate="no"
;CrashDumpSetting="0"
DisableDynamicUpdates=Yes
;FileSystem=LeaveAlone
;Hibernation=0
UnattendMode=FullUnattended
OemSkipEula=Yes
OemPreinstall=Yes
TargetPath=\WINDOWS
Repartition=No
UnattendSwitch="Yes"
WaitForReboot="No"
NoWaitAfterTextMode=1
NoWaitAfterGUIMode=1
DriverSigningPolicy=Ignore
OemPnPDriversPath="Drivers\radeon-cat3_6\2KXP_INF;Drivers\radeon-cat3_6\TV_Capture\WDM_XP;
Drivers\nforce;Drivers\nforce\AudioDRV;Drivers\nforce\AudioUtl;Drivers\nforce\Display;
Drivers\nforce\Ethernet;Drivers\nforce\GART;Drivers\nforce\IDE;Drivers\nforce\MemCtl;
Drivers\nforce\SMBus;Drivers\nforce\USB;Drivers\Promise_sata;Drivers\SI_rdvr;Drivers\hpt372;
Drivers\4in1442v;Drivers\4in1442v\AGP;Drivers\4in1442v\AGP33;Drivers\4in1442v\AgpME;
Drivers\4in1442v\IDEWinXP;Drivers\4in1442v\Inf;Drivers\4in1442v\IRQ;Drivers\4in1442v\Pfd;
Drivers\4in1442v\WinXP;Drivers\VIA-VT6103;Drivers\wdm;Drivers\wdm\wdm;"

[GuiUnattended]
AdminPassword=*
EncryptedAdminPassword=no
OEMSkipRegional=1
TimeZone=4
OemSkipWelcome=0

[UserData]
ProductID=Badgers? We dont need no stinking badgers!
FullName="User"
OrgName="My Home"
ComputerName=Computer

[Display]
BitsPerPel=32
Xresolution=1024
YResolution=768
Vrefresh=85

[TapiLocation]
CountryCode=1

[Identification]
JoinWorkgroup=WORKGROUP

[Networking]
InstallDefaultComponents=Yes

[Branding]
BrandIEUsingUnattended=Yes

[URL]
Home_Page=www.webmedic.net
Help_Page=www.webmedic.net
Search_Page=www.google.com

[Components]
msmsgs=off
msnexplr=off
freecell=off
hearts=off
minesweeper=off
pinball=off
solitaire=off
spider=off
zonegames=off
OEAccess=off

[Shell]
; DefaultStartPanelOff = Yes
; DefaultThemesOff = Yes
; defaultthemesoff = yes will override this setting
CustomDefaultThemeFile = "%systemroot%\Resources\Themes\MyTheme.theme"


[GuiRunOnce]
%systemdrive%\install\first_boot.cmd

I broke the driver path line above so it would not break the forums. That should all be on one line.

ok and last but not least the first_boot.cmd.

Please note this will allow for a dual cd setup right now. I gues I could add more cd's but two is good for me right now.

CLS
@ECHO OFF
SET CDROM=
IF EXIST D:\$OEM$\$1\install\First_boot.cmd SET CDROM=D:
IF EXIST E:\$OEM$\$1\install\First_boot.cmd SET CDROM=E:
IF EXIST F:\$OEM$\$1\install\First_boot.cmd SET CDROM=F:
IF EXIST G:\$OEM$\$1\install\First_boot.cmd SET CDROM=G:
IF EXIST H:\$OEM$\$1\install\First_boot.cmd SET CDROM=H:
IF EXIST I:\$OEM$\$1\install\First_boot.cmd SET CDROM=I:
IF EXIST J:\$OEM$\$1\install\First_boot.cmd SET CDROM=J:
IF EXIST K:\$OEM$\$1\install\First_boot.cmd SET CDROM=K:
ECHO.
IF EXIST %systemdrive%\install\hotfixes.cmd GOTO RUNCMD
ECHO If you only have one cdrom please remove your cd
ECHO from the cdrom and place the second cd in the drive.
ECHO.
ECHO If you have two cdroms then make sure your second
ECHO cd is in the second cdrom drive.
ECHO.
PAUSE
IF NOT EXIST %CDROM%\install\hotfixes.cmd GOTO RUNCMD

xcopy %CDROM%\install %systemdrive%\install\ /S /C /Q /H /Y
ECHO.

:RUNCMD
IF NOT EXIST %CDROM%\$OEM$\$1\install\First_boot.cmd GOTO RUNBATCH
ECHO Please remove your cd from the cdrom drive.
ECHO.
PAUSE
ECHO.
IF EXIST %CDROM%\$OEM$\$1\install\First_boot.cmd GOTO RUNCMD

:RUNBATCH
ECHO Running Main Batch ...
ECHO.
start /wait %systemdrive%\install\main_batch.cmd
:: load from second cd without intervention
IF NOT EXIST %systemdrive%\install\hotfixes.cmd GOTO ERROR
ECHO Running Hotfixes Batch ...
ECHO.
start /wait %systemdrive%\install\hotfixes.cmd
IF NOT EXIST %systemdrive%\install\CUSTOMIZE.CMD GOTO ERROR
ECHO Running Cumstom Batch ...
ECHO.
start /wait %systemdrive%\install\CUSTOMIZE.CMD
IF NOT EXIST %systemdrive%\install\applications.cmd GOTO ERROR
ECHO Running Applications Batch ...
ECHO.
start /wait %systemdrive%\install\applications.cmd
GOTO END

:ERROR
ECHO.
ECHO *******************WARNING*******************
ECHO Hotfixes or Applications were not installed
ECHO because they could not be found.
ECHO.
ECHO Check %systemdrive%\install\install.log for
ECHO more information.
ECHO *******************WARNING*******************
ECHO.
PAUSE

:END
ECHO.
ECHO Restarting the PC in 1 minute...
shutdown -r -f -t 60 -c "Windows XP will now restart in 1 minute, this will give enough time for the shortcuts to update and for the shell to fully load before its ready to restart!"
ECHO.
::ECHO Deleting Temp Installation Files...
::RD /S /Q %systemdrive%\install
::RD /S /Q %systemdrive%\Drivers
::ECHO.
EXIT

Notice I have disabled the deletion of the install and drivers directories. This will also take care of those leaving the cd in the drive and will also bypass the second cd part if you are using another type of media like a dvd. It will still ask you to remove the dvd or cdrom in eather case if it is in the drive.

Link to comment
Share on other sites

Thanks webmedic...hmmm....I wonder what the problem could be...

I can only see a couple of differences in our setups...1 of those is that your is set to use the Classic Logon and mine isn't....maybe I'll try Classic and see if it makes a difference....I could always change it back in my last batch file...

I'll give it a shot and let you know how it goes...

Thanks for posting your setup... :)

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