If you used a symbolic link to set up a nondefault location for SAS Viya configuration files, the process of updating, upgrading, or adding software to modify SAS Viya software fails. The installation terminates, and you see the Microsoft Windows Installer function Msiexec error code 1622, as shown here:
Problem
This problem happens because the symbolic link that you created is removed during an installation step for an update or upgrade. Because the symbolic link is removed, the Windows Installer cannot write the MSI log to the SAS Viya configuration folder %ProgramData%\SAS\Viya\var\log\install, which does not exist.
The deployment of SAS Viya for Windows is supported to use %ProgramFiles%\SAS\Viya as the default folder for installation and %ProgramData%\SAS\Viya as the default folder for configuration files. You should not try to deploy the software to use nondefault folders or use a symbolic link to specify a nondefault location for SAS Viya installation or configuration files.
At one time, the SAS® Viya® 3.4 for Windows: Deployment Guide documented instructions for using a symbolic link to specify a nondefault location for SAS Viya configuration files. However, those instructions were later removed because of problems identified with updating and upgrading SAS Viya if a symbolic link had been used. The instructions that are provided here should be used as a workaround if you used a symbolic link to set up a nondefault location for SAS Viya configuration files when you installed SAS Viya 3.4 and you now need to update or upgrade SAS Viya software.
Workaround
The workaround is to use a new command-line option to specify a different folder for installation logs. Packages can then install and update without errors. After the installation step is finished, the symbolic link is removed and a non-symbolic-linked SAS directory is created in the %ProgramData% folder. Copy the new files and folders in the %ProgramData%\SAS folder to the target location that you had specified when you created the symbolic link. You then must re-create the symbolic link and run Setup.bat again to configure the software.
Before you begin the steps within this SAS Note, you must first review the section Managing Your Software in the SAS® Viya® 3.4 for Windows: Deployment Guide. In this section, there are subsections that describe how to update SAS Viya, how to add software to modify SAS Viya, and how to upgrade SAS Viya. Review the subsection regarding the action that you need to take. Perform the steps here to complete the software modification or updates:
Back up these three files:
deploy.ps1 (located in C:\sas\install\powershelldeployment\)
remove.ps1 (located in C:\sas\install\powershelldeployment\)
SasDeploymentController.psm1 (located in C:\sas\install\powershelldeployment\library\SasDeploymentController\)
Contact SAS Technical Support to obtain new copies of these files. Save the new files in the locations shown in the list above.
Product Family | Product | System | Product Release | SAS Release | ||
Reported | Fixed* | Reported | Fixed* | |||
SAS System | SAS Viya | Microsoft Windows Server 2012 R2 Datacenter | 3.4 | |||
Microsoft Windows Server 2016 | 3.4 | |||||
Microsoft Windows Server 2012 R2 Std | 3.4 |
Type: | Installation Note |
Priority: | high |
Date Modified: | 2022-07-22 09:55:07 |
Date Created: | 2019-04-23 12:15:41 |