Archive: how to change Internet Explorer security setting in NSIS?


how to change Internet Explorer security setting in NSIS?
Is it possible to allow active content to run files on my computer (this is a security setting in Internet Explorer 6.0) using NSIS? I want to turn on this feature in my NSIS script. I am creating several HTML pages in my NSIS script and I have links to PDF files on my HTML pages, but on some computers (depending on IE settings) IE blocks access to PDF files. If I check "Allow active content to run files on my computer" check box in security settings of IE 6.0 I can open PDF files without any problems. Thank you, any ideas would be great.


Use the registry command "WriteRegDWORD" to do the job for you. I know that, in the key:

[HKEY_CURRENT_USER\Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_LOCALMACHINE_LOCKDOWN]
When "iexplore.exe" DWORD value is 1, it deactivates that option you mentioned. So:
WriteRegDWORD `HKCU` \
`Software\Microsoft\Internet Explorer\Main\FeatureControl\FEATURE_LOCALMACHINE_LOCKDOWN` \
`"iexplore.exe"` `0`
NOTE: It's activated at the moment it's changed. No need to restart Internet Explorer.

Thanks deguix. It works great.


Yikes, it's that simple? Hackers of the world, rejoice!