views:

13

answers:

0

I'm trying to write a Windows Scripting Component (WSC) which is referenced in a webpage and needs to read a single registry value.

I use the WScript.Shell object for RegRead.

On Vista (with UAC) my component is only loaded when I mark WScript.Shell as SafeForScripting (via HKCR\CLSID{72C24DD5-D70A-438B-8A42-98424B88AFB8}\ImplementedCategories{7DD95801-9882-11CF-9FA9-00AA006C42C4} and HKCR\CLSID{72C24DD5-D70A-438B-8A42-98424B88AFB8}\ImplementedCategories{7DD95802-9882-11CF-9FA9-00AA006C42C4}).

This is would allow any webpage to directly referebce WScript.Shell. Is there any alternative?