Jump to content

Dreamscene on first load of Desktop


Recommended Posts

Windows6.0-KB929327-x86.msu has to be injected into the install.wim

I call a .cmd file and set my DREAMSCENE this way. Its first thing in this .cmd so when Vista loads desktop the DREAMSCENE is playing.

Using FirstLogonCommands in my xml

 <settings pass="oobeSystem">
<FirstLogonCommands>
<SynchronousCommand wcm:action="add">
<CommandLine>%systemdrive%\Install\FirstLogon.cmd</CommandLine>
<Order>1</Order>
<Description>FirstLogon</Description>
</SynchronousCommand>
</FirstLogonCommands>

First Part of FirstLogon.cmd in sources\$oem$\$1\Install

REM	SETTING DREAMSCENE
REG ADD "HKCU\Control Panel\Desktop" /v TileWallpaper /t REG_SZ /d 1 /f
REG ADD "HKCU\Control Panel\Desktop" /v WallpaperStyle /t REG_SZ /d 0 /f
REG ADD "HKCU\Control Panel\Desktop" /v WallPaper /t REG_SZ /d "%userprofile%\AppData\Roaming\Microsoft\Windows DreamScene\DreamScene.jpg" /f
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\MotionDesktop" /v FilePath /t REG_SZ /d "%systemroot%\Web\Windows DreamScene\Bliss_Sunset.WMV" /f

EDIT:

To Stop a black background from appearing at first add this to your cmd file:

CMD /C Move "%SystemRoot%\Web\Windows DreamScene\DreamScene.jpg" "%APPDATA%\Microsoft\Windows DreamScene" /Y
CMD /C Move "%SystemRoot%\Web\Windows DreamScene\Img001.jpg" "%APPDATA%\Microsoft\Windows DreamScene" /Y
CMD /C Attrib +H "%APPDATA%\Microsoft\Windows DreamScene\Img001.jpg"

Don't know why that 1 file is set to Hidden, it just is.

You must mount and copy your DreamScene files including the 2 .jpgs to the DVD\Windows\Web\Windows DreamScene Folder. Folder has to be created in the Install.wim. The 2 images are simply a still shot at correct resolution.

Thats it, perfect startup on first load of desktop

EDIT 11 April 2008: as added by amit_talkin

With Vista SP1 you need to add this key and then it works on load of desktop.

Just add into your Firstlogoncommands above all 1 line

REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\DreamScene" /v FilePath /t REG_SZ /d "%systemroot%\Web\Windows DreamScene\Bliss_Sunset.WMV" /f

thats Blissfull Sunset playing there

DreamsceneOnLoad.png

Edited by maxXPsoft
Link to comment
Share on other sites


it works but i have to figure out how to do something first so its better and safer

If you have a value in the registry say its 15.

its a DWORD

How would I increment that in dos cmdline and the registry to be 16?

I can do a query and I get <NO NAME> REG_DWORD 0x15

I think I can use a For and get last 2 characters into a variable but i'm not good with For

No clue amit. I've not been playing with 64

Edited by maxXPsoft
Link to comment
Share on other sites

Ok the black background I've figured out is because when you start a dreamscene within vista it creates a image.jpg of 1 scene from that file and stores it. When you reboot with dreamscene on and come back to desktop you will see this image for a few seconds, motionless like a wallpaper. I think its giving time for the dreamscene to kick in

If you needed to you can create a still shot and store it in this reg key location and it will start like any other. I tried it with another image till i figured out you can pause the dreamscene and get your shot.

Link to comment
Share on other sites

  • 4 weeks later...

Hi max,

i just tested your method today, unfortunately it didnt work for me. i mean i m doing something wrong?

here is my DreamScene command file which i m using @ 1st logon commands.

REM	SETTING DREAMSCENE
REG ADD "HKCU\Control Panel\Desktop" /v TileWallpaper /t REG_SZ /d 1 /f
REG ADD "HKCU\Control Panel\Desktop" /v WallpaperStyle /t REG_SZ /d 0 /f
REG ADD "HKCU\Control Panel\Desktop" /v WallPaper /t REG_SZ /d %userprofile%\AppData\Roaming\Microsoft\Windows DreamScene\DreamScene.jpg /f
REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\MotionDesktop" /v FilePath /t REG_SZ /d "%systemroot%\Web\Windows DreamScene\vid1337.mpg" /f

i dont care this time about that black background u have told. caz this time i m only testing it 1st. and can u plz explain what is "DreamScene.jpg" ? is it screenshot of dreamscene video? i have tried to capture ss of it. but Screenshots only showing blackscreen after saving it as jpg file!

P.S. i have integrated all updates required for dreamscenes to be enabled.

Regards

AMIT

Edited by amit_talkin
Link to comment
Share on other sites

you need quotes around them paths will be long name

REG ADD "HKCU\Control Panel\Desktop" /v WallPaper /t REG_SZ /d "%userprofile%\AppData\Roaming\Microsoft\Windows DreamScene\DreamScene.jpg" /f

REG ADD "HKCU\Software\Microsoft\Windows\CurrentVersion\MotionDesktop" /v FilePath /t REG_SZ /d "%systemroot%\Web\Windows DreamScene\rockystream.mpg" /f

notice that Windows DreamScene has a space in it

Edited my first post.

explain what is "DreamScene.jpg" ? is it screenshot of dreamscene video? i have tried to capture ss of it. but Screenshots only showing blackscreen after saving it as jpg file!

The DreamScene.jpg and the Img001.jpg are just still shots of the dream.

You can pause it to grab screenshot.

EDIT: Just right click the Desktop and a Pause Dream Scene will be in that Context menu

I just got through doing complete Install and Dream was playing and seen it.

Edited by maxXPsoft
Link to comment
Share on other sites

  • 8 months later...

Hi,

just want to inform u tht in vista sp1, reg entry to enable dreamscene at 1st logon is changed.

as far i have tested it i can say new keys are as below.

Windows Registry Editor Version 5.00

[HKEY_USERS\S-1-5-21-111066163-3857612836-1258876716-500\Software\Microsoft\Windows\CurrentVersion\DreamScene]

"FilePath"="G:\\Windows\\Web\\Windows DreamScene\\BlissfulSunset.mpg"

i have tried this new entry and dreamscene worked fine for me :)

now the main question is that how to add this entry in registry?

because SID changes often, if u will run this reg. in ur pc thn dreamscene wont be enabled as ur SID is diff. right?

so is there any variable to set reg. key ?

i mean

HKU\%SID%\Software\Microsoft\Windows\CurrentVersion\DreamScene\"

something like that!

AMIT

Link to comment
Share on other sites

HKU\%SID% is only a temporary location for some keys. That key is mirrored in

HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\DreamScene

What I'm saying is you should be able to add it there and should work.

I don't have SP1 integrated at this time cause I was waiting on a final.

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