Home » SQL ServerRSS

addin.vsto is not launching after installing Word 2007 Add-in

Hi,

I have developed an addin for Word 2007. I have followed the walkthroughs

Deploying a Visual Studio Tools for the Office System 3.0 Solution for the 2007 Microsoft Office System Using Windows Installer (Part 1 of 2)

Deploying a Visual Studio Tools for the Office System 3.0 Solution for the 2007 Microsoft Office System Using Windows Installer (Part 2 of 2)

and developed the setup project.After that I installed the add-in on a client machine, everything went well, but after launching the Word application, the wordaddin.vsto application did not launch as said in the example in the second walkthrough for Excel add-in.

So, I have downloaded the VSTO 3.0 Runtime samples from

http://code.msdn.microsoft.com/VSTO3MSI

and created a setup for ExcelAddin given in the Samples.  I installed this ExcelAddin and it installed well and when the Excel application is opened the ExcelAddin.vsto is launched and installed the addin.

Please suggest me where I went wrong.

 

Thanks in advance,

Surya.

 

 

 

 

22 Answers Found

 

Answer 1

make sure u r client got admin privileage.

 

Answer 2

Hi tukuna,

Yes, the client has got admin privilege.  The client computer (that I have tested) is another computer other than development computer in our office.

I have tested the Excel Addin setup by building the project given in the vsto  3.0 Runtime samples directory. It is installed successfully. When I opened the Excel 2007 application, the ExcelAddin.vsto file launched automatically and asked for installation.

However, the word  Addin that I developed in the similar way as Excel Addin is installed, but when I open Word 2007 application, the WordAddin.vsto file is not being launched automatically.

Thanks,

Surya.

 

Answer 3

Hi Surya,

what is the OS  u r client using,If its Vista,Win7 u need to fallow some steps to overcome the security.

Can you provide the error details.and also make sure value are present in registry as defined in the above documents

HKEY_CURRENT_USER\Software\Microsoft\Office\Excel\Addins\SampleCompany.ExcelAddIn
LoadBehavior =3

 Thanks,

Patro

 

Answer 4

Hi Surya

I'm not sure that you're not mixing up the two types of deployment: .msi vs. ClickOnce. If I'm not mistaken, a *.vsto file is only generated for a ClickOnce type of deployment, and can only work with ClickOnce.

The links to which you point describe how to create a setup (.msi) type of deployment, which is more complex, but also provides more flexibility.

You need to use one, or the other.

If a *.msi type of setup installs correctly, the Add-in should be registered and Word should load it automatically (and transparently) when Word is launched. There should be no need of a *.vsto file.

 

Answer 5

Hi Cindy,

 

