question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

SPInstallPrereqs Fails with Exit Code 1620

See original GitHub issue

Details of the scenario you tried and the problem that is occurring

Due to the file http://go.microsoft.com/fwlink/?LinkId=622997 (SQL 2012 native client) is no longer available, SharePoint 2016 prerequisite installer cannot properly run and returns error.

Verbose logs showing the problem

PowerShell DSC resource MSFT_SPInstallPrereqs  failed to execute Set-TargetResource functionality with error message:
The prerequisite installer ran with the following unknown exit code 1620
    + CategoryInfo          : InvalidOperation: (:) [], CimException
    + FullyQualifiedErrorId : ProviderOperationExecutionFailure
    + PSComputerName        : SWAZSERVER01.c0nt0s00.local

Suggested solution to the issue

For example, one can use SQL 2012 SP4 native client. I tested it in my sandbox but not sure if it is fully supported by Microsoft:

        File SPLocalMediaEnsure {
            SourcePath = $env:SP_MEDIA_UNC
            DestinationPath = "C:\Install\SP_MEDIA"
            Recurse = $true
            Type = "Directory"
            Credential = $MediaShareCredential
        }

        xRemoteFile SQLNCli
        {
            Uri             = "https://download.microsoft.com/download/F/3/C/F3C64941-22A0-47E9-BC9B-1A19B4CA3E88/ENU/x64/sqlncli.msi"
            DestinationPath = "C:\Install\SP_MEDIA\2016\SharePoint\prerequisiteinstallerfiles\sqlncli.msi"
            MatchSource     = $false
            DependsOn       = "[File]SPLocalMediaEnsure"
        }

        Package SQLNCli
        {
            Path        = "C:\Install\SP_MEDIA\2016\SharePoint\prerequisiteinstallerfiles\sqlncli.msi"
            Name        = "Microsoft SQL Server 2012 Native Client "
            ProductId   = "B9274744-8BAE-4874-8E59-2610919CD419"
            Arguments   = "/qn /norestart IACCEPTSQLNCLILICENSETERMS=YES"
            DependsOn   = "[xRemoteFile]SQLNCli"
        }

        SPInstallPrereqs SPPrereqsInstalled
        {
            IsSingleInstance    = "Yes"
            InstallerPath       = "C:\Install\SP_MEDIA\2016\SharePoint\Prerequisiteinstaller.exe"
            OnlineMode          = $true
            DependsOn           = "[File]SPLocalMediaEnsure", "[Package]SQLNCli"
        }

The DSC configuration that is used to reproduce the issue (as detailed as possible)

        SPInstallPrereqs SPPrereqsInstalled
        {
            IsSingleInstance    = "Yes"
            InstallerPath       = "C:\Install\SP_MEDIA\2016\SharePoint\Prerequisiteinstaller.exe"
            OnlineMode          = $true
            DependsOn           = "[File]SPLocalMediaEnsure", "[Package]SQLNCli"
        }

The operating system the target node is running

Version of SharePoint that is used (e.g. SharePoint 2016)

SharePoint 2016

Version and build of PowerShell the target node is running

Version of the DSC module that was used

4.2.0

Issue Analytics

  • State:closed
  • Created 3 years ago
  • Comments:9 (3 by maintainers)

github_iconTop GitHub Comments

1reaction
shurick81commented, Nov 12, 2020

Prerequisite installer was failing because the permalink http://go.microsoft.com/fwlink/?LinkId=622997 was pointing to https://download.microsoft.com/download/4/B/1/4B1E9B0E-A4F3-4715-B417-31C82302A70A/ENU/x64/sqlncli.msi, that is not available anymore. Now thanks to @brianlala, Microsoft has fixed the permalink and it points to SQL 2012 SP4 Native Client, https://download.microsoft.com/download/F/3/C/F3C64941-22A0-47E9-BC9B-1A19B4CA3E88/ENU/x64/sqlncli.msi. Everything should now work as before the incident (but installing a new version of the client).

1reaction
ykuijscommented, Nov 12, 2020

@shurick81 I am updating both the documentation and the resource to refer to the Wiki when exit code 1620 is thrown.

@centuryx476 The resource does not process any of the specified prereq component parameters if you set OnlineMode to True. It will then always try to download any missing prereqs from the Internet.

Read more comments on GitHub >

github_iconTop Results From Across the Web

SharePoint 2019 - SPInstallPrereqs : The prerequisite ...
SharePoint 2019 - SPInstallPrereqs : The prerequisite installer ran with the following unknown exit code 1620 #991.
Read more >
Windows Installer Error 1620 Fix Guide
Windows Installer Error 1620 is caused by a series of problems and issues with the Windows Installer Package. The error is going to...
Read more >
Software Deployment : Help with MSI 1620
This error message can occur if the name of the network share from which you are running Setup is more than 12 characters...
Read more >
MSI Cannot Open File - Error 1620
Resolution: Verify the file exists and that your PDQ Deploy user account has proper permissions to the directory in which the file is...
Read more >
Client Automation - Error 1620 while upgrading Domain ...
The actual error for 1620 code is "ERROR_INSTALL_PACKAGE_INVALID". Based on Microsoft's database, this error is described as:
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found