Share via


Getting error "Package 'sqlsysclrtypes,version=15.1.61808.7030,chip=x86,language=en-US' failed to install."

Question

Tuesday, October 16, 2018 8:42 PM

Hi,

I created an offline package to install Visual Studio 2017, version 15.8 and I'm getting the below error during the installation:  

Package 'sqlsysclrtypes,version=15.1.61808.7030,chip=x86,language=en-US' failed to install.
    Search URL
        https://aka.ms/VSSetupErrorReports?q=PackageId=sqlsysclrtypes;PackageAction=Install;ReturnCode=1603
    Details
        MSI: C:\ProgramData\Microsoft\VisualStudio\Packages\sqlsysclrtypes,version=15.1.61808.7030,chip=x86,language=en-US\SQLSysClrTypes.msi, Properties:  REBOOT=ReallySuppress  MSIFASTINSTALL="7"  SKIPPENDINGREBOOTCHECK="1" 
        Return code: 1603
        Return code details: Fatal error during installation.
        Message Details: Microsoft System CLR Types for SQL Server vNext CTP1.6 requires the .NET Framework version 2.0 or 3.0 or 3.5 or 4.0. Ensure that this requirement is fulfilled before installing Microsoft System CLR Types for SQL Server vNext CTP1.6.

Digging into the component installation log, I see this more detailed error on what failed:

MSI (s) (18:DC) [19:16:35:234]: Invoking remote custom action. DLL: C:\windows\Installer\MSI307E.tmp, Entrypoint: IsDotNetFramework20Or30Or35Or40Installed
MSI (s) (18:88) [19:16:35:234]: Generating random cookie.
MSI (s) (18:88) [19:16:35:379]: Created Custom Action Server with PID 17792 (0x4580).
MSI (s) (18:74) [19:16:35:973]: Running as a service.
MSI (s) (18:74) [19:16:36:017]: Hello, I'm your 32bit Impersonated custom action server.
Action start 19:16:35: IsDotNetFramework20Or30Or35Or40Installed.
MSI (s) (18:F0) [19:16:36:041]: Doing action: CA_ErrorPrereqDotNet20Or30Or35Or40
Action ended 19:16:36: IsDotNetFramework20Or30Or35Or40Installed. Return value 1.
Action start 19:16:36: CA_ErrorPrereqDotNet20Or30Or35Or40.
MSI (s) (18:F0) [19:16:36:047]: Product: Microsoft System CLR Types for SQL Server vNext CTP1.6 -- Microsoft System CLR Types for SQL Server vNext CTP1.6 requires the .NET Framework version 2.0 or 3.0 or 3.5 or 4.0. Ensure that this requirement is fulfilled before installing Microsoft System CLR Types for SQL Server vNext CTP1.6.

I already have .Net Framework 4.7 installed and confirmed via registry.

Here's the command i used to create the offline package.

vs_professional__294797539.1519139213.exe --layout c:\vs2017offline --add Microsoft.VisualStudio.Workload.ManagedDesktop;includeRecommended --add Microsoft.VisualStudio.Workload.NetWeb;includeRecommended --add Microsoft.VisualStudio.Workload.Data;includeRecommended --add Microsoft.Net.Component.4.7.2.SDK --add Microsoft.Net.ComponentGroup.4.7.2.DeveloperTools --add Microsoft.VisualStudio.ComponentGroup.IISDevelopment --add Microsoft.VisualStudio.Web.Mvc4.ComponentGroup

Thanks for any help!!

All replies (6)

Wednesday, October 17, 2018 3:16 AM

Hi friend,

Welcome to the MSDN forum.

>> Message Details: Microsoft System CLR Types for SQL Server vNext CTP1.6 requires the .NET Framework version 2.0 or 3.0 or 3.5 or 4.0. Ensure that this requirement is fulfilled before installing Microsoft System CLR Types for SQL Server vNext CTP1.6.

Please check if you installed .NET 3.5 (include 3.0 2.0): type “Turn Windows feature on or off” in search box in left corner of desktop -> checked the box “.NET Framework 3.5 (includes .NET 2.0 and .NET 3.0)” is checked -> press “OK”. Then re-try to install again.

If the error still persists, I need your help to collect installation log. Please use https://www.microsoft.com/en-us/download/details.aspx?id=12493 to gather the installation logs. After using it, you will find vslogs.zip under %temp% folder. Please upload the file to https://onedrive.live.com/  and share the link here.

Waiting for your reply.

