我试图安装VS2019并重新安装它的次数,但是每次安装之间都出现一条消息Setup completed with warning
时,都没有安装.Net Framework 4.5.2目标包。
在日志中我可以看到
PackageId:Microsoft.Net.4.5.2.TargetingPack; PackageAction:Install; ReturnCode:1625;
在这个阶段,我可以打开VS 2017,但没有Web模板。
错误详细信息:
Package 'Microsoft.Net.4.5.2.TargetingPack,version=4.5.51651.1' failed to install.
Search URL
https://aka.ms/VSSetupErrorReports?q=PackageId=Microsoft.Net.4.5.2.TargetingPack;PackageAction=Install;ReturnCode=1625
Details
MSI: C:\ProgramData\Microsoft\VisualStudio\Packages\Microsoft.Net.4.5.2.TargetingPack,version=4.5.51651.1\netfx_452mtpack.msi, Properties: REBOOT=ReallySuppress ARPSYSTEMCOMPONENT=1 MSIFASTINSTALL="7" EXTUI="1"
Return code: 1625
Return code details: This installation is forbidden by system policy. Contact your system administrator.
Log
C:\Users\ihalarnkar162161\AppData\Local\Temp\dd_setup_20200417231054_219_Microsoft.Net.4.5.2.TargetingPack.log
Impacted workloads
ASP.NET and web development (Microsoft.VisualStudio.Workload.NetWeb,version=15.8.27906.1)
Impacted components
.NET Framework 4 – 4.6 development tools (Microsoft.Net.ComponentGroup.TargetingPacks.Common,version=15.6.27406.0)
.NET Framework 4.5.2 targeting pack (Microsoft.Net.Component.4.5.2.TargetingPack,version=15.6.27406.0)
ASP.NET and web development tools (Microsoft.VisualStudio.Component.Web,version=15.8.27825.0)
ASP.NET and web development tools prerequisites (Microsoft.VisualStudio.ComponentGroup.Web,version=15.9.28219.51)
Cloud tools for web development (Microsoft.VisualStudio.ComponentGroup.Web.CloudTools,version=15.8.27729.1)
Data sources for SQL Server support (Microsoft.VisualStudio.Component.SQL.DataSources,version=15.0.26621.2)
Microsoft Azure WebJobs Tools (Component.Microsoft.VisualStudio.Web.AzureFunctions,version=15.7.27617.1)
Microsoft Azure WebJobs Tools (Microsoft.VisualStudio.ComponentGroup.AzureFunctions,version=15.7.27617.1)
SQL Server Data Tools (Microsoft.VisualStudio.Component.SQL.SSDT,version=15.9.28107.0)
Windows Communication Foundation (Microsoft.VisualStudio.Component.Wcf.Tooling,version=15.8.27924.0)
答案 0 :(得分:0)
错误1625表示:
ERROR_INSTALL_PACKAGE_REJECTED 1625此安装被禁止 系统政策。请与系统管理员联系。
根据https://docs.microsoft.com/en-us/windows/win32/msi/error-codes
我的有根据的猜测是,将以管理员权限运行vsinstaller(以admin身份运行),它应该可以解决此问题。
让我知道是否可以解决问题