我有一个自制的引导程序(称为SetUp.exe),用于检查目标计算机上是否安装了.NET 3.5,如果没有,运行dotnetfx35.exe启动安装。精细。这适用于我需要的所有情况,除了Windows 2008 Server R2之外。在此操作系统上,.NET安装程序不会安装/启用.NET 3.5。相反,它会弹出一个对话框,指出必须手动启用它。我更喜欢在我的引导程序exe或我的基于WiX的主MSI内自动执行此操作。如何将.NET 3.5的安装添加到Windows 2008 Server R2上的安装程序
0
A
回答
0
.NET Framework安装随Windows Server 2008 R2更改 - 您不能简单地运行dotnetfx35.exe(如您尝试的那样),但需要启用服务器功能。
通常您可以通过服务器管理器>添加功能> .NET Framework 3.5.1功能添加服务器角色,但是您表示需要通过WiX安装来安装它。
我知道的唯一方法就是使用PowerShell。在PowerShell中(开始作为管理员!),你需要运行以下命令:通过调用powershell.exe,像这样
Import-Module ServerManager
Add-WindowsFeature as-net-framework
这当然可以照本宣科:
powershell.exe -ImportSystemModules Add-WindowsFeature net-framework
的ImportSystemModules
你需要能够致电Add-WindowsFeature
。如果您希望打开top powershell以查看结果(我想不是在部署情况下),只需添加一个-noexit
参数。
实际上在Microsoft SQL Server博客上有一篇关于How to install/enable .Net 3.5 SP1 on Windows Server 2008 R2 for SQL Server 2008 and SQL Server 2008 R2的文章
相关问题
- 1. 在Windows 2008 R2上安装.net 3.5
- 2. RubyGems的安装Windows Server 2008 R2
- 3. Windows Server 2008上的SQL Server Express 2008 R2安装
- 4. 如何在我的Windows 2008 Server 2008 R2上安装pdo_sqlsrv?
- 5. 云SDK安装程序无法安装Server 2008 R2
- 6. 在Windows Server 2008 R2上安装的VBScript列表软件
- 7. 如何判断SP1是否安装在Windows Server 2008 R2 Standard上?
- 8. Windows Mobile Cab安装程序检测.NET CF 3.5并安装它
- 9. 如何在windows server 2008上安装Hudson?
- 10. 在Windows 2008 R2上安装Coldfusion 9时阻止应用程序
- 11. 为什么在安装SQL Server 2008 R2时安装visual studio 2008和SQL Server 2008?
- 12. .NET安装程序来添加mysql数据库表上安装
- 13. 在Windows 2008 64位机器上安装的SQL Server 2008 R2上的Openrowset
- 14. SQL Server 2008 R2/2处理器安装
- 15. 如何使用Inno安装程序安装SQL Server 2008 Express?
- 16. 如何在Windows 7旗舰版中安装SQL Server 2008 R2
- 17. 如何在IIS 7.5,Windows Server 2008 R2(64位)中安装PHP
- 18. 如何在Windows Server 2008 R1上安装.NET Framework 4.5参考库?
- 19. SQL Server 2008 R2安装不起作用
- 20. 在win server 2008 r2上安装windows phone sdk
- 21. 无法安装SQL Server 2008 R2
- 22. 安装Microsoft SQL Server 2008 R2标准版
- 23. WiX安装SQLServerSpatial.dll和SQL Server 2008 R2?
- 24. 在IIS7/Windows Server 2008上安装IonCube
- 25. 安装崩溃。 SQL Server 2008 r2 Express
- 26. 当安装Express时安装SQL Server 2008 R2 Standard/Enterprise
- 27. 如何在Windows服务器2008 R2上安装PayPal API证书
- 28. 使用.Net 2008应用程序自动安装.NET Framework 3.5 SP1
- 29. 如何在Windows Server 2008的程序集中安装文件?
- 30. 安装4.x时提示安装.NET 3.5的Windows