Setting screen saver

Iam trying to install a screen saver. So i need to access the registry for changing the default screen saver to my installed screen saver. This iam doing by setting screensaveactive to 1, scrnsave.exe = my.scr, in the HKY_Currentuser\control panel\desktop.

This is working fine(my screen saver comes up), if before installing already a screen saver is set as default. But if no screen saver is selected, even though registry is updated, the properties\screen save window is still showing none and my screen saver is not coming.
Please help me in this.
USHASHIAsked:
Who is Participating?
I wear a lot of hats...

"The solutions and answers provided on Experts Exchange have been extremely helpful to me over the last few years. I wear a lot of hats - Developer, Database Administrator, Help Desk, etc., so I know a lot of things but not a lot about one thing. Experts Exchange gives me answers from people who do know a lot about one thing, in a easy to use platform." -Todd S.

DjamonCommented:
Can't you just do this in the display properties?
0
USHASHIAuthor Commented:
No! this is supposed to be an application which the unknown clients are going to downlaod through an installation wizard. This wizard will have to access the registry for doing the above. manually is very easy, i know. Thanks for ur comments.
0
jkrCommented:
Do you also set 'ScreenSaveTimeout' and 'ScreenSaverIsSecure'?
0
Cloud Class® Course: MCSA MCSE Windows Server 2012

This course teaches how to install and configure Windows Server 2012 R2.  It is the first step on your path to becoming a Microsoft Certified Solutions Expert (MCSE).

whannonCommented:
why don't you setup a policy that will run the installation of the screensaver off the server.
0
whannonCommented:
why don't you setup a policy that will run the installation of the screensaver off the server.
0
carmineCommented:
The problem you've encountered is that the shell (explorer) does not re-read the registry unless you send a Win32 API message (something like System Metrics Changed).

To do this you'll either have to find a 3rd party utility, or write your own to send the appropriate message after your intsall.

You should find that a logoff/on will bring your screen saver to life (restarting the shell).

Mark
0
TooKoolKrisCommented:
"No! this is supposed to be an application which the unknown clients are going to downlaod through an installation wizard."

There is a reason why you can't install programs that have to write to the registry. What need do you have to install something without the clients knowing about it?
0
ianBCommented:
Hi,

Experts Exchange maintains a professional site.  As such, we have a customer agreement to which you agreed before you registered. It states that we do not want any questions here that may be illegal or refer to "hacking".

Please take the time to re-read the Customer Agreement, located at:
http://www.experts-exchange.com/info/usrcntr.htm

If I find this question falls into this category I will suspend the account and take further action where appropriate.

Ian
Community Support @ Experts Exchage
0
USHASHIAuthor Commented:
Hi!

Iam not happy to read the comment that add my question to hacking category. For business reasons, i cannot reveal our business related policies, but i assure u that every thing will happen with  the awareness of the registered users of our application. If you find this as hacking, then what about installing products like IE, which prompts u to make it the default broswer. Im my case it is setting mine as default screen saver, which needs accessing the registry.

regds

0
TooKoolKrisCommented:
Ushashi,
     Nobody is actually saying that you are a hacker. I think the flag got thrown up because of the way in which you worded your comments specifically using the term "unknown clients". You have to keep in mind that some people seek our expertise and knowledge for other things besides fixing problems. As administrators and network professionals we have to be careful about the advice we give. We don't want to accidentally compromise the integrity of other people's networks.
0
mikeblasCommented:
USHASHI> Iam not happy to read the comment that add my
 USHASHI> question to hacking category.

I wouldn't be, either. I can't fathom why someone would make that implication.

In the meantime, I think you need to broadcast WM_SETTINGCHANGE after you change the registry entry.

..B ekiM
0

Experts Exchange Solution brought to you by

Your issues matter to us.

Facing a tech roadblock? Get the help and guidance you need from experienced professionals who care. Ask your question anytime, anywhere, with no hassle.

Start your 7-day free trial
It's more than this solution.Get answers and train to solve all your tech problems - anytime, anywhere.Try it for free Edge Out The Competitionfor your dream job with proven skills and certifications.Get started today Stand Outas the employee with proven skills.Start learning today for free Move Your Career Forwardwith certification training in the latest technologies.Start your trial today
Windows OS

From novice to tech pro — start learning today.