13.4. Distributing InfoPath .NET applications

While distributing .NET applications with InfoPath forms is not any different from distributing other .NET applications, as with those types of projects you will want to make sure that you build your project in release mode. There are a couple of options you can use to distribute your application.

The first option is simply to copy the objects in the Bin folder to a folder you want to use. If you are just storing the application on a LAN this is a good option. The other option is to create a distributable runtime setup program for your application. To do this use the Setup type Visual Studio .NET project.

You can create setup applications for installing from the Web or Windows desktops, creating downloadable .cab files, or merge modules, which work with the Windows installer.

The setup project you will use is a wizard that walks you through specifying the files you need to include, located in the Bin folder of your InfoPath .NET project.

13.4.1.

13.4.1.1. Try It Out: Creating the Setup Distribution Project

For the purpose of this Try It Out, you will be using the InfoPath .NET application that you created in the last exercise. In the project you just created:

  1. Choose Release for the Solution Configure drop-down list, displayed on the toolbar. The drop-down list most likely displays Debug currently.

  2. Click BuildRebuild Solution to create ...

Get Beginning InfoPath™ 2003 now with the O’Reilly learning platform.

O’Reilly members experience books, live events, courses curated by job role, and more from O’Reilly and nearly 200 top publishers.