I'm having a developer create a BHO (.dll) for me. He's doing it in VC++ 6.0. The BHO needs to be able to do a silent, auto-update when we release an updated version. Developer came back with:
Any ideas on how to get this to work (other than buying a cert.)? I heard something about using wininet.dll calls, but it went over my head.there is a serious problem if you want to silently update the dll , however reboot or not.
on vista, win7, it need admin permission. so your dll must be signed by certificate
on vista, win7, IE7, 8 both have strong security mechanism..
after downloading the new version of dll
then I called MoveFileEx (windows API function) to move the new dll to destination - original path installed., and I specified that this action will be happened at next time reboot, MoveFileEx will write a registry value to tell windows OS for this action, the registry value will be written under HKEY_LOCAL_MACHINE root, it need to get Admin or System permission