PDA

View Full Version : How disable IE scripting via registry entry.


wschrabi
Dec 2, 2011, 06:10 AM
Hi,
Does anyone know how I can disable Active Scripting in IE via a registry entry?
I found that key in the registry:
| HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer
I want to disable the scripting of IE-Browser component in a Delphi Prg by writing to the registry automatically.
Thanks for help
Walter

wschrabi
Dec 2, 2011, 08:56 AM
I found the key. I compared the 2 reg files one with activation and one without activation and found the diff.

Key: HKEY_USERS\S-1-5-21-746137067-1229272821-725345543-1004\Software\Microsoft\Windows\CurrentVersion\Int ernet Settings\Zones\3
Data: 1400 REG_DWORD

0.. Activate
1.. Ask for
3.. Deactivate

Curlyben
Dec 2, 2011, 09:32 AM
Changing that key will only work for that particular user rather than anyone that accesses the application.

wschrabi
Dec 2, 2011, 10:05 AM
How can I get the name of the S-Key in

HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\InternetRegistry\REGISTRY\USER\S-1-5-21-3951676609-453496951-1993816319-1000

If I could ask the registry for that S-Key under Key uSER see above, than I could parse the userdefined key mentioned in my originate question. THanks for help

wschrabi
Dec 2, 2011, 10:47 AM
I found the solution:
To get sub-key names see: http://stackoverflow.com/questions/3082148/how-to-get-the-sub-keys-name

wschrabi
Dec 2, 2011, 11:09 AM
I just realized that this key HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\InternetRegistry\REGISTRY\USER\S-XXXX is only valid in WIN 7. NOT in XP. What a pity. AnY Ideas from any experts?
I want to make my app for WIN 7 and WIN XP. Thanks