IE Protected Mode Problem?

谁说我不能喝 提交于 2019-12-22 12:39:28

问题


We've developed an ie-add (with add-in express) in which saves some information on locally. (to the application path) But without "run as administrator" or "disabling protected mode" it's not allowed.

Is there any way to accomplish this? Any way to load add-in with administrator privilige? (manifest files does not work for dll's) or any way to disable protected mode with user approval?

Thank you!


回答1:


I don't think there's a way to disable Protected Mode programmatically. I assume we have to live with it. Find some pointers of how to do this in: HowTo: Deal with Protected Mode API in Internet Explorer 7 and IE8.




回答2:


Understanding and Working in Protected Mode IE: Finding Low Integrity Write Locations.

Long and short of it: call IEGetWriteableFolderPath().




回答3:


Here is the solution:

Fire up RegEdit and go to this key:

HKEY_USERS\S-1-5-18\Software\Microsoft\Windows\CurrentVersion\Internet Settings\Zones

On my machine (Windows 7) the Local System account is S-1-5-18. This might be the same for all versions of Windows, but I don't know about that.

In that registry key, there are five more keys 1, 2, 3, 4 and 5 - each representing a Zone.

For every zone, if there is a DWORD value with the name "2500", set its value to 0 to turn protected mode off. Note that you don't have to add it if it isn't there.

The value "2500" is supposed to control the tick box "Enable protected mode".

Or, if you want to just alter Protected Mode settings for Current User then go to the HKEY_CURRENT_USER version of the above registry key, and I think there may also be one for HKEY_LOCAL_MACHINE (feel free to check) and use whichever one you prefer.



来源:https://stackoverflow.com/questions/3966950/ie-protected-mode-problem

易学教程内所有资源均来自网络或用户发布的内容,如有违反法律规定的内容欢迎反馈
该文章没有解决你所遇到的问题?点击提问,说说你的问题,让更多的人一起探讨吧!