|
KristianG
Posts: 39
Joined: 2011-11-03
|
Hi,
I'm working on creating a ribbon for Word and Excel, the add-in got successfully register using add-in-express version 8.3.4393. But the problem is the add-in is showing on excel 2016 but not on word 2016.
I have troubleshoot this problem, and find the add-in on Active Applications Add-Ins.
What I'm doing wrong in all this process? Please respond with possible suggestion.
Thank You |
|
Posted 09 Nov, 2016 07:04:42
|
|
Top
|
|
Andrei Smolin
Add-in Express team
Posts: 18821
Joined: 2006-05-11
|
Hello Kristian,
If the add-in is listed under the Active Application Addins header, this means it is loaded. The reason why it doesn't show the Ribbon in the host application's UI lies in the add-in itself. For instance, this may occur if you haven't specified the Ribbon components to be displayed in the given Ribbon. Check the Ribbons property: does it contain the WordDocument ribbon?
Andrei Smolin
Add-in Express Team Leader |
|
Posted 09 Nov, 2016 08:53:22
|
|
Top
|
|
KristianG
Posts: 39
Joined: 2011-11-03
|
The ribbon was being shown till a day or two ago when I removed the add-in from word by going to file->Options->Addins->Com Addins->Remove.
Once I did that, even if I register the add-in after that, the ribbon menu is not shown. The same happened to another of my colleagues here and he uninstalled and then cleaned the registry and then installed the add-in again and it somehow started working.
Can you please tell me if there is some cleanup that I need to do. :-)
BTW. I have tried to uninstall and install Office as well, but not worked for this Add-in. Although, it is working fine for other add-ins... |
|
Posted 09 Nov, 2016 22:53:18
|
|
Top
|
|
Andrei Smolin
Add-in Express team
Posts: 18821
Joined: 2006-05-11
|
Hello Kristian,
Check the Ribbons property: does it contain the WordDocument ribbon?
Does your add-in generates the Ribbon XML at all? Could you please check e.XML in the OnRibbonBeforeCreate event of the add-in module?
Andrei Smolin
Add-in Express Team Leader |
|
Posted 10 Nov, 2016 03:10:12
|
|
Top
|
|
KristianG
Posts: 39
Joined: 2011-11-03
|
Hi Andrei,
BTW i tried to register my Add-in form Visual Studio option to register. and the Add-in got registered successfully and it is working fine for all user.
And if I create a new setup application using Visual Studio Setup Project and install the setup, same Add-In got registered successfully and works fine.
But if I remove PostBuildEvent even from Visual Studios setup project the add-in is not showing up.
And if I add PostBuildEvent to my Wix Setup Project It gives me a build error (see image).
i.is.cc/2vLHHj4j.png
and here is the image of build error:
i.is.cc/2vLNG286.png
Hope you got my point, looking forward to see your kind response :) |
|
Posted 11 Nov, 2016 02:17:31
|
|
Top
|
|
Andrei Smolin
Add-in Express team
Posts: 18821
Joined: 2006-05-11
|
The PostBuildEvent property only exists in Visual Studio Installer projects. Make sure that you follow the steps described in the manual; see the PDF file in the folder {Add-in Express}\Docs on your development PC. Choose one of the sections below:
- Deploying a per-user Office extension via an MSI installer
- Deploying a per-machine Office extension via an MSI installer
Andrei Smolin
Add-in Express Team Leader |
|
Posted 11 Nov, 2016 05:33:41
|
|
Top
|
|
KristianG
Posts: 39
Joined: 2011-11-03
|
Hi Andrei,
I did followed the steps written in this document. Add-In is registered successfully if I do it manually from visual studio, but not when I run MSI file of wix setup.
Here is what i got in log file on registration:
Add-in Express Registrator Log File: 11/11/2016 16:10:42
Installation directory: C:WindowsInstaller
Registrator version: 8.0.4330.0
Operating System: Microsoft Enterprise Edition (build 9200), 64-bit
Process Owner: Administrator
Command Line: "C:WindowsInstallerMSI2F66.tmp" /install="C:Program Files (x86)Move LauncherMoveUrl.dll" /privileges=admin
Run 'As Administrator': No
Process Elevated: No
Integrity Level: Medium
UAC (User Account Control): On
--------------------------------------------------------------
16:10:42 0412 Starting the add-in registration process.
16:10:42 0412 Loading mscoree.dll
16:10:42 0412 Success.
16:10:42 0412 .NET Framework installation directory:
16:10:42 0412 The latest version of .NET Framework: 'v4.0.30319'
16:10:42 0412 Loading CLR: v4.0.30319.
16:10:42 0412 Calling CLRCreateInstance method.
16:10:42 0412 Success.
16:10:42 0412 Calling GetRuntime method.
16:10:42 0412 Success.
16:10:42 0412 Checking if the hosting API of .NET Framework v4.0 beta is installed.
16:10:42 0412 The hosting API is up to date.
16:10:42 0412 Calling GetInterface method for the CorRuntimeHost interface.
16:10:42 0412 Success.
16:10:42 0412 Starting CLR...
16:10:42 0412 Success.
16:10:42 0412 Getting the CLR version.
16:10:42 0412 The CLR v4.0.30319 has been initialized successfully.
16:10:42 0412 Creating a new domain setup.
16:10:42 0412 Success.
16:10:42 0412 The 'shadow copy' is disabled.
16:10:42 0412 Creating a new application domain.
16:10:42 0412 Success.
16:10:42 0412 Getting the base directory for the domain.
16:10:42 0412 Success. The directory is 'C:Program Files (x86)Move Launcher'.
16:10:42 0412 Searching for the Add-in Express core library.
16:10:42 0412 Success. The 'AddinExpress.MSO.2005.dll' file is found.
16:10:42 0412 Creating an instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
16:10:42 0412 Assembly identity is 'AddinExpress.MSO.2005'.
16:10:42 0412 Success.
16:10:42 0412 Unwrapping the instance of the 'AddinExpress.Deployment.ADXRegistrator' class.
16:10:42 0412 Success.
16:10:42 0412 Calling the managed registration procedure (DISPID = 1610743823).
16:10:42 0412 Managed Error:
Date and Time: 11/11/2016 4:10:42 PM
Machine Name:
IP Address:
Current User:
Application Domain: C:Program Files (x86)Move Launcher
Assembly Codebase: file:///C:/Windows/assembly/GAC_MSIL/AddinExpress.MSO.2005/8.3.4393.0__4416dd98f0861965/AddinExpress.MSO.2005.dll
Assembly Full Name: AddinExpress.MSO.2005, Version=8.3.4393.0, Culture=neutral, PublicKeyToken=4416dd98f0861965
Assembly Version: 8.3.4393.0
Exception Source: AddinExpress.MSO.2005
Exception Type: System.ComponentModel.Win32Exception
Exception Message: Access is denied
Exception Target Site: CreateSubKey
---- Stack Trace ----
AddinExpress.Projects.Common.ADXRegistryKey.CreateSubKey(subKeyName As String)
AddinExpress.MSO.2005.dll: N 0132 (0x84) IL
AddinExpress.Projects.Common.Utilities.RegisterManagedType(rootKey As ADXRegistryKey, type As Type, strAsmName As String, strAsmVersion As String, strAsmCodeBase As String, strRuntimeVersion As String, targetHive As ADXTargetRegistryHive, createVersionKey As Boolean)
AddinExpress.MSO.2005.dll: N 0082 (0x52) IL
AddinExpress.Projects.Common.Utilities.RegisterType(t As Type, createVersionKey As Boolean, allUsers As Boolean, targetHive As ADXTargetRegistryHive, callRegMethod As Boolean)
AddinExpress.MSO.2005.dll: N 0206 (0xCE) IL
AddinExpress.Projects.Common.Utilities.RegisterAssembly(assembly As Assembly, createVersionKey As Boolean, allUsers As Boolean, targetHive As ADXTargetRegistryHive, callRegMethod As Boolean)
AddinExpress.MSO.2005.dll: N 0040 (0x28) IL
AddinExpress.Deployment.AddinDomainAdapter.RegisterForComInterop(register As Boolean, dllType As String, dllPath As String, showExceptions As Boolean)
AddinExpress.MSO.2005.dll: N 0205 (0xCD) IL
AddinExpress.Deployment.ADXRegistrator.RegisterAssembly(commandLine As String)
AddinExpress.MSO.2005.dll: N 0705 (0x2C1) IL
16:10:42 0412 The add-in registration process is completed with HRESULT = -2147467259.
|
|
Posted 11 Nov, 2016 06:15:50
|
|
Top
|
|
Andrei Smolin
Add-in Express team
Posts: 18821
Joined: 2006-05-11
|
KristianG writes:
I did followed the steps written in this document.
Do you develop a per-machine or per-user add-in? The log file describes starting an installer of a per-machine add-in with permissions of a standard user.
Andrei Smolin
Add-in Express Team Leader |
|
Posted 11 Nov, 2016 07:10:42
|
|
Top
|
|
KristianG
Posts: 39
Joined: 2011-11-03
|
Hi Andrei,
Does your add-in generates the Ribbon XML at all? Could you please check e.XML in the OnRibbonBeforeCreate event of the add-in module?
How do i find the xml is generating or not ? |
|
Posted 24 Nov, 2016 02:42:29
|
|
Top
|
|
Andrei Smolin
Add-in Express team
Posts: 18821
Joined: 2006-05-11
|
Hello Kristian,
e.Xml in the OnRibbonBeforeCreate event should return something resembling this XML:
<?xml version="1.0" encoding="utf-8" ?>
<customUI xmlns="http://schemas.microsoft.com/office/2006/01/customui">
<ribbon>
<tabs>
<tab id="TabAddIns">
<group id="MyGroup" label="My Group">
<toggleButton id="myButton1" size="large" label="My Button" screentip="My Button Screentip" onAction="OnMyButton1" imageMso="HappyFace" />
</group>
</tab>
</tabs>
</ribbon>
</customUI>
Andrei Smolin
Add-in Express Team Leader |
|
Posted 24 Nov, 2016 03:01:33
|
|
Top
|
|