Show Message if VSTO Runtime is not installed (Visual Studio Installer) - visual-studio-2013

I am creating msi setup for Excel Addin, I want setup to give error message to user if VSTO2010 runtime is not found. I have added below launch conditions and registry search but its not working.

Related

Issues with Outlook add-in

My case is :
I developed an outlook add-in on visual studio 2013 then build to the MSI installation by InstallShield.
and setup registry in my MSI config file follow 2 way below :
HKEY_CURRENT_USER :
+ HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\Addins
+ HKEY_CURRENT_USER\Software\Microsoft\Office\Outlook\FormRegions
HKEY_LOCAL_MACHINE :
+ HKEY_LOCAL_MACHINE\Software\Microsoft\Office\Outlook\Addins
+ HKEY_LOCAL_MACHINE\Software\Microsoft\Office\Outlook\FormRegions
I created outlook add-in with the vsto file named 'abc.vsto'
For the first installing, it work fine.
After that i changed the name of vsto file from abc.vsto to def.vsto for creating new MSI installation.
But there are some issues happen after i installed add-in from the new one.
It's always show Formregion with empty control, after three or four time restart outlook, it work well.
maybe there are some encounter happen with two vsto file or something wrong with registry.
I realized that the outlook always creating new *.ost file which named *(2).ost after everytime restart that make duplicating ost file.How can i control generate *.ost process of outlook or why is this happen ?
I use this function for getting current outlook email user but it always return null value.
Globals.ThisAddIn.Application.Session.CurrentUser.AddressEntry.GetExchangeUser();I don't know if this issue related to question 2 or not cause if I remove all *.ost file then restart outlook, in this case, the new *.ost file
was auto generated and add-in work well.

Visual studio 2015 / TFS Access is denied

When I try to add new item to project in visual studio 2015 I always get this message
Access is denied.
The file is created and added to the project, but it is not added to Source Control, although the project is in source control. However, when I try to manually add the file to source control by right-clicking in Solution Explorer -> Add to source control, the file is added to TFS.
I have upgraded to windows 10 and installed Visual Studio 2015. I'm working on existing solution in C:\Projects\ and the solution was created and added to source control before I upgraded.
EDIT: If I run VS in admin mode, the error is gone
Access is denied. returns very little information. For more detail info, you can repro the error and run a procmon trace using Process Monitor tool filtered on DEVENV.EXE. Detail for how to use the tool: http://www.mztools.com/articles/2008/MZ2008024.aspx
Normally, this error message can be corrected with the followings:
Add your Windows account to the Administrators group on the local PC
Run your Visual Studio in Administrator mode.
Check if your project folder is set to read only.

Office 2010 Shared PIA is not Available?

I have an Excel Add-In for Excel-2010 version, which was created using Microsoft Visual Studio 2010.
The code is written in C#. To install the Add-In , you have to run a setup.exe file which will add the Add-In to Excel.
Everything seems to be working fine on Excel 2010, but when I am trying to install this on Excel-2103
I am getting the following Error:
The Office 2010 Shared PIA System is not Available.
Is there a way to install the add-in in the 2013 and also after it is installed will it work Perfectly or do i need to make any changes ?
It took a while to figure out but its done finally.
The add in launch conditions were checking for the availability of the shared PIA.
Condition: HASSHAREDPIA
and it was looking for the corresponding component id associated with excel 2013 PIA component ID
Click Here https://social.msdn.microsoft.com/Forums/vstudio/en-US/1fd8690a-812c-49f9-a77e-e19f24de7c4e/office-2013-pia-component-ids?forum=vsto
to obtain the suitable component id and replace it in the
Search Target Machine
Search for office 2010 shared PIA.
and replace the component id.
the add in should be working fine.

VSTO 2010 Outlook add-in shows error message while installing

I have a VSTO 2010 Office 2007 Outlook Add-In deployed from Click-Once. It works on my dev machine and on a standard user machine and fails on another. On the first time it was installed but the add-in didn't appear in Outlook. Then I removed that Add-In in the control panel and deleted the "outcmd.dat" file. When I'm trying to install a new plugin, it shows an error message:
"Microsoft.VisualStudio.Tools.Applications.Deployment.AddInAlreadyInstalledException: The customization cannot be installed because another version is currently installed and cannot be upgraded from this location. To install this version of the customization, first use Add or Remove Programs to uninstall this program: WG plugin. Then install the new customization from the following location: file:///C:/WG25.10.2012/WG plugin-php.vsto
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.VerifySolutionCodebaseIsUnchanged(Uri uri, String subscriptionId, Boolean previouslyInstalled)
at Microsoft.VisualStudio.Tools.Applications.Deployment.ClickOnceAddInDeploymentManager.InstallAddIn() "
Does anyone have any idea what might be causing this?
try this link , you have a command to run in this page,just run it the problem will be fixed. command: "rundll32 dfshim CleanOnlineAppCache"
or try this link
How do I completely uninstall a ClickOnce application from my computer?

installed shortcut causing install to rerun visual studio 2010

I am using the Visual Studio 2010 setup to create an installer for my application. From the File system Editor i have selected one of the two primary output files that have been created in my solution. I have right clicked and created a shortcut for my executable. I have dragged and droped the shortcut into the User's Program Menu. I build the installer and everything completes successfully. I run the installer and everything runs successfully. Now i proceed to double click on the shortcut and the installer re-runs and fails!!!. I have checked the shortcut and it is different from the one i have manually created to compare. The Target is greyed out. Any help would be greatly appreciated!!!
When launching an application through an advertised shortcut, Windows Installer verifies if the application resources are intact. If one or more resources are missing, Windows Installer reinstalls them automatically using the cached MSI. This is why the second installation is performed.
Shortcuts created in Visual Studio are advertised, so a repair is triggered if some of your installed files are missing.
To determine what triggers the repair you can try this:
after receiving a “preparing to install” message open Event Viewer (you can search it in the Start menu or launch “eventvwr.msc”)
go to “Windows Logs” -> “Application”
look for “MsiInstaller” information messages which have this form:
Event Type: Warning
Event Source: MsiInstaller
Event ID: 1001
Description: Detection of product '{1F7D16F0-836D-4CE4-9123-D30B2F24A17B}', feature 'FeatureId' failed during request for component '{068153F4-B9E0-4745-9A47-833764D9D60C}'
The GUIDs will be different on your machine, but they can help you identify which component is causing the problem. The first GUID is your package ProductCode and the second one is for the problematic component. Try creating an installation log and see why the component is not installed correctly.
This ended up being an issue with the registry hive. The Visual Studio 2010 Registry editor would allow me to specify values in 'HKEY_USERS(64)\S-1-5-20\Fileopen. This however was the reason for the error above. That is, you can't have values in this part of the registry when it is being generated using setup and deployment from Visual Studio 2010. I moved the values to exist under local_Machine and the short cut work like a charm.

Resources