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.
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:
Choose Release for the Solution Configure drop-down list, displayed on the toolbar. The drop-down list most likely displays Debug currently.
Click BuildRebuild Solution to create ...