Prompt user with the default project installer of visual studio?
I've a c# project, and I would like to kn开发者_JAVA百科ow if the default free installer, provided with visual studio 2010 allows us to prompt some information to configure the application.
if yes, how?
if no, what can you advice me?
Thank you very much
There are several links you should probably explore thoroughly:
User Interface Management in Deployment
- The User Interface Editor can be used to specify and set properties for predefined dialog boxes that are displayed during installation on the target computer.
Visual Studio Setup project FAQ
Setup and Deployment Projects
These will give you a pretty good overview on how to create setup projects, which ones to use, and how to customize your User Interface, once you have a setup project.
This article from Rob Aquila's Blog recently helped me out with this exact question. It runs you through the steps required to make your deployment package prompt the user for input, and then modify your app.config with those values during installation.
One pitfall from my experience came in attempting to configure custom sections in the app.config. Turns out I couldn't use the ConfigurationSection
implementation that was already created for the application, due to assembly binding issues that I couldn't resolve. I ended up doing that using LINQ to XML in a custom Installer class.
However, modifying the <appSettings>
settings is fairly straightforward.
精彩评论