MS Office Addin Disappears after closing the office application - ms-word

One of my customers have reported that after installing my addin from the Office Add-ins Store, the addin is automatically removed from office application(Word, Excel) after they close it or if they open back the application after a few days and hence they have to keep installing it from the office add-ins store each time if they want to use it. How can i resolve this issue? Since the issue is happening very randomly, I'm unable to get the appropriate data to resolve it. So far, I've asked them to install the latest version of office, but even that doesn't seem to solve the problem.

Related

Problems with Word Add-in After MS Office Update to version 13628.20274

I have problems with my Word Add-in. It doen't work.
After some investigation I figured out that this issue apears after Office update.
I mean in elder versions of MS Word was used Internet Explorer. But after update the engine is Microsoft Edge Legacy. Also I now that now exists new Microsoft Edge based on Chromium.
So the question is next, is there a way to make my MS Word use Microsoft Edge based on Chromium instead of Microsoft Edge Legacy?
In addition:
in my research I depends on data from this link:
https://learn.microsoft.com/ru-ru/office/dev/add-ins/concepts/browsers-used-by-office-web-add-ins
Also tried to install WebView2 but it doen't help.
Current Version of MD Office: 13628.20274
Current Version of Word: 16.0.13628.20234
Will be grateful for any information related to my issue.
Thank in advance and have a nice day))
Check your Office installation. Build 13628.20274 is a release in the Current/Monthly Channel but is from January 2021. With this build the WebView2 control should be included and installed automatically. But, as you are several months behind the usual update schedule, your administrator might have put some restriction in place that prevent normal update installation.
As you installed the WebView2 control manually, you should double check that it is enabled in Office. The registry key HKEY_CURRENT_USER\SOFTWARE\Microsoft\Office\16.0\WEF\Win32WebView2 must exist and must have a value of 1 (DWORD).

VSTO AddIn for Word hanging for more than 20sec at startup, but only for some clients

I produced a VSTO Addin for word that is distributed as ClickOnce installer. Some clients have very slow startup times of word if the addin is activated (around 20secs), while most users don't seem to suffer from that problem (startup <1 sec). I can't reproduce the problem on my development machine. Deactivating the addin reduces the startup time to normal for them and deactivating all other addins does not bring any improvement. The client machines in question are standalone machines, no business network.
The addin itself is pretty light weight, it mainly starts a taskpane with a standard webbrowser element. The only depedencies are the .NET framework 4.7.2 and VS 2010 tools for office runtime. According to the users word displays the startup step "processing" during the waiting time.
Any ideas on how I can further investigate the problem with limited access to the client machine? Any guesses about the source of the problem?

Microsoft word add in error VSTO

We have a Microsoft word add-in that is working fine on the majority of pc's.
On a particular windows 7 pc, it has the visual studio 2010 tools for office installed correctly.
But when a user creates a new template word document, they get teh following error:
The customization assembly could not be found or could not be loaded.
You can still edit and save the document. Contact your administrator
or the author of this document for further assistance.
We have tried unloading all dependencies but still does not make any difference.
This is an issue effecting a small amount of windows 7 pc's with office 2016 installed. It seems to be pc related rather than the application.
Usually, the reason behind such an error is that the permissions for loading the VSTO solution are missing. One thing that often gets "missed" when deploying VSTO solutions is that the document must be in a "trusted location". You might want to check that this is the case by looking in the Word "Trust Center" (in the Options). You also need to be sure you've installed the correct version of the VSTO run-time for the version of Windows and Office. Read more about that in the Troubleshooting Run Time Errors in Office Solutions article.
Also it may indicate that you didn't include all required dependencies to your add-in's installer (any platform-specific assemblies). Something is missing on the target machines, so I'd suggest looking for any difference between machines. You can add the .NET Framework, the Visual Studio Tools for Office runtime, and the Office primary interop assemblies to your Setup package as prerequisites that are deployed with your Office solution. For information about how to install the primary interop assemblies, see Configuring a Computer to Develop Office Solutions and How to: Install Office Primary Interop Assemblies.
The required steps for deploying Office solutions are described in the following articles:
Deploying an Office Solution by Using ClickOnce
Deploying an Office Solution by Using Windows Installer
You can use the event viewer in Windows to see error messages that are captured by the Visual Studio Tools for Office runtime when you install or uninstall Office solutions. You can use these messages from the event logger to resolve installation and deployment problems. For more information, see Event Logging for Office Solutions.
See Troubleshooting Office Solution Deployment for more information.

Creating an MSI with Installshield

I have followed the following guide to try and create an MSI to deploy a VSTO add in for Outlook. https://msdn.microsoft.com/en-us/library/cc442767.aspx?f=255&MSPPError=-2147217396
I have carefully followed this guide on two occasions, ensuring in particular that I placed the registry keys in every place I can imagine they would be need to be in order to be detected.
The MSI is created successfully and installs successfully also, the problem is that when I run Outlook after the MSI is installed, Outlook does not recognize the Add In and load it.
If I use Click once to install the add in it is recognized by outlook without any issue. The problem with that is that we want to install the application silently using SCCM and clickonce cannot be deployed silently.
What could possibly be going wrong?
The issue in this case, was that the guides code for installing the prerequisite "Visual Studio 2010 Tools for Office Runtime" did not work properly and the prerequisite was not installed.
Any user that needs to run the add in will need the VSTO tools from this link installed
https://www.microsoft.com/en-GB/download/details.aspx?id=48217
Hopefully this will be of some help to anyone else
EDIT: For anyone in the UK - The registry entry "LoadBehavior" must be spelled exactly as it appears here. I used the UK spelling "LoadBehaviour" and it was the sole reason my install was not successful. I was held back for several days due to this.

How to develop and run app for office 2013?

I want to develop some app for office 2013. my problem is when i searched for microsoft developer tools office 2013 i find only that link OfficeDevToolsForVS2012 . That link is all over the blogs even on microsoft site msdn.microsoft . The downloaded file run Web Platform API but it tells me that it can't find that product(i don't know how even i get it from microsoft link). So i want to know how to develop app for office using vs2012.
UPDATE**:
I found some exe file called officetools_bundle.exe that installed the required tools but when i run anything even the online samples i get this error
Unable to load one or more of the requested types. Retrieve the LoaderExceptions property for more information.
any help.
This issue is solved not, but i still don't know what's the reason behind it.
All i did is i installed fresh Windows 7 64bit on my machine and then every thing is working like charm.