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:
Choose Release for the Solution Configure drop-down list, displayed on the toolbar. The drop-down list most likely displays Debug currently.
Click Build
Rebuild Solution to create ...
Become an O’Reilly member and get unlimited access to this title plus top books and audiobooks from O’Reilly and nearly 200 top publishers, thousands of courses curated by job role, 150+ live events each month,
and much more.
Read now
Unlock full access