简体   繁体   中英

C# Windows Application Deployment

I developed a windows application using C# that has a database. The database is attached to my local SQL Server Management Studio. Now, I want to deploy my application (C# + database) so that it can be simply installed on other computers using an installer (setup file). I'm so new in this field. Please guide me that what steps I should follow to do this. Thank you.

Follow these,

1) First get some idea on how to create MSI within Installer Class Read

2) Create a command prompt app which should have the logic to create a Database in local SQL server. Check my post here

3) Pack the command prompt exe with the MSI package.

4) Within the insatller class's Install() method write logic to execute the command prompt exe.

There are few things to consider before going for deployment.

  1. Do you have a centralized application? Meaning do you want to host your database on server or you want to deploy on each users machine.If you want it to be centralized then how are you going to access the database. Does your current structure supports it? like are you using SOA to access db or anything else?

  2. If you have decided that you want to deploy your database along with your application on your client machine then you will have to deploy your database along with your setup. You can read a tutorial here on how to achieve this.

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM