Jump to content

Recommended Posts

Posted

I'm having a problem setting Wallpaper and Background Color through an unattended setup. What I want to do is have the company logo displayed in the middle of the screen, with a specific background color around it, for BOTH the desktop AND logon screen....4 separate registry entries, I believe.

When I import the following keys after setup (already logged into windows), I get the desired results, but the HKCU entries are, of course, only applied to that logged in user. I have read that installing an HKCU entry during the cmdlines.txt portion of setup will import the key to the default profile, but that does not seem to be working.

What is happening when I run the code in cmdlines.txt is:

1. I get the logon screen background color, but not the wallpaper

2. I get the desktop wallpaper, but not the background color.

;VERIFIED - Set the Logon Screen Background Color
[HKLM\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon]
"Background"="R128 G171 B213"

;did not work during install - Set the Logon Screen Wallpaper
[HKEY_USERS\.DEFAULT\Control Panel\Desktop]
"Wallpaper"="C:\\Windows\\Web\\Wallpaper\\Wallpaper.bmp"

;did not work during install - Set Desktop Background Color
[HKCU\Control Panel\Colors]
"Background"="R128 G171 B213"

;VERIFIED - Set the Wallpaper
[HKCU\Control Panel\Desktop]
"Wallpaper"="C:\\WINDOWS\\web\\wallpaper\\Wallpaper.bmp"

Any ideas from anyone? I don't want to use themes, b/c I can't trust Active Desktop's stability in a production environment, and I don't want to simply have the wallpaper stretch across the entire screen, b/c it looks like crap. I would really like to figure out how to accomplish this through the registry. If I had to, I could re-apply the Logon screen wallpaper and background color after setup, b/c neither involves an HKCU key, so the most critical thing to figure out is how to set the background color for the Default user...


Posted

here is part of my reg-script, it works fine on my company computers.I don't know why you were failure but anyhow just another reference to u. maybe it caused by themes ... ... the script works fine for all logon users.

[HKEY_USERS\.DEFAULT\Control Panel\Desktop]

"Wallpaper"="c:\winnt\anbkg.bmp"

"tilewallpaper"="1"

"scrnsave.exe"="c:\winnt\anbkg.scr"

"screensavetimeout"="150"

"screensaveractive"="1"

[HKEY_USERS\.DEFAULT\Control Panel\Colors]

"background"="0 0 0"

Posted

.Default isn't the default user - it's settings for when no user is logged on.

If you want to make changes to the default user, you'll need to load that hive and then import changes.

I do it like this, using Kix, because I'm lazy like that:

If $CDDRIVE=""
$CDDRIVE="D:"
EndIf


LoadHive ("HKEY_USERS\TempDefault","C:\Documents and Settings\Default User\ntuser.dat")

Shell "regedit /s $CDDRIVE\install\Defaults.reg"

UnloadHive ("HKEY_USERS\TempDefault")

I call this with kix32.exe loadhive.kix $CDROM=%cdrom%

Then, make any HKCU changes to HKU\TempDefault.

Similar techniques are useful for a LOT of silent app installs to get per-user settings out of HKLM

Please sign in to comment

You will be able to leave a comment after signing in



Sign In Now
  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...