If *.vsto is not required for deployment, then what should be value for the Registry Entry "Manifest" (I have given the .vsto file's path as value "[TARGETDIR]Word2007AddIn.vsto|vstolocal").

Do we not need to package the *.vsto file in the Setup project?

What should we include in the Security Policy? Currently, I am giving the <RSAKeyValue> found in the *.vsto file?

 

Thank you,

Surya.

 

Answer 6

Hi Surya

My mistake - I misread something in your original message. Please ignore my reply!

 

Answer 7

But I did not get the solution for the issue. All the files 'WordAddin.dll', 'WordAddin.dll.manifest', ''WordAddin.vsto' are installed in a location and the *.vsto is added in the inclusion list.

The same process is working with ExcelAddin. However, for the word  after launching  Word Application, the Windows Customization Installer is not launching.

Even the Word Addin is not appearing in the list 'Active Application Add-ins' of Word 2007 application.

Can anybody help on this?

 

Thanks,

Surya

 

Answer 8

What do you see as a LoadBehavior value in HKCU\Software\Microsoft\Office\Excel\Addins\<AddIn Name>

Do you have office 2007 PIA's installed? What about VSTO Runtime 3.0?

Can you please run VSTO Troubleshooter and then check if all the pre-requisites are available on the machine?

 To troubleshoot the issue further can you please set VSTO_SUPPRESSDISPLAYALERTS value to 0. For more details follow MSDN article

Debugging in Application-Level Projects

http://msdn.microsoft.com/en-us/library/ms269003.aspx

 


Please remember to click “Mark as Answer” on the post that helps you, and to click “Unmark as Answer” if a marked post does not actually answer your question. This can be beneficial to other community members reading the thread.
 

Answer 9

Hi Sidharth,

 

The value of the LoadBehavior is 3 in the registy entry for the addin.

All the prerequisites are correctly installed. If i click on the "addin.vsto"  file manually, the addin  is being installed. But it is not being done programatically as said in this walkthrough .

The same Excel Addin mentioned in the above walkthrough works well and is being installed successfully.

But, the Word Addin I developed with all the similar steps mentioned in the walkthrough, its not being installed. First of all, on opening the Word 2007 application, the dialog 'Microsoft Office Customization Installer' is not being launched automatically as shown in the walkthrough.

I want to know, if any thing more is to be done in the Setup Project for installing  Word Addin.

 

Thanks,

Surya.

 

Answer 10

Did you run VSTO Troubleshooter? What were the results.

Did you add VSTO_SUPPRESSDISPLAYALERTS environment variable?

 

 

Answer 11

Yes, I have run VSTO Troubleshooter and please check the status here - Office2007Solution_Prerequisites_Installed .

The LoadBehaviour value is 3. I have added VSTO_SUPPRESSDISPLAYALERTS environment variable and set to 0. But no error message is shown when Word 2007 is opened.

 

Thanks,

Surya.

 

Answer 12

Are you deploying the add-in  to HKCU\Software\ or HKLM\Software\ ??

 

 

Answer 13

I am deploying addin toHKCU\Software\
 

Answer 14

what version of Visual Studio are you using to develop your add-in  and setup project?  as others have asked, are you deploying to HKLM or HKCU?  is the test computer 32-bit or 64-bit?

if the vsto  3.0 MSI deployment sample is working, that computer already has all the prerequisites installed and the VSTO troubleshooter won't really tell you much.

if you are using VS2008 SP1, can you look in the event viewer and see if there are any exception messages logged by the VSTO runtime. 

m.

 

 

Answer 15

Hi Mary,

I am using Visual Studio 2008 (Not Service Pack 1) to develop add-in  and setup.

I have deployed to HKCU and not HKLM. The test computer is 32-bit.

All the prerequisites are installed. Even the MSI installer installed the add-in files and registy entries successfully.

The only problem is the Microsoft Office Customization Installer Popup Window (that installs add-in into word) is not launching  automatically after opening word  2007 (as mentioned in the Walkthrough Deploying a Visual Studio Tools for the Office System 3.0 Solution for the 2007 Microsoft Office System Using Windows Installer (Part 1 of 2) ).

Even I have used the use the inclusion list API provided by Visual Studio Tools for Office to trust the add-in mentioned in the walkthrough Deploying a Visual Studio Tools for the Office System 3.0 Solution for the 2007 Microsoft Office System Using Windows Installer (Part 2 of 2)

For testing, I have developed an Excel add-in in the similar mentioned in the above two walkthroughs. It is working fine. But, the Word add-in developed using same method is not being installed.

First of all, I want to understand why the Microsoft Office Customization Installer Popup Window is launching in Excel and not launching for Word automatically. Please confirm this.

Also if you have a sample walkthrough for installing  Word 2007 add-in successfully, please provide.

Thank you,

Surya

 

Answer 16

Hi Surya,

I have created a wordaddin following the exact steps as mentioned ,it works perfectly for me.

u can validate the registry entry as shown below

Registry  path-  HKCU\Software\Microsoft\Office\Word\Addins\MywordAddin

 FriendlyName,Description of type String value MywordAddin
 LoadBehavior of type DWORD value 3
 Manifest of type String value [TARGETDIR]MywordAddin.vsto|vstolocal
Make sure u have included .dll.manifest and .vsto files
Also can u check Event log for more on  error details
Thanks,

Patro

 

Answer 17

Hi Patro,

Does the Microsoft Office Customization Installer popup window is being launched automatically after opening word  application on your computer?

I want to clearly say that all the things registry entries, prerequisites are the add-in  files .dll, .dll.manifest, .vsto are perfectly installed on my computer. Even the registry entry for including the add-in in the inclusion list is perfectly added.

The only problem is the Microsoft Office Customization Installer popup window is not being launched automatically after opening word application. I have to manually select the .vsto file to install the add-in.

But I cannot provide for a client an installation file that he has to install manually.

Thank you,

Praveen

 

Answer 18

just by chance

Try to check disabled add-in  in MS Word options

1, Office button

2, Word options

3, Add-Ins

4, in the combobox bellow select "Disabled items" and then the click on the button "Go"

5, check if there is any

 

Answer 19

The only problem is the Microsoft Office Customization Installer Popup Window (that installs add-in  into word) is not launching  automatically after opening word  2007 (as mentioned in the Walkthrough Deploying a Visual Studio Tools for the Office System 3.0 Solution for the 2007 Microsoft Office System Using Windows Installer (Part 1 of 2) ).


Surya,

the Microsoft Office Customization Installer dialog box appears to the end user if the certificate used to sign the application and deployment manifests are not already trusted on the end user's computer. the inclusion list APIs grants this pre-trust to the certificate.

so if you are using the inclusion list APIs and the dialog box is still appearing, the inclusion list APIs are not being used correctly. if you are using the inclusion list APIs and the dialog box is NOT appearing, the inclusion list APIs are being used correctly.

First of all, I want to understand why the Microsoft Office Customization Installer Popup Window is launching in Excel and not launching for Word automatically. Please confirm this.

every time you create a new Office solution, such as a different Excel or Word add-in, Visual Studio generates a new temporary certificate (.pfx).  each certificate has a different thumbprint.  if you are using the exact same inclusion list code for both the Excel add-in and Word add-in, you are only pre-trusting one of the certificates and the other one still remains untrusted - which is why you only see the Microsoft Office Customization Installer dialog box once.

if you want the dialog box to appear for both Excel and Word, just remove the InclusionListCustomAction from your setup projects and simplify your deployment.

m.

 

Answer 20

The only difference between deploying an Excel add-in  and a Word add-in is the registry key that you add (HKCU\Software\Microsoft\Office\Word\Addins\). if you can get your Excel add-in to deploy correctly, repeat the same steps for a Word add-in.

m.

 

Answer 21

Thank you Mary. I have verified all the project thoroughly each and every step.

I found that I have done a mistake in registry entry that I misspelled the entry 'LoadBehavior' as 'LoadBehaviou r'. Due to this the Word application is unable to load the add-in.

I thank all who answered me. I learnt a lot from all of you.

Thank you,

Surya.

 

Answer 22

I see a problem doing things this way (add entries manually into registry). Let's say we create a sample Addin (ISAddin). Inorder to deply to my client system, I prepare a MSI and make the entries in registry

HKEY_CURRENT_USER\Software\Microsoft\Office\Word\Addins\ISAddin

CommandLineSafe - 3

Description - ISAddin

FriendlyName - ISAddin

LoadBehavior - 3

Manifest - C:\Program Files(x86).....\ISAddin.vsto

All goes well and the user can see the ribbon(I created in the VSTO project) and menus in it. But then if there are any calls in my implementation like the following -

IsolatedStorageFile
 isf = IsolatedStorageFile
.GetUserStoreForDomain();

, API keeps failing...I am not sure why. Try the same with ClickOnce installation, it works like Gem. Can some tell me if I am missing something.

 
 
 

<< Previous      Next >>


Microsoft   |   Windows   |   Visual Studio   |   Follow us on Twitter