Update KB908002 not installing during word-addin setup  
Author Message
Daveskis





PostPosted: Visual Studio Tools for Office, Update KB908002 not installing during word-addin setup Top

Hello devs, Im working on a setup project to install an office addin. Im using VS2005 and .NET 2.0. Im trying to get the Shared Add-in Support Update for the Microsoft .NET Framework 2.0 (KB908002) components (lockbackRegKey.msi, office2003-kb907417sfxcab-ENU.exe, extensibilityMSM.msi) to install along with my setup project.

I have installed the KB908002 update on my development machine and included it as a prerequisite in my setup project in order to have these components installed along with my solution. When I run my setup.exe file I get the dialog asking if I want to install the shared addin components on to the machine but when I press install I receive the following error:

The following package files could not be found:
C:\Documents and Settings\Administrator\Desktop\KB908002\extensibilityMSM.msi
C:\Documents and Settings\Administrator\Desktop\KB908002\lockbackRegKey.msi
C:\Documents and Settings\Administrator\Desktop\KB908002\office2003-kb907417sfxcab-ENU.exe

See the setup log file located at 'C:\DOCUME~1\ADMINI~1\LOCALS~1\Temp\VSDB9.tmp\install.log' for more information.

Im not really sure why it is looking to the desktop for these files. I was under the assumption these files would have been included in my setup project and be run from there. I am also testing this installer on a Virtual Machine with XP Pro SP2 and Office 2003. Any help would he very much appreciated.



Visual Studio Tools for Office33  
 
 
Martin Sawicki - MSFT





PostPosted: Visual Studio Tools for Office, Update KB908002 not installing during word-addin setup Top

This is odd.

Have you verified that VS succesfully included the KB908002 folder in your project's deployment folder (That is the folder where your project's setup.exe gets put into.) The setup.exe built by VS should look inside that folder when executing.


 
 
Daveskis





PostPosted: Visual Studio Tools for Office, Update KB908002 not installing during word-addin setup Top

Yes the KB908002 folder is in my project deployment folder and when I run the setup.exe from that location with the folder it installs fine. However I want to be able to distribute my setup.exe without having to distribute the KB908002 folder along with it as that would defeat the purpose of having one setup file that installs my addin and all the pre-requisites it requires. Are you saying that I need to distribute this folder along with my setup.exe
 
 
Martin Sawicki - MSFT





PostPosted: Visual Studio Tools for Office, Update KB908002 not installing during word-addin setup Top

Yes, that's how the bootstrapper feature in VS works - you need to distribute the whole folder, because all that setup.exe does is call the KB's MSIs that it expects in a fixed location relative to its own location in the folder. And then it calls your project's MSI.

Not sure I understand why this is a problem though. Your setup.exe still needs to call your MSI that's a separate file in that folder as well, so it's not like you can just distribute setup.exe alone and expect that to work (even without KB908002). Am I missing something


 
 
Daveskis





PostPosted: Visual Studio Tools for Office, Update KB908002 not installing during word-addin setup Top

Thanks for the reply. Since the documentation for this update was a little scarce it led me to believe that it would install the necessary fixes without having to actually distribute those files to the deployment machine. It's not a problem at all. I was just hoping to get it all done with one distributable file for convenience. Guess I'll have to wait until this fix is implemented in a service pack :). Thanks a bunch.


 
 
Martin Sawicki - MSFT





PostPosted: Visual Studio Tools for Office, Update KB908002 not installing during word-addin setup Top

Sorry you can't get it to work in the way you'd like.

To be honest though, you might not see much of an improvement in an Sp to fix this... This is a surpisingly tricky issue to fix actually. It's been considered for an upcoming Sp1, but we couldn't find a better solution than what the KB is already providing.

The problem is that the underlying issues that the KB is addressing are issues in pieces of software that aren't easily fixable to start with, and if they're not all fixed at the same time, then that could cause other problems. One problem is in the CLR (the .Net framework) itself - that's what the lockbackRegkey.msi is fixing. Another one is in Office2003 - that's what the otkloadr update is fixing. And another one is in VS's shared addins features - and that's what the extensibilityMSM.msi is for.

The surest way to get them all fixed at the same time when your addin is installed is by deploying the three fixes via the bootstrapper along with your addin.

We found that the best we could theoretically do here is put KB908002 into VS directly, so that you wouldn't have to download it. But that's pretty much where the improvement would have to end. It'd still work the same way as the KB does - which does not solve your single-file deployment problem.

Office addin development should get much better in Orcas though, and even long before then, with Cypress. Check out our Cypress planning: http://blogs.msdn.com/vsto2/archive/2006/06/08/622538.aspx. For one thing, VSTO Cypress add-ins will not have any of the problems that KB908002 is meant for.

So instead of waiting for a future SP which might or might not improve much in this area, I'd recommend waiting for Cypress instead and building Office add-ins on top of it, rather than IDTExtensibility2.

Hope this helps