I have written an application that uses a SQL Server database.
I've been using SQL Server Express on my local PC. The app works fine on my PC, so now I'm trying to distribute it.
Most of our customers will be fine with Express on their local machines.
Some of our larger customers may have several employees accessing the same database, so it will need to reside on a server.
How can I make my installer do the following:
- Ask the user if they want to use a local or network database.
- Search the PC/network for SQLServer running services and allow them to select one.
- If not present, install SQL Server Express on their local, or networked machine.
I've read about "custom actions", but they only run after an app's installation has finished, but if I've set SQL Server Express as a "prerequisite", then it gets automatically installed before my custom action gets a chance to run.
I'm using VS2010 (employer requirement), C# / .Net 3.5
Any specific or general advice is appreciated. Am I even using the right approach here?