Click here to Skip to main content
13,052,669 members (64,078 online)
Rate this:
Please Sign up or sign in to vote.
See more:
Hi frnds,
I have completed my .net windows application using C#(framework 3.5). Its small application with crystal reports,MS sql server 2008.I need to convert my application to .exe and after i need to install that application in some other Computer.I didnt installed .net framework,ms sql and crystal report.What are support files to add for run my application in other computer.
Posted 2-Nov-12 1:53am
Updated 2-Nov-12 1:56am

1 solution

Rate this: bad
Please Sign up or sign in to vote.

Solution 1

Converting to EXE is easy - it's called a build is all, but you need to select "Release" on the menu bar where it says "Debug" at present.
The other requirements are more problematic.
You can't necessarily just copy you exe file from one machine to another and expect it to work - there is a good chance it won't. The best thing to do is to create a Setup and Deployment project as part of your Solution, and that will create a setup application which will install the necessary components to run your exe.
If you have a look at Google it will help you to do that: Setup and Deployment project with crystal reports[^]

SQL server is another problem altogether! You should not include SQL Server in your installation. There are a couple of reasons:
0) You can only distribute SQL Server Express for copyright reasons - not SQL Server full version.
1) They may already have SQL Server installed on the network. If so, then they will presumably want to use that version.
2) If they do have SQL server installed and you start proliferating SQL server Express instances, you are going to annoy the heck out of the database administrator...
3) A single site installation of SQl Server is a lot more likely to be backed up than a number of scattered version under user control.
4) Sql server is quite complex for a "normal" user to install and administer - it is not a good idea!
5) It will destroy the primary advantage of using Sql Server over SqlCE or SQLite - multiuser access. If everyone installs their own copy of SQL server, then you will have multiple copies of your database, each used by a single person. This will cause some confusion, and (depending on how you wrote the original database) may take some considerable effort to combine into a single instance when the problem is realized.
CIDev 2-Nov-12 9:14am
Very good answer, +5
itsureshuk 2-Nov-12 9:21am
hm thnks,I go through the links i will getback if have any doutes

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
Web01 | 2.8.170713.1 | Last Updated 2 Nov 2012
Copyright © CodeProject, 1999-2017
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