Click here to Skip to main content
12,552,216 members (46,279 online)
Rate this:
Please Sign up or sign in to vote.
See more: C# SQL-Server
Hello friends
I have a project in c#,with DB in SQL server 2008,with .NET framwork 4.0.
Now I want to create setup file from my project to install on another computers. How can i do that and attach DB and .NET Framwork to setup project?

Is it possible to create single setup file witch contains all of dependencies to work proporly?

Please help
Posted 29-Jul-12 1:31am
Updated 29-Jul-12 1:33am
Wes Aday 29-Jul-12 8:33am
Yes it's possible but not advisable. What if they already have SQL Server installed? Are you going to go ahead and try and install it yourself through a setup? What happens when they uninstall your app, SQL Server goes with it and breaks other apps. Let the user deal with prerequisites.
MP59 29-Jul-12 16:31pm
my errors:
1- target computer requests .NET framwork 4.0
2- db1.mdf file is next to setup file,so user will be able to delete it!!!
3-target computer is not able to find database file

so how can i solve these problems?

1 solution

This content, along with any associated source code and files, is licensed under The Code Project Open License (CPOL)

  Print Answers RSS
Top Experts
Last 24hrsThis month

Advertise | Privacy | Mobile
Web02 | 2.8.161021.1 | Last Updated 29 Jul 2012
Copyright © CodeProject, 1999-2016
All Rights Reserved. Terms of Service
Layout: fixed | fluid

CodeProject, 503-250 Ferrand Drive Toronto Ontario, M3C 3G8 Canada +1 416-849-8900 x 100