Jump to content

Some parts of winnt.sif are being ignored!


Recommended Posts

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 6

Ad-Aware

Daemon tools 346

Diskeeper 8

dotnet framework

DX9b

JAVA 1.4.05

NAV2004 (im not registering it during install)

Nero 6

Office 2003 pro

Opera 7.54

Winrar 3.30

This is my batchfile:

ECHO.
ECHO VIA Chipset driver installation
ECHO please wait...
start /wait %systemdrive%\drivers\000\setup.exe -s

ECHO.
ECHO Winrar installation
ECHO please wait...
start /wait %systemdrive%\install\Apps\winrar\wrar330d.exe /s

ECHO.
ECHO Installing Adobe Reader 6
ECHO Please wait...
start /wait %systemdrive%\install\Apps\AcroRdr\AdbeRdr60_enu_full.exe -p"-s /v\"/qn\""
ECHO.

ECHO Installing .NET Framework v1.1
ECHO Please wait...
start /wait %systemdrive%\install\Apps\dotnet\netfx.msi /qb

ECHO.
ECHO Installing Nero Burning ROM
ECHO Please wait...
start /wait %systemdrive%\install\Apps\Nero\setup.exe /silent /noreboot /no_ui /sn=XXXXXXXXXX /write_sn

ECHO.
ECHO Installing Diskeeper 8.0
ECHO Please wait...
start /wait %systemdrive%\install\Apps\diskeeper\Setup.exe /s /v/q

ECHO.
ECHO Installing DirectX 9.0b
ECHO Please wait...
start /wait %systemdrive%\install\Apps\DX\DX9NTopk.exe

ECHO.
ECHO Installing Java Runtime Environment 1.4.05
ECHO Please Wait...
start /wait %systemdrive%\Install\Apps\JAVA\java.exe /s /v/qn

ECHO.
ECHO Installing Opera Internet Browser 7.54
ECHO Please Wait...
start /wait %systemdrive%\install\Apps\opera\operaib.exe /s

ECHO.
ECHO Installing Office 2003 Professional
ECHO 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=suppress

ECHO.
ECHO Installing Winamp 5.03
echo [WinampReg]>%systemroot%\winamp.ini
echo IsFirstInst=>>%systemroot%\winamp.ini
echo NeedReg=>>%systemroot%\winamp.ini
CD %systemdrive%\Install\Winamp\
Start %systemdrive%\Install\Winamp\winamp.js
sleep 30
taskkill /F /IM WINAMP.EXE
copy %systemdrive%\Install\Winamp\Winamp.ini "%systemdrive%\Program Files\Winamp\"
ECHO.
ECHO Registering for the Pro Version
REG ADD HKLM\SOFTWARE\Nullsoft\Winamp /v regname /d ab /f
REG ADD HKLM\SOFTWARE\Nullsoft\Winamp /v regkey /d xxxxx-xxxxxx-xxxxxx /f

ECHO.
ECHO Installing Norton Antivirus 2004
ECHO Please wait...
ECHO.
start /wait %systemdrive%\install\Apps\NAV2004\NAVSetup.exe /O REBOOT=ReallySuppress /QB
ECHO Killing the Configuration Wizard of NAV 2004 and its processes
taskkill.exe /F /IM cfgwiz.exe
taskkill.exe /F /IM ccApp.exe
taskkill.exe /F /IM symlcsvc.exe
taskkill.exe /F /IM ccSetMgr.exe
taskkill.exe /F /IM ccEvtMgr.exe
taskkill.exe /F /IM SAVScan.exe
taskkill.exe /F /IM navapsvc.exe
taskkill.exe /F /IM NPROTECT.EXE

ECHO.
ECHO Applying Registry Tweaks...
call REGEDIT /S %systemdrive%\install\RegTweaks.reg


sleep 8


echo Finished!
sleep 2

echo Rebooting...
sleep 3
%systemdrive%\windows\system32\shutdown.exe -r -f -t 90 -c "Windows XP will now restart in 90 seconds!"
exit

something 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 post
Share on other sites

hi

u need drivers for your video card to the resolution thing 2 work

computername may conflict try adding something like MYCOMPUTER_HOME

u need uxtheme.dll for themes 2 work

also.. 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 post
Share on other sites

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 post
Share on other sites

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 post
Share on other sites

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 post
Share on other sites
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

DONE!

THX

now 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 post
Share on other sites

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

Also 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 post
Share on other sites

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,32
empty=%SystemRoot%\SYSTEM32\shell32.dll,31



[Control Panel\Colors]
ActiveTitle=51 94 168
Background=0 0 64
Hilight=51 94 168
HilightText=255 255 255
TitleText=255 255 255
Window=255 255 255
WindowText=0 0 0
Scrollbar=212 208 200
InactiveTitle=111 161 217
Menu=255 255 255
WindowFrame=0 0 0
MenuText=0 0 0
ActiveBorder=212 208 200
InactiveBorder=212 208 200
AppWorkspace=128 128 128
ButtonFace=235 233 237
ButtonShadow=167 166 170
GrayText=167 166 170
ButtonText=0 0 0
InactiveTitleText=255 255 255
ButtonHilight=255 255 255
ButtonDkShadow=133 135 140
ButtonLight=220 223 228
InfoText=0 0 0
InfoWindow=255 255 225
GradientActiveTitle=112 177 235
GradientInactiveTitle=131 183 227
ButtonAlternateFace=181 181 181
HotTrackingColor=0 0 128
MenuHilight=51 94 168
MenuBar=235 233 237


[Control Panel\Cursors]
Arrow=
Help=
AppStarting=
Wait=
NWPen=
No=
SizeNS=
SizeWE=
Crosshair=
IBeam=
SizeNWSE=
SizeNESW=
SizeAll=
UpArrow=
DefaultValue=Windows-Standard
Link=

[Control Panel\Desktop]
Wallpaper=%systemroot%grass2.jpg
TileWallpaper=0
WallpaperStyle=2
Pattern=
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=DABJDKT
ThemeColorBPP=4


[VisualStyles]
Path=%WinDir%resources\Themes\Royale\Royale.msstyles
ColorStyle=NormalColor
Size=NormalSize

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

i cant find anything wrong :)

but maybe i miss something, its 2am where i live :rolleyes:

Link to post
Share on other sites

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 post
Share on other sites

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 post
Share on other sites
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. :D

thank you very much! :):

but ill go to bed now its almost 3am here :rolleyes:

Link to post
Share on other sites

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