How to set default browser in windows 8 using C#?

前端 未结 3 793
礼貌的吻别
礼貌的吻别 2021-01-02 19:27

We all have been easily able to do this prior to Windows 8 (in XP/VISTA/WIN7) with few changes in Registry and it was done.

With Windows 8 it\'s not that easy (I\'m

3条回答
  •  谎友^
    谎友^ (楼主)
    2021-01-02 19:53

    For all those waiting for answer to this question.

    Here you go, looks like that one of the way to do it is through DISM.exe provided by Win 8. Your user should be admin of the machine though.

    Using C# code you should be able to run this DISM.exe with specific parameters.

    Following blog has the details.

    http://blogs.technet.com/b/mrmlcgn/archive/2013/02/26/windows-8-associate-a-file-type-or-protocol-with-a-specific-app-using-a-gpo-e-g-default-mail-client-for-mailto-protocol.aspx

    Thanks.

提交回复
热议问题