Jump to content

Theme & Display resolution


Recommended Posts

Hello,

Is there a hidden trick to get the theme & display settings to stick after you complete OOBE? I can not get my theme or display settings to appear after I sysprep my machine and walk through OOBE!

Here is a quick run down on how I create my image.

I install using a Vista OEM DVD with my autounattend.xml file located on a USB FOB.

I use a data.wim file placed on the same USB FOB.

After setup completes, I am placed at the Vista desktop logged on as the Administrator.

The files from the data.wim file appear on the local hard drive c:\Windows\System32\Resources\Themes\system.theme

c:\OEM\Applications.....etc

My theme file is applied and my display resolution is set to 1024x600, 32, 60 etc...

I install some applications.

I run sysprep /oobe /generalize /shutdown.

When I walk through OOBE, the resolution is changed to 1024 x 768....... and the theme is no longer active. I can manually

change the theme back however, sysprep is resetting it to classic for some reason and changing my resolution?

I have been trying to solve this all week trying different settings, reading forums, etc.....

The only thing I see that is related is the CopyProfile key added to the Specialize Pass under MS Windows Shell Setup.

After adding the CopyProfile key, and running through my testing......no luck.

What the heck am I missing? Everything else seems to work fine except this.

Any help or suggestions are appreciated. I can paste in my autounattend.xml file if needed.

Thanks, Shawn

Edited by shawn1024
Link to comment
Share on other sites


I too was struggling with this issue until I got COPYPROFILE to work.

Get everything setup the way you want it, add Printers, RUN, sidegadets, ect....

Search for img24.jpg (I think thats it), and rename it to img37.jpg. Name the wallpaper you want to be your default to img24.jpg. There should be 2 copies of this img24.jpg file on your system, so replace both this same way.

See Display in the Microsoft-Windows-Shell-Setup component for the resolution issues

<Display>
<HorizontalResolution>640</HorizontalResolution>
<VerticalResolution>480</VerticalResolution>
<ColorDepth>16</ColorDepth>
<RefreshRate>60</RefreshRate>
</Display>

Now perform your sysprep /generalize /oobe ect...

The COPYPROFILE should copy all the settings minus the wallpaper. Once you apply the image and get prompted for a PC name, you should see your wallpaper as the first selection in the line of wallpapers to use. Select it and go on.

Now if you logon, everything should be good to go. This is the only way i have been able to get it to work. When you are in the post image apply stage, and give the PC a name, you are prompted to select a wallpaper as well. This selected negates you themed wallpaper to whatever you selected. If you find a better way of doing this, please share!!!

FYI: I am getting all this information from the BDD2007 documentation, if you haven't downloaded it already, you should. There is a lot of knowledge there.

Good luck :thumbup

Link to comment
Share on other sites

Thanks for the insight Josh, appreciate it. I will review the BDD2007 stuff once I find it. Not sure what it is at this point; I have been using the OPK tools & chms that we received from MS. I tested for a few days using the CopyProfile key in my XML file, but was not able to nail this down. In XP, I simply point to my theme file during unattended set up, install my applications in audit mode, re-seal and the the theme is still active after I complete OOBE, to include the correct display resolution. I am thinking it's some goofy little setting somewhere in the autounattend.xml that I have yet to figure out. OR, I am applying the theme / display setting at the wrong time in the pass.

I am adding my autounattend.xml file if anyone is interested in checking it out and providing comments. This XML file does not contain the CopyProfile tag since I was not able to get that working correctly. When I use this XML file, my PNP drivers install fine, my OEM folders, scripts, etc are placed on the c:\ drive, and I boot into audit mode with my theme & display setting applied perfectly.

