Archive

Posts Tagged ‘Windows 7’

VSTO: This action is only valid for products that are currently installed.

July 10, 2009 2 comments

This is the error which I got on Windows 7  after uninstalling Visual Studio Tools for the Office system 3.0 Runtime and try to install an Office add-in. The add-in installed originally fine, but the issue raised when we uninstalled the add-in and the VSTO System 3.0 SP 1 (The service pack was installed as part installation of the Office addin):

Component Visual Studio Tools for the Office system 3.0 Runtime Service Pack 1 has failed to install with the following error message:
“This action is only valid for products that are currently installed. ”

The following components failed to install:
– Visual Studio Tools for the Office system 3.0 Runtime Service Pack 1

See the setup log file located at ‘C:\Users\[USER NAME]\AppData\Local\Temp\VSD5D69.tmp\install.log’ for more information.

Solution (worked for me):
It seams that the VSTO runtime has not been uninstalled correctly and if you check the registry key HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\vsto runtime Setup\v9.0.21022 you will find that the installed value is set to 1. To fix this issue change the value to zero and try to install the add-in again. This time it should install the Visual Studio Tools for the Office system 3.0 Runtime and its Service Pack 1 correctly.

Alternative Solutions:

You can also try Windows Installer CleanUp Utility, however it did not work for me. This is also the quote from an article on consumerdocs.installshield.com about a similar issue:

Problem:

When running an installation on your computer, you may encounter error 1605 with or without the following error message:

Error 1605: “This action is only valid for products that are currently installed”.

This error is only encountered when running installations based on the Windows Installer Service.

Fix:

A: When an installation is being uninstalled from your computer
If the error occurs when the installation is being uninstalled from your computer, use Microsoft’s Windows Installer Clean Up utility to remove the installation information from the system registry. The Windows Installer Clean Up utility will not remove all the files that are installed by the installation. You will need to delete them manually. Follow these steps to accomplish this:
Download Windows Installer Clean Up utility
  1. Scroll down and click the link Download the Windows Installer Cleanup Utility package now.
  2. Save the file on your Desktop.
  3. Double-click on the downloaded file to install the Windows Installer Clean Up utility.
To remove traces of your installation from your computer:
  1. Go to Start > Programs > Windows Install Clean Up to launch the Windows Installer Clean Up.
  2. In the dialog that appears, select the installation you want to uninstall.
  3. Click Remove.
  4. Launch Windows Explorer by pressing Windows key + E or select Start > Explore.
  5. Go to the location where the installation has installed the files, usually C:\Program Files\NameofCompanyorApplication, and manually delete them. To do this, select all the files (Ctrl +A or Edit > Select All) and hit the Delete key.

B: When installing an application for the first time

Error 1605 occurs when the installation thinks that the application has already been installed once on your computer. This causes the installation to run in Maintenance mode; however, it fails in the process because a previous instance of this installation does not exist on your computer. One of the reasons why this happens is because a property called REINSTALLMODE has been set incorrectly within the installation. Follow these steps to run the installation with the correct REINSTALLMODE property.
  1. Select Start > Run.
  2. In the Open field, type
    • Windows NT 4.0, 2000. or XP: cmd.exe and click OK.
    • Windows 95 / 98 or ME: command.com and click OK.
  3. At the MS-DOS prompt, type in the path, or location, of setup.exe along with the REINSTALLMODE property, e.g., <PATH>\setup.exe /V"REINSTALLMODE="omus"