In WiX, what's the correct way to enable .NET 3.5?

后端 未结 3 1890
我寻月下人不归
我寻月下人不归 2021-01-26 18:51

I\'m creating an installer for a Windows desktop app, which has a dependency on another product that requires .NET 3.5

When installing this on Windows 10, .NET 3.5 is in

3条回答
  •  醉梦人生
    2021-01-26 19:44

    There is a way to install .NET 3.5 on Windows 10 and the latest Windows Server: to update a group policy value that will allow to download .NET 3.5 (blog post).

    ...open the command prompt and type "gpedit". The "Local Computer Policy Editor" opens where we can locate the necessary setting under the "Computer Configuration" > "Administrative Templates" > "System". On the left side, under "Settings", we can find a setting named "Specify settings for optional component installation and component repair" This is what we are going to modify. Let's open it and check "Enabled" and then check the second option – "Download repair content and optional features directly from Windows Update instead of Windows Server Update Services (WSUS)" and click "OK": Now, if we retry adding the .NET Framework 3.5, we can see that it succeeds...

    I personally then revert this policy setting to its original value, if it was different.

提交回复
热议问题