After installing my VSTO addin with a MSI package installer(Created by windows installer project), I am getting the following error:
Microsoft.VisualStudio.Tools.Applications.Deployment.AddInAlreadyInstalledException: The customization cannot be installed because another version is currently installed and cannot be upgraded from this location.
[NOTE: As I have a Windows 10 x64 OS with x32 Office solution, to make my addin visible in Outlook I have to move my setup installed registries manually from:
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Office\Outlook\Addins\Company.OutlookAddin
to
HKEY_LOCAL_MACHINE\SOFTWARE\WOW6432Node\Microsoft\Office\Outlook\Addins\Company.OutlookAddin]
The Addin works fine(after above mentioned manual changes) in VS debug mode.
From few days I am trying to solve this and tried the following methods:
- Remove program by install/uninstall program menu(inside control panel)
- Changing Setup product key and reinstalling.
- Removing Registries(with GUID) from VSTA(which was already empty) and VSTO.
- Removing other related registries by searching them through Registry Scanner
Using a Fix it package from Microsoft
Deleted the click-once cache by deleting everything in: %APPDATA%\Local\Apps\2.0
Maybe I am missing to change any other registry key manually which points to the current registry key(with manifest).
Can anybody please help me here?