Click here to Skip to main content
15,900,108 members
Please Sign up or sign in to vote.
0.00/5 (No votes)
See more:
how to make setup .exe file of my project which is in c# winform,so that it can run on any pc.

i m trying to run on run but its not responsing,its only running on my pc...how to attch sql databs with setup.exe
Posted

1 solution

Creating a "setup.exe" file is called Deployment. This is not something you can (or need to) do by yourself. There are tools for doing it, for example: Install Shield[^].

If you are using Visual Studio, there are built in tools to create your installation pack. Create a new project, and select "Other Project Types", and then "Setup and Deployment". You will find 2 types available:

InstallShield LE

and

Visual Studio Installer

Chose the 2nd one (unless you bought Install Shield).

Then following the Wizard's instructions.
Basically, you will be asked to define what will be copied to 3 main places at the end user's PC:
1. Application Folder, which is the Program Files folder - the files that will be placed in a dedicated folder under "Program Files".
2. User's Desktop, which is used for a shortcut for your product
3. User's Program's menu, which is used for the Start menu, or similar.



Please note that you can include any file needed by the end user, including databases of course. Files that are required by the installation pack are called "dependencies" but there are additional files you may add, including databases, user manuals, etc.
 
Share this answer
 

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



CodeProject, 20 Bay Street, 11th Floor Toronto, Ontario, Canada M5J 2N8 +1 (416) 849-8900