自动在Windows 8和Windows 10上安装.Net Framework 3.5 [英] Install .Net Framework 3.5 on windows 8 and windows 10 automatically

查看:109
本文介绍了自动在Windows 8和Windows 10上安装.Net Framework 3.5的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,


我不确定这是否是提出这个问题的正确位置,但我有一个看似简单的问题,我无法解决这个问题找到答案。


我开发了一个程序,需要运行.NET framework 3.5。我想在安装我的软件时自动在用户的机器上部署.NET framework 3.5。这似乎是一个非常简单的问题。我只是想安装依赖项
< g class =" gr_ gr_54 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar multiReplace"数据-GR-ID =" 54" ID = QUOT; 54">之前< / g取代;安装我的软件。现在,问题是我似乎无法找到任何方法在Windows 8和10上自动安装dotNet
framework 3.5,特别是如果组策略"指定可选组件安装和组件修复的设置"。在很多机器上都被禁用了。


以下是我到目前为止所尝试的内容。


1。通过以下链接提供的dotNet framework 3.5 setup exe进行安装。此设置在Windows 8或10上无效。


https://www.microsoft.com/en-in/download/details.aspx?id=25150


2。我已经阅读了整篇文章"Microsoft .NET Framework 3.5部署注意事项"。可通过以下链接获取:


https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/microsoft-net-framework-35-deployment-considerations


如果组策略"指定可选组件安装和组件修复的设置",则上述文章中指定的选项均不起作用。已禁用。


开发人员是否真的无法在Windows 8或Windows 10上分发dotNet framework 3.5而无需更改组策略或需要整个Windows操作系统的安装介质? / p>

我希望有人可以朝着正确的方向推动我。对不起,如果这不是提出这个问题的正确位置。如果我应该尝试任何其他论坛,请告诉我。




$

解决方案

嗨imankurpatel000,


欢迎来到MSDN论坛。


"  我想要在用户安装我的软件时自动在
上部署.NET framework 3.5。 
"。


如果您使用VS作为项目的开发平台,则可以在项目的先决条件选项中设置此要求。
发布ClickOnce应用程序时,您可以选择一组要与应用程序一起打包的必备组件。在安装时,将对每个先决条件执行检查以确定它是否已存在;如果不是
,它将在安装ClickOnce应用程序之前安装。





简而言之,您应该创建一个自定义的.Net 3.5软件包并将其添加到先决条件文件夹中: C:\Program Files(x86)\ MicroSoft SDKs \ ClickOnce Bootstrapper \Packages。
之后,.Net 3.5包将出现在VS的先决条件选项中。因为我在下面显示了选项窗口。关于设置先决条件并创建引导程序包,请查看:

https://docs.microsoft.com/en-us/visualstudio/deployment/how-to-install-prerequisites-with-a-clickonce-application?view=vs-2017

https:/ /docs.microsoft.com/en-us/visualstudio/deployment/creating-bootstrapper-packages?view=vs-2017


值得一提,.Net 3.5作为组件Windows 8.1和10的版本已默认预安装,我们强烈建议用户启用.N et
3.5通过Windows控制面板,详细步骤:

https://docs.microsoft.com/en -us / dotnet / framework / install / dotnet-35-windows-10


由于我们的论坛主要关注.NET Framework设置和服务问题,如果您对如何部署项目和其他更困惑,我建议
您可以重定向clickonce论坛以启动新线程提问。


希望我的回答可以帮到你,如果有的话,请将其标记为答案。


感谢您的理解。



真诚



Hello Everyone,

I am not sure if this is the right place to ask this question but I have a seemingly simple problem for which I haven't been able to find an answer.

I have developed a program which required .NET framework 3.5 to run. I want to deploy the .NET framework 3.5 on the user's machine automatically when they install my software. This seems like a very simple problem. I am just trying to install the dependency <g class="gr_ gr_54 gr-alert gr_gramm gr_inline_cards gr_run_anim Grammar multiReplace" data-gr-id="54" id="54">before</g> installing my software. Now, the problem is I can't seem to figure out any way to install dotNet framework 3.5 on windows 8 and 10 automatically, especially if the Group policy "Specify settings for optional component installation and component repair" is disabled which is disabled on a lot of machines.

The following is what I have tried so far.

1. Installing through the dotNet framework 3.5 setup exe available at the following link. This setup does not work on windows 8 or 10.

https://www.microsoft.com/en-in/download/details.aspx?id=25150

2. I have gone through the whole article "Microsoft .NET Framework 3.5 Deployment Considerations" available at the following link:

https://docs.microsoft.com/en-us/windows-hardware/manufacture/desktop/microsoft-net-framework-35-deployment-considerations

None of the option specified in the above article work if the Group policy "Specify settings for optional component installation and component repair" is disabled.

Is there really no way for a developer to distribute dotNet framework 3.5 on windows 8 or windows 10 without changing the group policy or requiring the installation media of the whole windows OS?

I hope someone can nudge me in the right direction. Sorry, if this is not the right place to ask this question. Please let me know if I should try any other forums for this.

解决方案

Hi imankurpatel000,

Welcome to the MSDN forum.

" I want to deploy the .NET framework 3.5 on the user's machine automatically when they install my software. ".

If you use VS as your development platform for your project, you can set this requirement in the project's prerequisite options. When publishing a ClickOnce application, you can choose a set of prerequisite components to be packaged along with your application. At installation time, a check will be performed for each prerequisite to determine if it already exists; if not it will be installed prior to installing the ClickOnce application.

In short, you should have created a custom .Net 3.5 package and add it in the prerequisite folder: C:\Program Files (x86)\Microsoft SDKs\ClickOnce Bootstrapper\Packages. After that, .Net 3.5 package will appear in prerequisite option in VS. as I shown the option window below. About setting a prerequisite and create a bootstrapper package, please look at: https://docs.microsoft.com/en-us/visualstudio/deployment/how-to-install-prerequisites-with-a-clickonce-application?view=vs-2017 and https://docs.microsoft.com/en-us/visualstudio/deployment/creating-bootstrapper-packages?view=vs-2017

It’s worth to be mentioned, .Net 3.5 as a component of Windows 8.1 and 10, has been preinstalled in default, and we strongly recommend users to enable .Net 3.5 through the Windows Control Panel, the detail steps: https://docs.microsoft.com/en-us/dotnet/framework/install/dotnet-35-windows-10 .

Since our forum mainly focus on .NET Framework Setup and Servicing issue, if you have more confused about how to deploy your project and other else, I recommend you could redirect clickonce forum to start a new thread for an ask.

Hope my answer would help you and if so, please mark it as answer.

Thank you for your understanding.

Sincerely

May


这篇关于自动在Windows 8和Windows 10上安装.Net Framework 3.5的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