<?xml version="1.0" encoding="utf-8"?>
<unattend xmlns="urn:schemas-microsoft-com:unattend">
<settings pass="windowsPE">
<component name="Microsoft-Windows-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DiskConfiguration>
<Disk wcm:action="add">
<CreatePartitions>
<CreatePartition wcm:action="add">
<Order>1</Order>
<Type>Primary</Type>
<Size>25000</Size>
<Extend>false</Extend>
</CreatePartition>
</CreatePartitions>
<ModifyPartitions>
<ModifyPartition wcm:action="add">
<Active>true</Active>
<Extend>true</Extend>
<Format>NTFS</Format>
<Label>OS_Install</Label>
<Letter>C</Letter>
<Order>1</Order>
<PartitionID>1</PartitionID>
</ModifyPartition>
</ModifyPartitions>
<WillWipeDisk>true</WillWipeDisk>
<DiskID>0</DiskID>
</Disk>
<WillShowUI>OnError</WillShowUI>
</DiskConfiguration>
<ImageInstall>
<OSImage>
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>1</PartitionID>
</InstallTo>
<WillShowUI>OnError</WillShowUI>
</OSImage>
<DataImage wcm:action="add">
<InstallTo>
<DiskID>0</DiskID>
<PartitionID>1</PartitionID>
</InstallTo>
<InstallFrom>
<Path>%ConfigSetRoot%\Data.wim</Path>
</InstallFrom>
<Order>1</Order>
</DataImage>
</ImageInstall>
<UserData>
<ProductKey>
<WillShowUI>OnError</WillShowUI>
<Key>XXXXX-XXXXX-XXXXX-XXXXX-XXXX</Key>
</ProductKey>
<AcceptEula>true</AcceptEula>
</UserData>
<EnableNetwork>true</EnableNetwork>
<EnableFirewall>false</EnableFirewall>
<LogPath>c:\</LogPath>
<UseConfigurationSet>true</UseConfigurationSet>
<Restart>Restart</Restart>
<Display>
<ColorDepth>32</ColorDepth>
<HorizontalResolution>1024</HorizontalResolution>
<RefreshRate>60</RefreshRate>
<VerticalResolution>600</VerticalResolution>
</Display>
</component>
<component name="Microsoft-Windows-International-Core-WinPE" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SetupUILanguage>
<UILanguage>EN-US</UILanguage>
</SetupUILanguage>
<InputLocale>EN-US</InputLocale>
<SystemLocale>EN-US</SystemLocale>
<UILanguage>EN-US</UILanguage>
<UserLocale>EN-US</UserLocale>
</component>
<component name="Microsoft-Windows-PnpCustomizationsWinPE" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DriverPaths>
<PathAndCredentials wcm:keyValue="e6952347" wcm:action="add">
<Path>%ConfigSetRoot%\AutoUnattend_Files\VistaDistributionShare\Out-of-Box Drivers\Atheros</Path>
</PathAndCredentials>
<PathAndCredentials wcm:keyValue="b5c1cb9d" wcm:action="add">
<Path>%ConfigSetRoot%\AutoUnattend_Files\VistaDistributionShare\Out-of-Box Drivers\Intel</Path>
</PathAndCredentials>
<PathAndCredentials wcm:keyValue="e871ab0a" wcm:action="add">
<Path>%ConfigSetRoot%\AutoUnattend_Files\VistaDistributionShare\Out-of-Box Drivers\ViMicro</Path>
</PathAndCredentials>
</DriverPaths>
</component>
</settings>
<settings pass="oobeSystem">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<AutoLogon>
<Password>
<Value>UABhAHMAcwB3AG8AcgBkADEAMgAzAFAAYQBzAHMAdwBvAHIAZAA=</Value>
<PlainText>false</PlainText>
</Password>
<Enabled>true</Enabled>
<LogonCount>5</LogonCount>
<Username>Administrator</Username>
<Domain></Domain>
</AutoLogon>
<Display>
<RefreshRate>60</RefreshRate>
<VerticalResolution>600</VerticalResolution>
<HorizontalResolution>1024</HorizontalResolution>
<ColorDepth>32</ColorDepth>
<DPI>96</DPI>
</Display>
<StartPanelOff>false</StartPanelOff>
<ShowWindowsLive>false</ShowWindowsLive>
<DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
<DoNotCleanTaskBar>false</DoNotCleanTaskBar>
<OOBE>
<SkipMachineOOBE>true</SkipMachineOOBE>
<SkipUserOOBE>true</SkipUserOOBE>
<ProtectYourPC>3</ProtectYourPC>
<HideEULAPage>true</HideEULAPage>
</OOBE>
<BluetoothTaskbarIconEnabled>false</BluetoothTaskbarIconEnabled>
<OEMInformation>
<Manufacturer>oUR COMPANY</Manufacturer>
<Model>1</Model>
<SupportHours>8:00 am - 5:00 pm PST</SupportHours>
<SupportPhone>800-555-1212</SupportPhone>
<SupportURL>https://OURCOMPANY.custhelp.com/</SupportURL>
<HelpCustomized>false</HelpCustomized>
<Logo>c:\OEM\Graphics\OEMlogoVista.bmp</Logo>
</OEMInformation>
<TimeZone>Pacific Standard Time</TimeZone>
<Themes>
<DefaultThemesOff>false</DefaultThemesOff>
<CustomDefaultThemeFile>c:\Windows\Resources\Themes\MY.theme</CustomDefaultThemeFile>
</Themes>
</component>
<component name="Microsoft-Windows-Sidebar" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<SidebarVisible>false</SidebarVisible>
<SidebarOnByDefault>false</SidebarOnByDefault>
</component>
</settings>
<settings pass="specialize">
<component name="Microsoft-Windows-IE-InternetExplorer" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<FavoritesList>
<FavoriteItem wcm:action="add">
<FavID>Favorite1</FavID>
<FavTitle>OURCOMPANY.com</FavTitle>
<FavURL>http://www.OURCOMPANY.com</FavURL>
<FavIconFile>c:\OEM\Graphics\OURCOMPANY.ico</FavIconFile>
</FavoriteItem>
<FavoriteItem wcm:action="add">
<FavID>Favorite2</FavID>
<FavTitle>OURCOMPANY Customer Service</FavTitle>
<FavURL>https://OURCOMPANY.custhelp.com/</FavURL>
<FavIconFile>c:\OEM\Graphics\OURCOMPANY.ico</FavIconFile>
</FavoriteItem>
</FavoritesList>
<IEWelcomeMsg>false</IEWelcomeMsg>
<Home_Page>http://www.OURCOMPANY.com/</Home_Page>
<Help_Page>https://OURCOMPANY.custhelp.com/</Help_Page>
<ShowInformationBar>false</ShowInformationBar>
<PlaySound>false</PlaySound>
<BlockPopups>no</BlockPopups>
<Window_Title_CN>OURCOMPANY</Window_Title_CN>
</component>
</settings>
<settings pass="auditSystem">
<component name="Microsoft-Windows-Shell-Setup" processorArchitecture="x86" publicKeyToken="31bf3856ad364e35" language="neutral" versionScope="nonSxS" xmlns:wcm="http://schemas.microsoft.com/WMIConfig/2002/State" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
<DisableAutoDaylightTimeSet>false</DisableAutoDaylightTimeSet>
<DoNotCleanTaskBar>false</DoNotCleanTaskBar>
<ShowWindowsLive>false</ShowWindowsLive>
<StartPanelOff>false</StartPanelOff>
<TimeZone>Pacific Standard Time</TimeZone>
</component>
</settings>
<cpi:offlineImage cpi:source="wim:c:/install_wim/install.wim#Windows Vista ULTIMATE" xmlns:cpi="urn:schemas-microsoft-com:cpi" />
</unattend>

