Back

Topic

[KB134]Error when installing VBA

Tags: Installation

14 years ago
By RM
Options
Print
Applies to:

PcVue all versions.


Summary:

This article describes what to do when the installation process halts at the point of installing the VBA components. The problem as described is specifc to the de-installation of previously installed versions 8.0 and 8.10 before build 8153, and version 9.0 before build 1892.


Details:

Error message :

The installation process produces an error message and stops. For example:

Vba Setup Error: 115

or

Install return code not OK
File C:\Document and settings\…\Temp\VbaSetupInst.log
Section: VbaForSv Key: RetCode
Code: 1605

Cause :

Most usually this condition arises from there being an earlier version of the VBAforSV software on the station. In principle that is removed when the PcVue software is de-installed. However if the user who de-installs it is different from the one who installed it, PcVue may not be removed properly from the station.

Solutions

Solution 1 – automatic removal

  1. Obtain the user name under which the software was installed. (If it is not to hand, see How to find… below.)
  2. Open a Windows session as that user.
  3. In the Add/Delete Programs dialog, find the entry for the version of PcVue with VBA. (Use Solution 2 if you do not find it.)
  4. Remove that software.

Solution 2 – manual removal

Use if the entry in the Add/Delete Programs dialog does not exist or does not work (this can happen if the files in PcVue’s BIN folder were deleted manually).

  1. Obtain the user name under which the software was installed. (If it is not to hand, see How to find… below.)
  2. Open a Windows session as that user.
  3. In Windows Start / Run, de-install VBA for SV using the following command line:
    Msiexec.exe /x {Product Code Guide}
    where the product code guide is as follows:
    8.00 : {9FB61016-D240-4B93-941A-C1F1AE22DD08}
    8.10 : {ECED0716-0CD4-4C1B-A6EA-0C41C19BD285}
    CPC 1.2 : {2D00C00E-BF37-43B2-A55B-5A19E846214A}
    8.11 / 8.2 / CPC 1.3 : {D4F4EFF9-81EF-4AD7-AF84-FEB3D15E4963}
    9.0 : {2E87C0D8-CC13-4C07-B23A-EA4DF8A19EF7}
  4. Only if you are 100% sure that there is no other application on the PC using VBA you can then delete it completely using the following commands. see How to make sure… below.
    Msiexec.exe /x {90F50409-6000-11D3-8CFE-0150048383C9}
    Msiexec.exe /x {90F60409-6000-11D3-8CFE-0150048383C9}
    Otherwise leave VBA in place, even if it is not being used
Note

The above applies also to installation of the Web Services demonstration portal for PcVue versions 8.00 and 8.10.

Clean up after removal

When you have de-installed VBAforSV, manually delete the key with the product code guide for the version of PcVue:

HKLM\SOFTWARE\Microsoft\VBA\VBA6.4\InstalledBy\{Product Code Guide}

Also manually delete the key for VBA version 6.4 and its tree structure:
HKLM\SOFTWARE\Microsoft\VBA\VBA6.4

Only the following value should remain:

HKLM\SOFTWARE\Microsoft\VBA\VBA6.4 Installed = 1

How to find the installer’s user name

This method depends on the PC’s TEMP environment variable not having been altered.

  1. From a command prompt run the RegEdit utility and find the following section of the Registry:
    HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall\
  2. In that section, find the following key according to the version of PcVue:
    8.00 : {9FB61016-D240-4B93-941A-C1F1AE22DD08}
    8.10 : {ECED0716-0CD4-4C1B-A6EA-0C41C19BD285}
    CPC 1.2 : {2D00C00E-BF37-43B2-A55B-5A19E846214A}
    8.11 / 8.2 / CPC 1.3 : {D4F4EFF9-81EF-4AD7-AF84-FEB3D15E4963}
    9.0 : {2E87C0D8-CC13-4C07-B23A-EA4DF8A19EF7}
  3. In the key, find the following values:
    DisplayName for either VbaforSV or VbaforCPC (just to make sure you have the right key).
    InstallSource which gives the path to the installer’s temporary folder, in the format C:\Documents and Settings\<user>.
  4. If it has not been altered, the last part of that path is the user name you need.

How to make sure that no other software uses VBA

    1. Run the RegEdit utility and find the following section of the Registry:
      HKLM\SOFTWARE\Microsoft\VBA\VBA6.4\InstalledBy
    2. That contains a list of all software applications that have installed VBA and hence use it.
    3. If the only such key or keys has/have the Product Code Guide for VBAforSV, you can rest assured that no other software uses VBA on that station.

 

Warn

You can cause severe damage to a Windows installation by modifying its Registry Database incorrectly.


Created on: 05 Nov 2010 Last update: 04 Sep 2024