Installing SAS® Providers for OLE DB and other SAS® Foundation products might fail with an "unexpected error has occurred" message


An Install Failure message indicating that an unexpected error has occurred might occur when installing the following items as part of a deployment (either via the SAS® Deployment Wizard or a standalone installer such as the Universal Viewer):


In this scenario, an error message similar to the following might appear:

The following problem was encountered while installing SAS Providers for OLE DB: An unexpected error has occurred.


Inspecting the IT_[date-time].log file that is referenced in the error message reveals the following log entries (the path, exit value, and .dll file can vary): 

Controller - An error occurred during processing:

Controller - There is a problem that seems to be an issue with the installer: An non-zero exit value of 3 was returned while registering the file C:\Program Files\SASHome\SASProvidersforOLEDB\9.47\sasafloc.dll

Scenario 1 - RegSvr Exit Code 3

You might encounter this scenario when the SAS Deployment Wizard is registering a .dll file. If the regsvr32 command returns an Exit Code of "3" / Non-Zero exit value of "3", it might indicate that a dependency of that file - the Microsoft Visual C++ Redistributable (32-bit and/or 64-bit) Packages - is not installed or needs repair.

Resolution

The SAS Deployment Wizard normally detects whether the pre-requisite version(s) and bit-ness of the Microsoft Visual C++ Redistributable Packages are installed on the computer. However, if they need to be manually installed or repaired, complete the following steps:

  1. Check whether the appropriate versions are installed. For recent SAS 9.4 maintenance releases (M8 and M9), the "2015-2022 Redistributable (x86)" and "2015-2022 Redistributable (x64)" should be present.
    1. Open the Windows Installed Apps control panel (Programs and Features in Windows 10). Look for the following installed items in the list:
      • Microsoft Visual C++ Redistributable 2015-2022 (x32)
      • Microsoft Visual C++ Redistributable 2015-2022 (x64)

    2. If either of them is not present, run the matching MSVCR Package Installer from the following folders of your SAS Software Depot and then re-try your installation:
      • 32-Bit: [SAS Software Depot]\products\vcredist2022__[version]__prt__xx__sp0__1\w32\native\VC_redist.x86.exe
      • 64-Bit: [SAS Software Depot]\products\vcredist2022__[version]__prt__xx__sp0__1\wx6\native\VC_redist.x64.exe
        1. Note: Your Software Depot may only/also contain "vcredist2019..." folders if from an older Maintenance Release

  2. If you've confirmed that the appropriate Microsoft Visual C++ Redistributable Packages had been previously installed, you might need to repair them before trying to install your software again:
    1. Open the Windows Installed Apps control panel (Programs and Features in Windows 10). Look for the following installed items:
      • Microsoft Visual C++ Redistributable 2015-2022 (x32)
      • Microsoft Visual C++ Redistributable 2015-2022 (x64)

    2. Click the Ellipsis (...) on the right side of the item (in Windows 10, right-click the line instead) and select Modify
      1. When the Microsoft Visual C++ Redistributable "Modify Setup" window opens, select Repair.

    3. Repeat for any other MSVCR versions/bit-ness also in the list

Contact your local I.T./Helpdesk for additional assistance with these steps if needed.

 

SAS® 9.4M9 Note:

The initial release of SAS 9.4M9 did not always detect and install the 32-bit version of the Microsoft Visual C++ 2015-2022 Redistributable if it was not present (though it would install the 64-bit version if needed). This issue was resolved in the October 2025 ship event.

As a workaround, run the 32-bit MSVCR Installer (VC_redist.x86.exe) from your SAS Software Depot and then re-try your installation.

Contact Technical Support for assistance in determining your SAS Software Depot's Order version/release if needed.

Scenario 2 - RegSvr Exit Code 5

Here's another scenario that you might encounter when the SAS Deployment Wizard is registering a .dll file. If the regsvr32 command returns an Exit Code of "5" / Non-Zero exit value of "5", it indicates that "Access is Denied" to that operation.

Resolution

There are two solutions to the above issue:

Solution 1

Check whether a local security policy/endpoint protection software is preventing the registration of .dll files from the regsvr32 command.

Your I.T. / Network Security team might need to review and set up policies / exclusions for your system that allow the installation to proceed normally.

Solution 2

Determine whether a specific version of the BeyondTrust Endpoint Privilege Management (EPM) client is installed on the computer.