views:

17

answers:

2

All,

We are using ClickOnce to deploy our WPF application and have the need to include the 2007 Microsoft Office Add-in: Microsoft Save as PDF or XPS.

Is there a way to include this exe file in the ClickOnce deployment?

Thank you,

A: 

You could try adding the .exe to the deployment (see here) and run check on program startup if it's installed, and run the process if not.

SnOrfus
A: 

You need to get the install package for that. Then you can create a prerequisite package for it and deploy it as a prerequisite to your ClickOnce deployment.

To create the prerequisite package, you can use the Bootstrapper Manifest Generator, which is here.

You then copy this package to the a folder where the VS prerequisites are found. If you are using VS2010, that location is here:

C:\Program Files\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages

If you are using VS2008, it's here:

C:\Program Files\Microsoft SDKs\Windows\v6.0A\Bootstrapper\Packages

This post can be helpful explaining how to use the BMG. Be sure to add an Error Code of 0 for success, or it will always tell you the install failed.

RobinDotNet