what3v3r Posted August 8, 2004 Share Posted August 8, 2004 Hi everybody!the past few days i have been working on creating my own unattended xpcd, and i ran into a few problems i havent yet been able to solve myself... the first one, that bugs me the most is that this part of my winnt.sif is obviously ignored:[Display] BitsPerPel=32 Xresolution=1024 YResolution=768[UserData] ComputerName=MYCOMPUTER[Shell]CustomDefaultThemeFile = "%Systemroot%\Resources\Themes\Royale.Theme"after the installation finishes the computername is something totally different (its the companyname with some random numbers and letters appended)the theme i specify isnt applied (though the path is correct)and the resolution stays 640x480. Also Autologon didnt work when a password was set. i solved this by deleting the password. but this is more like a workaround - id really prefer this to work WITH a password.The windows version i use is xp pro with sp2 slipstreamed.and im using vmware to test my image.this is my complete winnt.sif:;SetupMgrTag[Data] AutoPartition=0 MsDosInitiated="0" UnattendedInstall="Yes"[Unattended] WaitForReboot="No" FileSystem=* UnattendMode=FullUnattended OemSkipEula=Yes OemPreinstall=Yes TargetPath=\WINDOWS UnattendSwitch="yes" DriverSigningPolicy=Ignore OemPnPDriversPath="DRIVERS\006\viasraid;DRIVERS\005\NVIDIA;DRIVERS\007;DRIVERS\008;DRIVERS\009;DRIVERS\010\DVBPCTVSTARS;DRIVERS\010\DVBPCTVSTARS\Install;DRIVERS\011;DRIVERS\011\WIN2K_XP;DRIVERS\011\COMMON"[GuiUnattended] AdminPassword=* EncryptedAdminPassword=No AutoLogon=Yes AutoLogonCount=5 OEMSkipRegional=1 TimeZone=110 OemSkipWelcome=1[UserData] ProductKey=XXXXX-XXXXX-XXXXX-XXXXX-XXXXX FullName="name" OrgName="business" ComputerName=MYCOMPUTER[Display] BitsPerPel=32 Xresolution=1024 YResolution=768[RegionalSettings] LanguageGroup=1 SystemLocale=00000c07 UserLocale=00000c07 InputLocale=0c07:00000407[Branding] BrandIEUsingUnattended=Yes[URL] Home_Page=www.google.com Search_Page=www.google.com[Proxy] Proxy_Enable=0 Use_Same_Proxy=1[Identification] JoinWorkgroup=WORKGROUP1[Networking] InstallDefaultComponents=No[NetAdapters] Adapter1=params.Adapter1[params.Adapter1] INFID=*[NetClients] MS_MSClient=params.MS_MSClient[NetServices] MS_SERVER=params.MS_SERVER MS_PSched=params.MS_PSched[NetProtocols] MS_TCPIP=params.MS_TCPIP[params.MS_TCPIP] DNS=Yes UseDomainNameDevolution=No EnableLMHosts=Yes AdapterSections=params.MS_TCPIP.Adapter1[params.MS_TCPIP.Adapter1] SpecificTo=Adapter1 DHCP=Yes WINS=No NetBIOSOptions=0[GuiRunOnce] %systemdrive%\install\batchfile.cmd[Shell]CustomDefaultThemeFile = "%Systemroot%\Resources\Themes\Royale.Theme"these are the apps im trying to install automatically (everything seems to work fine here)AcrobatReader 6Ad-AwareDaemon tools 346Diskeeper 8dotnet frameworkDX9bJAVA 1.4.05NAV2004 (im not registering it during install)Nero 6Office 2003 proOpera 7.54Winrar 3.30This is my batchfile:ECHO.ECHO VIA Chipset driver installationECHO please wait...start /wait %systemdrive%\drivers\000\setup.exe -sECHO.ECHO Winrar installationECHO please wait...start /wait %systemdrive%\install\Apps\winrar\wrar330d.exe /sECHO.ECHO Installing Adobe Reader 6ECHO Please wait...start /wait %systemdrive%\install\Apps\AcroRdr\AdbeRdr60_enu_full.exe -p"-s /v\"/qn\""ECHO.ECHO Installing .NET Framework v1.1ECHO Please wait...start /wait %systemdrive%\install\Apps\dotnet\netfx.msi /qbECHO.ECHO Installing Nero Burning ROMECHO Please wait...start /wait %systemdrive%\install\Apps\Nero\setup.exe /silent /noreboot /no_ui /sn=XXXXXXXXXX /write_snECHO.ECHO Installing Diskeeper 8.0ECHO Please wait...start /wait %systemdrive%\install\Apps\diskeeper\Setup.exe /s /v/qECHO.ECHO Installing DirectX 9.0bECHO Please wait...start /wait %systemdrive%\install\Apps\DX\DX9NTopk.exeECHO. ECHO Installing Java Runtime Environment 1.4.05ECHO Please Wait...start /wait %systemdrive%\Install\Apps\JAVA\java.exe /s /v/qnECHO.ECHO Installing Opera Internet Browser 7.54ECHO Please Wait...start /wait %systemdrive%\install\Apps\opera\operaib.exe /sECHO.ECHO Installing Office 2003 ProfessionalECHO Please wait...start /wait %systemdrive%\install\Apps\Office\setup.exe TRANSFORMS=unattended.MST /qb-ECHO. ECHO Installing DaemonTools 3.46 ECHO Please wait... start /wait %systemdrive%\install\Apps\Daemon346\daemon.msi /qb REBOOT=suppressECHO.ECHO Installing Winamp 5.03echo [WinampReg]>%systemroot%\winamp.iniecho IsFirstInst=>>%systemroot%\winamp.iniecho NeedReg=>>%systemroot%\winamp.iniCD %systemdrive%\Install\Winamp\Start %systemdrive%\Install\Winamp\winamp.jssleep 30taskkill /F /IM WINAMP.EXEcopy %systemdrive%\Install\Winamp\Winamp.ini "%systemdrive%\Program Files\Winamp\"ECHO.ECHO Registering for the Pro VersionREG ADD HKLM\SOFTWARE\Nullsoft\Winamp /v regname /d ab /fREG ADD HKLM\SOFTWARE\Nullsoft\Winamp /v regkey /d xxxxx-xxxxxx-xxxxxx /fECHO.ECHO Installing Norton Antivirus 2004ECHO Please wait...ECHO.start /wait %systemdrive%\install\Apps\NAV2004\NAVSetup.exe /O REBOOT=ReallySuppress /QBECHO Killing the Configuration Wizard of NAV 2004 and its processestaskkill.exe /F /IM cfgwiz.exetaskkill.exe /F /IM ccApp.exetaskkill.exe /F /IM symlcsvc.exetaskkill.exe /F /IM ccSetMgr.exetaskkill.exe /F /IM ccEvtMgr.exetaskkill.exe /F /IM SAVScan.exetaskkill.exe /F /IM navapsvc.exetaskkill.exe /F /IM NPROTECT.EXEECHO.ECHO Applying Registry Tweaks...call REGEDIT /S %systemdrive%\install\RegTweaks.regsleep 8echo Finished!sleep 2echo Rebooting...sleep 3%systemdrive%\windows\system32\shutdown.exe -r -f -t 90 -c "Windows XP will now restart in 90 seconds!"exitsomething else i've noticed is that after the 90 second countdown finishes it takes almost 3 minutes for the pc to eventually restart. but i guess thats normal... ?i really hope that somebody tries to help me, because im pretty much lost here. i dont even know where to start looking for a solution. forum searches didnt turn up anything useful.TIA Link to comment Share on other sites More sharing options...
MCT Posted August 8, 2004 Share Posted August 8, 2004 hiu need drivers for your video card to the resolution thing 2 workcomputername may conflict try adding something like MYCOMPUTER_HOMEu need uxtheme.dll for themes 2 workalso.. about the apps. if u have any questions.. all these apps are common, search the forum the restart time could be cause its taking alot of time 2 kill services or running apps.. try some tweaks regards Link to comment Share on other sites More sharing options...
johnmallan Posted August 8, 2004 Share Posted August 8, 2004 For the reolution try using Video Resolution Changer which you will get at the bottome of this page.For the theme are you using a signed theme, if not do you have the hacked UXTHEME.DLL for SP2 RTM (whic is here)and for the computer name i havent a clue what could be wrong.Hope this helps.EDIT: Looks like i forgot about the programs, oh well i didnt know anyway Link to comment Share on other sites More sharing options...
homiebrah Posted August 8, 2004 Share Posted August 8, 2004 I get the computer name problem when running it in VMWare with bridged networking. It detects the name already in use and creates a new one. Link to comment Share on other sites More sharing options...
what3v3r Posted August 8, 2004 Author Share Posted August 8, 2004 first of all thanks for the quick replies.@homiebrah: you could be right. i use bridged networking and the name is already used by another computer on the network! THANKS@johnmallan: the theme seems to be signed. when i doubleclick royale.msstyles it is loaded in "display properties", i can select it, and it works.@mct: the videocard drivers are being copied to the hdd and are referred to in the winnt.sif file under "OemPnPDriversPath". so, this should work right? Link to comment Share on other sites More sharing options...
jrzycrim Posted August 8, 2004 Share Posted August 8, 2004 VMware uses its own video drivers. Unfortunately they aren't loaded until you install vmware tools after a Guess OS is installed. Not much good for testing our ISOs.A workaround is to put the Vmware video drivers in your OEM driver path. This thread has a link for the drivers; There are only 4 files which amount to only 46KB. You can drop them in an already existing driver folder or make a new folder and add that to your driver path in winnt.sif.http://www.msfn.org/board/index.php?showtopic=23429&st=20 Link to comment Share on other sites More sharing options...
what3v3r Posted August 8, 2004 Author Share Posted August 8, 2004 VMware uses its own video drivers. Unfortunately they aren't loaded until you install vmware tools after a Guess OS is installed. Not much good for testing our ISOs.A workaround is to put the Vmware video drivers in your OEM driver path. This thread has a link for the drivers; There are only 4 files which amount to only 46KB. You can drop them in an already existing driver folder or make a new folder and add that to your driver path in winnt.sif.http://www.msfn.org/board/index.php?showtopic=23429&st=20DONE!THXnow the only thing left is that my custom theme isn't applied automatically.but i really dont understand why, because it works when i do it manually. Link to comment Share on other sites More sharing options...
jrzycrim Posted August 8, 2004 Share Posted August 8, 2004 Maybe you have a registry tweak which is causing your problem or something is wrong with your theme file. Make sure the path to your msstyle file is correct in the theme file itself.[VisualStyles]Path=path to .msstyles\.msstylesAlso check that the path to your theme file in the winnt.sif is correct. I know you said you can apply the msstyles file to get your visual style working but try loading the theme file and see what happens.If you still have problems, post your theme file and the locations of all relevant files. Link to comment Share on other sites More sharing options...
what3v3r Posted August 9, 2004 Author Share Posted August 9, 2004 alright, i doubleclicked the .theme file, which opened the "display properties" window. after clicking apply. everthing looked the way its supposed to.heres my .theme file:; Copyright © Microsoft Corp. 1995-2001[Theme]; My Computer[CLSID\{20D04FE0-3AEA-1069-A2D8-08002B30309D}\DefaultIcon]DefaultValue=%SystemRoot%\explorer.exe,0; My Documents[CLSID\{450D8FBA-AD25-11D0-98A8-0800361B1103}\DefaultIcon]DefaultValue=%SystemRoot%\SYSTEM32\mydocs.dll,0; My Network Places[CLSID\{208D2C60-3AEA-1069-A2D7-08002B30309D}\DefaultIcon]DefaultValue=%SystemRoot%\SYSTEM32\shell32.dll,17; Recycle Bin[CLSID\{645FF040-5081-101B-9F08-00AA002F954E}\DefaultIcon]full=%SystemRoot%\SYSTEM32\shell32.dll,32empty=%SystemRoot%\SYSTEM32\shell32.dll,31[Control Panel\Colors]ActiveTitle=51 94 168Background=0 0 64Hilight=51 94 168HilightText=255 255 255TitleText=255 255 255Window=255 255 255WindowText=0 0 0Scrollbar=212 208 200InactiveTitle=111 161 217Menu=255 255 255WindowFrame=0 0 0MenuText=0 0 0ActiveBorder=212 208 200InactiveBorder=212 208 200AppWorkspace=128 128 128ButtonFace=235 233 237ButtonShadow=167 166 170GrayText=167 166 170ButtonText=0 0 0InactiveTitleText=255 255 255ButtonHilight=255 255 255ButtonDkShadow=133 135 140ButtonLight=220 223 228InfoText=0 0 0InfoWindow=255 255 225GradientActiveTitle=112 177 235GradientInactiveTitle=131 183 227ButtonAlternateFace=181 181 181HotTrackingColor=0 0 128MenuHilight=51 94 168MenuBar=235 233 237[Control Panel\Cursors]Arrow=Help=AppStarting=Wait=NWPen=No=SizeNS=SizeWE=Crosshair=IBeam=SizeNWSE=SizeNESW=SizeAll=UpArrow=DefaultValue=Windows-StandardLink=[Control Panel\Desktop]Wallpaper=%systemroot%grass2.jpgTileWallpaper=0WallpaperStyle=2Pattern=ScreenSaveActive=0[Control Panel\Desktop\WindowMetrics][Metrics]IconMetrics=76 0 0 0 114 0 0 0 75 0 0 0 1.......NonclientMetrics=84 1 0 0 1 0 0 0 17 0 0 0.......[boot]SCRNSAVE.EXE=[MasterThemeSelector]MTSM=DABJDKTThemeColorBPP=4[VisualStyles]Path=%WinDir%resources\Themes\Royale\Royale.msstylesColorStyle=NormalColorSize=NormalSizethe path to the theme file is:c:\windows\resources\themes\to msstyles file:c:\windows\resources\themes\royale\in winnt.sif it says: "%Systemroot%\Resources\Themes\Royale.Theme"which is: c:\windows\Resources\Themes\Royale.Themei cant find anything wrong but maybe i miss something, its 2am where i live Link to comment Share on other sites More sharing options...
jrzycrim Posted August 9, 2004 Share Posted August 9, 2004 At first glance I can't find anything wrong either. Maybe somebody else will find a problem.Post your reg tweaks as well. If it's a really long file you might want to include it as an attatchment instead of posting insided code tags... Link to comment Share on other sites More sharing options...
what3v3r Posted August 9, 2004 Author Share Posted August 9, 2004 thx for your help so far.is it possible that the winnt.sif file doesnt support these systemvariables?anyway, here are my reg tweaks:Tweaks.txt Link to comment Share on other sites More sharing options...
jrzycrim Posted August 9, 2004 Share Posted August 9, 2004 Mine looks pretty much the same and works.[Shell] CustomDefaultThemeFile = "%systemroot%\Resources\Themes\Jim.theme"I'll look over your tweaks and see if anything is amiss there, hopefully. Link to comment Share on other sites More sharing options...
what3v3r Posted August 9, 2004 Author Share Posted August 9, 2004 Mine looks pretty much the same and works.[Shell] CustomDefaultThemeFile = "%systemroot%\Resources\Themes\Jim.theme"I'll look over your tweaks and see if anything is amiss there, hopefully. thank you very much! : but ill go to bed now its almost 3am here Link to comment Share on other sites More sharing options...
Alanoll Posted August 9, 2004 Share Posted August 9, 2004 try blanking this line...Wallpaper=%systemroot%grass2.jpg Link to comment Share on other sites More sharing options...
jrzycrim Posted August 9, 2004 Share Posted August 9, 2004 I didn't see anything in your reg file to account for the problem. Try what Alanoll suggests. If you still have a problem after testing your lastets iso, setup your theme like you want it, apply it, then go to display properties > Theme tab and save your current theme. Use that theme file on your next test. Link to comment Share on other sites More sharing options...
Recommended Posts
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 accountSign in
Already have an account? Sign in here.
Sign In Now