Sign in to follow this  
Hermes

[.net] Setup project

Recommended Posts

Hermes    144
Hi ! I need to know how is it possible to add a function in a .Net setup project that makes some initialization independent of the installed program. To be more exact: I have a program up and running for which i must make a setup but i need to run some SQL scripts during this setup to build and initialize the database. Do you know how to do that ?

Share this post


Link to post
Share on other sites
Toolmaker    967
Most setup packages allow you to execute programs during the install process. You could develop a small "Database Setup Wizard" which will be launched sometime during the setup.

Or write a simple application that pops up as a console. However, showing it as a wizard allows the user to specify a specific SQL server(Assuming you're using an SQL Server instead of Access), and let you give feedback to the user, such as unable to find database server, unable to login, etc.

Toolmaker

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this