Siamo stati tutti facilmente in grado di fare ciò prima di Windows 8 (in XP/VISTA/WIN7) con poche modifiche nel Registro di sistema ed è stato fatto.Come impostare il browser predefinito in Windows 8 usando C#?
Con Windows 8 non è così facile (devo ancora capire come). Anche Windows 8 ha poche impostazioni di registro da modificare menzionate di seguito, ma con esso memorizza anche un Hash univoco per ogni computer. Qualsiasi corpo può aiutarmi a creare questo hash per ogni computer o con alcune API fornite da Microsoft per impostare il browser predefinito ("SetAppAsDefaultAll" non funziona). Di seguito sono riportate le voci del registro.
Computer \ HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Explorer \ FileExts.htm \ userChoice Prog ID: IE.AssocFile.HTM Hash: XXXXXXXXXXX
Computer \ HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Explorer \ FileExts.html \ userChoice Prog ID: IE.AssocFile.HTM Hash: XXXXXXXXXXX
Computer \ HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Explorer \ FileExts.xht \ userChoice Prog ID: IE.AssocFile. XHT Hash: XXXXXXXXXXX
Computer \ HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ CurrentVersion \ Explorer \ FileExts.xhtml \ userChoice Prog ID: IE.AssocFile.XHT Hash:
Computer \ HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ shell \ Associazioni \ UrlAssociations \ ftp \ userChoice Prog ID: IE.FTP Hash: XXXXXXXXXXX
Computer \ HKEY_CURRENT_USER \ Software \ Microsoft \ Windows \ shell \ Associazioni \ UrlAssociations \ http \ userChoice Prog ID: IE.HTTP Hash: XXXXXXXXXXX
Computer \ HKEY_CURRENT_USER \ Software \ Mi utilizzando MS \ WINDOWS \ Shell \ Associazioni \ UrlAssociations \ https \ userChoice Prog ID: IE.HTTPS Hash: XXXXXXXXXXX
Molte grazie in anticipo.
d'accordo, in win7 o precedenti, questo non è un grosso problema. Ansioso di sapere come pure. – David
Forse questo aiuta http://superuser.com/questions/498467/why-is-my-default-browser-setting-being-ignored – V4Vendetta