Best Regard,

May

MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]


Thursday, October 18, 2018 1:13 AM

Hi May,

Thanks for your reply!  I already do have .Net 3.5 installed.

Here's a link to the vslogs.zip:

https://1drv.ms/u/s!AuIPaeKWr2YjgSAxA6rItxUhgNlL

Thanks for your help!


Thursday, October 18, 2018 3:28 AM

Hi friend,

I checked your installation log, please make sure that install all pending windows update and clean up %temp% folder and disable all anti-virus software, use command line “- -verify” and “- -fix” from this Docs: /en-us/visualstudio/install/update-a-network-installation-of-visual-studio?view=vs-2017#how-to-verify-a-layout , it will perform verification on the offline cache supplied. It checks if packages files are either missing or invalid. At the end of the verification, it prints the list of missing files and invalid files. Then try to fix the identified issues. At last, open cmd with administrator privilege to test it again.

Besides, other member have encountered this issue from there: https://developercommunity.visualstudio.com/content/problem/12422/sqlsysclrtypes-fails-to-install.html . you could try to install the MSI by manually and using the MSI itself as the installation source. (MSI path: C:\ProgramData\Microsoft\VisualStudio\Packages\sqlsysclrtypes)

If the error still doesn’t be solved, please upload the latest log here.

Best Regards

May

MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]


Thursday, October 25, 2018 7:18 AM

Hi friend,

Did you run command "--verify" and "--fix"? Is there some updates for this?

May

MSDN Community Support Please remember to click "Mark as Answer" the responses that resolved your issue, and to click "Unmark as Answer" if not. This can be beneficial to other community members reading this thread. If you have any compliments or complaints to MSDN Support, feel free to contact [email protected]


Monday, October 29, 2018 12:47 AM

Hi May,

Thanks for your help!

I've cleaned up the %temp% folder, and I don't think I have any pending updates.  I cannot disable anti-virus as it's a corporate laptop and I don't have access to do that.  I did try using --verify against the offline package (layout) and there were no issues.

 

I tried manually sqlsysclrtypes.msi as suggested and it did install successfully.  However, the reason why I'm creating an offline package is to minimize any manually intervention so manually installing that msi goes against what I'm trying to do.

 

I did do further searches on what could caused this issue.  One suggestion is to include these individual components:

.NET Framework 4 targeting pack

.NET Framework 4.5 targeting pack

.NET Framework 4.5.1 targeting pack

.NET Framework 4.5.2 targeting pack

.NET Framework 4.6 targeting pack

.NET Framework 4.6.1 SDK

.NET Framework 4.6.1 targeting pack

 

I've tried that but I'm still coming up with the same error.  This is the command I'm using now to create my package:

vs_professional__294797539.1519139213.exe --layout c:\vs2017offline --add Microsoft.VisualStudio.Workload.ManagedDesktop;includeRecommended --add Microsoft.VisualStudio.Workload.NetWeb;includeRecommended --add Microsoft.VisualStudio.Workload.Data --add Microsoft.VisualStudio.Component.SQL.SSDT --add Microsoft.Net.ComponentGroup.TargetingPacks.Common --add Component.Redgate.SQLSearch.VSExtension --add Microsoft.Net.Component.4.7.2.SDK --add Microsoft.Net.ComponentGroup.4.7.2.DeveloperTools --add Microsoft.VisualStudio.ComponentGroup.IISDevelopment --add Microsoft.VisualStudio.Web.Mvc4.ComponentGroup --add Microsoft.Net.Component.4.7.2.TargetingPack --add Microsoft.Net.Component.4.TargetingPack --add Microsoft.Net.Component.4.5.TargetingPack --add Microsoft.Net.Component.4.5.1.TargetingPack --add Microsoft.Net.Component.4.5.2.TargetingPack --add Microsoft.Net.Component.4.6.TargetingPack --add Microsoft.Net.Component.4.6.1.SDK --add Microsoft.Net.Component.4.6.1.TargetingPack

 

Since my package has changed.  I've reran collect.exe and attached the results.

https://1drv.ms/u/s!AuIPaeKWr2YjgSFlGIQDIY3VWnTO 

Thanks again for all your help!


Wednesday, February 12, 2020 2:31 PM

I had the same problem with Visual Studio 2019 Community Edition.
I was able to solve it like Xiu Li described it here:
https://developercommunity.visualstudio.com/comments/806784/view.html

Delete directories and repair Visual Studio via the Visual Studio installer.