gosh Posted October 8, 2003 Posted October 8, 2003 Here's some stuff useful for an unattended install. Most of the stuff is rare or unique. Enjoy.Trick #1: Make a flat.Close your eyes and imagine this for a second. You've made an unattended cd. A friend of yours who is computer illiterate calls you and has a problem with his computer. It hits you that you could save time by running your unattended cd at his house, doing a quick clean install. So you go over to his house, backup his data, and run your unattended cd. Once done you leave with the unattended cd. The next day your friend calls you up. This time he needs your xp cd because he installed something like IIS, and it needs files from the CD. Now you have to drive all the way over to his house again, just to give him your cd. Wouldn't it be nice if an unattended cd not just installed your favorite programs, but copied itself to the hard drive? That way you wouldn't need the cd again.To make an unattended flat we're gonna need to make 2 files - source.bat and source.reg. We're gonna put both into the windows folder.First, make this folder:\$OEM$\$$Copy what's below and save it as \$OEM$\$$\source.bat@ECHO OFFIF EXIST C:\WIN51IP.SP1 set CDROM=C:IF EXIST D:\WIN51IP.SP1 set CDROM=D:IF EXIST E:\WIN51IP.SP1 set CDROM=E:IF EXIST F:\WIN51IP.SP1 set CDROM=F:IF EXIST G:\WIN51IP.SP1 set CDROM=G:IF EXIST H:\WIN51IP.SP1 set CDROM=H:IF EXIST I:\WIN51IP.SP1 set CDROM=I:IF EXIST J:\WIN51IP.SP1 set CDROM=J:IF EXIST K:\WIN51IP.SP1 set CDROM=K:IF EXIST L:\WIN51IP.SP1 set CDROM=L:IF EXIST M:\WIN51IP.SP1 set CDROM=M:IF EXIST N:\WIN51IP.SP1 set CDROM=N:IF EXIST O:\WIN51IP.SP1 set CDROM=O:IF EXIST P:\WIN51IP.SP1 set CDROM=P:IF EXIST Q:\WIN51IP.SP1 set CDROM=Q:IF EXIST R:\WIN51IP.SP1 set CDROM=R:IF EXIST S:\WIN51IP.SP1 set CDROM=S:IF EXIST T:\WIN51IP.SP1 set CDROM=T:IF EXIST U:\WIN51IP.SP1 set CDROM=U:IF EXIST V:\WIN51IP.SP1 set CDROM=V:IF EXIST W:\WIN51IP.SP1 set CDROM=W:IF EXIST X:\WIN51IP.SP1 set CDROM=X:IF EXIST Y:\WIN51IP.SP1 set CDROM=Y:IF EXIST Z:\WIN51IP.SP1 set CDROM=Z:ECHO Please wait, Recovery Console is being installed locally.%CDROM%\i386\winnt32.exe /dudisable /cmdcons /unattendmd %systemroot%\Source\i386ECHO Please wait, source files are being copied. This may take several minutes.xcopy /Y /e %CDROM%\i386\*.* %systemroot%\Source\i386\ECHO Adding registry entries.regedit.exe /s Source.regECHO Done.exitCopy what's below and save it as $OEM$\$$\source.regWindows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Setup]"SourcePath"="%systemroot%\\Source\\""ServicePackSourcePath"="%systemroot%\\Source\\"Now, in your unattend file, make sure you have this:[unattended] UnattendMode=FullUnattended OemPreinstall=Yes OemSkipEula=Yes[GuiRunOnce]Command0="%windir%\source.bat"That's it. When you install xp using the unattend file, recovery console and a flat will be made the first time you boot into windows. This is great for friends that don't have a clue about windows. Now when they call you for help you'll know they have recovery console installed locally and a flat locally.Trick #2: Brand the my computer window:You can put a custom logo and name in the my computer window by using a simple inf file and bmp.First, make this folder:\$OEM$\$$\System32In this folder, copy below and save as \$OEM$\$$\System32\oeminfo.ini[Version]Microsoft Windows Whistler EditionWinVer=5.01[General]Manufacturer=goshModel=[support Information]Line1="win2k build"Find a small .bmp and save it as \$OEM$\$$\System32\oemlogo.bmpMake sure your unattend file has the stuff listed in trick #1. That's it.Trick #3: Associate file types:One of the most annoying aspects about xp is how some file types aren't registered the way you want it. For example, most software is released with an .nfo file, but xp wants to open .nfo files in msinfo32. Below is a way to batch file associations:REM ftype will also show all registered typesassoc .blt=txtfileassoc .cue=txtfileassoc .diz=txtfileassoc .eml=txtfileassoc .iss=txtfileassoc .log=txtfileassoc .md5=txtfileassoc .m3u=txtfileassoc .nbi=txtfileassoc .nfo=txtfileassoc .nt=txtfileassoc .pif=txtfileassoc .sam=txtfileassoc .sif=txtfileassoc .sfv=txtfileassoc *=txtfileIf you run those commands in a batch file, all the extensions will be registered as text files. This is also a good idea for security purposes, disabling known hostile file types such as .eml and .vbsTip #1: make a log file:Unattended installs can be hard to troubleshoot. What i like to do is make a log file, which makes it easier to see where the problem is. To make a log file, have each command end in >> logfile.txtAn example from my current apps.bat file:@ECHO OFFECHO Apps.bat, version %cdver% >> %windir%\apps.logECHO Logging started: %date% %time% >> %windir%\apps.logECHO Computer: %computername >> %windir%\apps.logECHO User: %username% >> %windir%\apps.log@echo. >> %windir%\apps.log@echo. >> %windir%\apps.logThis will log information to apps.log.Trick #3: Disable that stupid xp search companion:Like the old win2k search? Bring it back!REM Disable search companionregsvr32 /u /s %windir%\srchasst\srchui.dllTip #2: Copy your favorite files to the install:Using an oempreinstall you can copy files to your install, such as:$OEM$\$$\Web\Wallpaper - put wallpapers here$OEM$\$$\System32 - put screensavers, files such as cdimage.exe and cdburn.exe here$OEM$\$$\Resources\Themes - put themes here. To specify default them make a .theme file and specify it in unattend file.Tip #3: Use the server2003 classic accounts:Copy keymgr.cpl from server2003 to your system32 folder to have classic accountsTrick #4: Show classic user accounts in control panel.To see the win2k user accounts window type control userpasswords2. To enable this in an unattended install, import this registry file:Windows Registry Editor Version 5.00[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Explorer\ControlPanel\NameSpace\{7A9D77BD-5403-11d2-8785-2E0420524153}]@="OldUserAccounts"That's it for now. Let me know if you enjoy my tips and tricks.-gosh
DaveXP Posted October 8, 2003 Posted October 8, 2003 you got some good stuff they mate anything else like what can be emoved from the i386 dir to get some more room back
gosh Posted October 8, 2003 Author Posted October 8, 2003 I'll post how to save 150 megs from your xp cd later today. I also have a special treat later today.-gosh
b0r3d Posted October 15, 2003 Posted October 15, 2003 I realize that you can add different wallpapers to show up on the desktop tab by placing them in the $$\Web\Wallpaper dir, but how do you set one to be default, instead of Microsoft's bliss.bmp (the one with the grassy hills) ?
Numinous Posted October 15, 2003 Posted October 15, 2003 rename a copy of luna.theme in windows\resources\themes, edit it with notepad, copy it to $$\resources\themes and add this in winnt.sif[shell] CustomDefaultThemeFile="%Systemroot%\Resources\Themes\filename.Theme"change filename to whatever you called it
Westi Posted October 15, 2003 Posted October 15, 2003 Great work !Fine tune the batch 'source.bat' :add a line:'bootcfg /Timeout 2'to reduce the boot time from 30 to 2 sec.and make sure you have in i386 the folders WINNTUPG and COMPDATAotherwise the installation of cmdcons fails.
Rancor Posted October 15, 2003 Posted October 15, 2003 I realize that you can add different wallpapers to show up on the desktop tab by placing them in the $$\Web\Wallpaper dir, but how do you set one to be default, instead of Microsoft's bliss.bmp (the one with the grassy hills) ?I just add my fav. wallpaper(s) to \$oem$\$$\Web\Wallpaper\ in .bmp format, then use a couple of reg. hacks to make it the default, i.e.:[HKEY_CURRENT_USER\Control Panel\Desktop]"ConvertedWallpaper"="C:\\WINDOWS\\Web\\Wallpaper\\Windows XP.jpg""Wallpaper"="C:\\WINDOWS\\Web\\Wallpaper\\Windows XP.bmp"Works like a charm
willpantin Posted October 15, 2003 Posted October 15, 2003 I used a simpler approach to get my Favourite Wallpaper installed as Default...All I did was rename my Favourite Wallpaper to BLISS.JPG, then in command promp, in the directory of my file, I typed:makecab BLISS.JPG BLISS.JP_Then I replaced my old BLISS.JP_ in the I386 Directory of my installation CD with my new BLISS.JP_Simple, but equally effective.
squallgreg Posted October 15, 2003 Posted October 15, 2003 thanx willpantin ! Me too I thought of replacing the default wallpaper, but I didnt know where to find it ^_^
XtremeMaC Posted October 16, 2003 Posted October 16, 2003 hey instead of writing all those drive letters put .\for example winnt.bat which the deploy creates will look like...
willpantin Posted October 16, 2003 Posted October 16, 2003 Wow!XtremeMaC, that was a great tip!Thanks...
b0r3d Posted October 16, 2003 Posted October 16, 2003 To specify default them make a .theme file and specify it in unattend file.How would one go about chaning a .msstyles file to a .theme ? Is it as simple as just renmaing the file with the new extention, or does somethign more difficult need to be done?
Numinous Posted October 16, 2003 Posted October 16, 2003 change this section in your theme file[VisualStyles]Path=%ResourceDir%\Themes\Cbfield\Cbfield.msstylesColorStyle=NormalColorSize=NormalSizethere are regkeys too but theyre not essentiali would recommend changing this key for a classic login and shutdown themeHKU,.DEFAULT\Software\Microsoft\Windows\CurrentVersion\ThemeManager,DllName,0x20000,"%windir%\resources\themes\Cbfield\Cbfield.msstyles"edit :: or add it if it dont exist
b0r3d Posted October 16, 2003 Posted October 16, 2003 For some reason, when i use that method, it doesnt import the .msstyles properly. In the preview window, everything is out of preportion, and arent the right colours, yet when i apply the actual theme, it changes it to the classic theme (win2k)Any suggestions why it might not be working properly?
Recommended Posts
Please sign in to comment
You will be able to leave a comment after signing in
Sign In Now