SOLIDWORKS 2021 SP2 VBA 7.1 Change Prevents Older Version Installation

With older version installations, the following error can occur:

A newer version of this application is already installed. Installation stopped.

This error appears because of a change in the Visual Basic for Applications (VBA) version 7.1, introduced in the SOLIDWORKS 2021 SP2 software. Earlier versions of the SOLIDWORKS Installation Manager installer do not recognize the new installation of the VBA 7.1 components. Therefore, the installer starts a new installation of the older version of the program. The new VBA 7.1 installation then blocks the software installation.

To replicate the issue:

  1. Run the SOLIDWORKS Installer for versions older than 2021 SP2
  2. SOLIDWORKS will run into the following error (2020 SP install example below)SolidWorks_2021_SP2_VBA_Preventing_2020_from_Installing.PNG

    When this error occurs, the SOLIDWORKS Installation Manager log file typically shows the following entries:

    ‘{Time} Info Step 90 0 "{0: Installing} MSI: {1: {Location of installation files}\SOLIDWORKS 2020 SP05\PreReqs\VBA\vba71.msi}; command-line: {2: }
    (ID {3: Microsoft_VBA}, lang {4: }, pcode {5: {90120064-0070-0000-0000-4000000FF1CE}}, mode {6: 7}, upg = {7: }, f{8: 0}, costKB {9: 0})"’

    ‘{Time} Error Status 149 0 "Product:CAM ErrorCode:0 Message:A newer version of this application is already installed. Installation stopped."’

Solution: Remove the new VBA7.1

You cannot correct this issue by using earlier versions of the installation manager. If you encounter this issue, perform the following solutions to reinstall the older version of VBA.

Solution 1: Use attached bat file to uninstall

  1. Download the attached file ‘S-078838_uninstall_vba.txt’.
  2. In Windows File Explorer, go to the view tab & turn on “File name extensions”.
  3. Rename the file to ‘S-078838_uninstall_vba.bat’.
  4. Right-click the ‘S-078838_uninstall_vba.bat’ file and then click ‘Run as administrator’.
  5. Now install your older version of SOLIDWORKS.
  6. Perform a repair of the recent SOLIDWORKS installation (SOLIDWORKS 2021 SP2 or later) to reinstall the updated VBA 7.1 components.

Solution 2: Manual uninstall

To uninstall and then re-install those files, follow the steps below:

  1. Download the attached vba 2021.zip file from SolidWorks 2021 & extract the files.
  2. Right click the file named vba71.msi and select uninstall.
  3. Right click on the file named vba71_1033.msi and then select uninstall.
  4. Install your older version of SOLIDWORKS(2020 for example).
  5. Once the older SOLIDWORKS is successfully installed, reinstall the newer VBA by double clicking on vba71.msi first, then vba71_1033.msi from the zip file.
  6. If 2021 is not yet installed, you may do so now.

 

Was this article helpful?
0 out of 0 found this helpful

Comments

0 comments

Article is closed for comments.