Edited by shawn1024
Link to comment
Share on other sites

  • 1 month later...

Quick update - When using SIM to create autounattend.xml files, the theme settings are broken. This applies to oobeSystem Pass > Microsoft Windows Shell Setup > Themes. The instructions outlined in the OPK tools appear to be correct, but a bug prevents it from working correctly.

Link to comment
Share on other sites

I've not tested the theme thing so far, but if I've problems to set the screen resolution I leave the Refreshrate field blank when editing my xml-file in WSIM.

I've found out about this solution by checking the log-files. Setup failed to set the Refreshrate what ever I've tried to set it to and than the whole Display settings failed.

Regards,

Martin

Link to comment
Share on other sites

I've not tested the theme thing so far, but if I've problems to set the screen resolution I leave the Refreshrate field blank when editing my xml-file in WSIM.

I've found out about this solution by checking the log-files. Setup failed to set the Refreshrate what ever I've tried to set it to and than the whole Display settings failed.

Regards,

Martin

Having the same issue here thanks for the tip will give this a go next install.

Link to comment
Share on other sites

I had the refresh rate thing also with XP full time I was doing it UA. I recently updated the PC here and a new PCI-E card and no longer have that with XP or Vista UAs.

TIP! Don't leave it blank, don't include a blank setting in xml at all.

