Friday, April 20, 2007

XPe tip #31: Wallpaper change

Want to change the wallpaper of your Desktop? Just follow this procedure:

The registry entry you want to preset in TD is:
[HKEY_CURRENT_USER\Control Panel\Desktop],"Wallpaper"=Reg_sz:"path to image"

To affect all users:
[HKEY_USERS\.DEFAULT\Control Panel\Desktop],"Wallpaper"=Reg_sz:"path to image"
Note: This entry will also be used as wallpaper in Winlogon time.

That registry value can be overwritten in the registry section of "Win32 API - User" component.

2 comments:

Anonymous said...

I needed to make a component that change the wallpaper but instead of changing the registry of the "Windows API - User" component.

Got my nerves on it until I managed to figure out that the "Build Order" of the registry keys is actually insignificant. I was trying to overwrite the registry keys created by the "Windows API - User" component which have Build Order of 1000 with my registry keys which had Build Order of 2000.
It turned out that my component was always build before the Windows API and my keys got overwritten every time.

To solve the problem I added to my component build order dependency of the “Windows API – User” component and it finally worked.

Anonymous said...

I enjoyed your post,. I have been wondering about this topic,so thanks for posting. I’ll likely be coming back to your blog.
Video AC Milan|Video Sepak Bola|How To Make a Kite|How to make a origami|Tips for lossing weight|How to six pack abs