TIP! Don't include default values in xml.

TIP! VistaUA is designed to not do either of those but things happen so let me know if it does.

Link to comment
Share on other sites

I don't leave any Display settings blank (or incorrect) in my XML file. I enter only modes that my system supports.

<Display>

<ColorDepth>32</ColorDepth>

<DPI>96</DPI>

<HorizontalResolution>1024</HorizontalResolution>

<VerticalResolution>600</VerticalResolution>

<RefreshRate>60</RefreshRate>

</Display>

I am working with one of our reps to solve this issue and he has indicated that there is a difference in the way the resolution/refresh capabilities are calculated based on the frequency range from XP to Vista. It is interesting to hear that I am not the only one experiencing this issue.

Out of curiousity, what montor and video card are you seeing this behavior with?

Link to comment
Share on other sites

Here is my updated install method. The one listed in the begining of this thread is no longer valid as I have switched to a network base install.

1. Boot into WinPE2

2. Map network drive y: to share.

3. Run y:\source\setup.exe /unattend:y:\configsets\autounattend.xml

4. Vista install completes, unit reboots into Audit mode.

5. Run sysprep.exe /generalize /audit /shutdown /unattend:d:\autounattend.xml (d:\ is a USB flash drive)

6. Save generalized image to network share.

7. Boot generalized image into Audit mode & make final customizations to image.

8. Run sysprep.exe /oobe /shutdown /unattend:d:\oobeunattend.xml

9. Boot unit and enter Windows Welcome.

Link to comment
Share on other sites

Well it seems to be, that I have not explained it well enough.

I have never said you should leave something blank in xml. I've said:

I leave the Refreshrate field blank when editing my xml-file in WSIM

That means you don't set anything for it in WSIM and than you will have no entry in xml-file and it looks like this:

<Display>
<ColorDepth>32</ColorDepth>
<DPI>96</DPI>
<HorizontalResolution>1024</HorizontalResolution>
<VerticalResolution>768</VerticalResolution>
</Display>

I've never said you should do it like this:

<Display>
<ColorDepth>32</ColorDepth>
<DPI>96</DPI>
<HorizontalResolution>1024</HorizontalResolution>
<VerticalResolution>768</VerticalResolution>
<RefreshRate></RefreshRate>
</Display>

In that last case maxX is right and it would cause trouble.

...he has indicated that there is a difference in the way the resolution/refresh capabilities are calculated based on the frequency range from XP to Vista...

That could be. However I've tried out to set all kinds of supported modes for my video card and it never setted it, till I've removed the Refreshrate setting.

BTW, if you do a sysprep you have to set Display settings again in xml-file you're using to roll out the system. So in shawns example you would set display again in oobeunattend.xml. If you want to keep Display settings during all passes of setup you need to set them for every single pass, too.

Regards,

Martin

Edited by FireGeier
Link to comment
Share on other sites

both cards were ATI, 1 was an onboard 200 and other was 9000+ something can't recall. same old monitor a Samsung 19" 955DF

Try with just the Horizontal and the Vertical and it should pick up the rest as it sees best

Link to comment
Share on other sites

...

Retrieved the file & didn't notice anything about display?

Is there a particular sect to look for?

Hello MC!

Well my setupact.log shows this for Display Setting:

2007-03-06 21:39:13, Info						 [Shell Unattend] ComputerName set to Compu 
2007-03-06 21:39:13, Info [Shell Unattend] Display: Requested Display Settings [1024 x 768, 32 bpp, 0 hz]
2007-03-06 21:39:13, Info [Shell Unattend] Display: Found video mode match! Trying to change to it...
2007-03-06 21:39:16, Info [Shell Unattend] Display: Succesfully changed to requested display mode
2007-03-06 21:39:16, Info [Shell Unattend] Display: Requested 96 DPI
2007-03-06 21:39:16, Info [Shell Unattend] Display: DPI set to 96

Note:

I have not set 0hz as Refreshrate in xml. Like explained before I have no entry for refreshrate in xml. Setup reads this as 0 hz.

If you don't have entries like this in that log you may not set them in your autounattend.xml or anything else is going wrong. Do you use more than one xml?

Regards,

Martin

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