Hi Guys, I've developed a c# application using MS Visual studio 2005. After finilizing developing the application, I want to deploy the application so that i can install it on the user PC. Can anyone tell me how to do that.
Right click on your solution,
select add new project,
select other project types
select setup and deployment
then pick what you want probably a setup project, do some configuration to set the version number, owner etc then build the solution. this will create an .msi file for you.
Alternatively, you can use OneClick. Select Publish <project name> under the "Build" menu. Follow the wizard. Now you have a project easily deployed from a network share, cdrom, or website.
I've done all that. But when I tried to install it on the user PC the installation intrrupts and displays the following message.
"Unable to install or run the application. The application requires that assembly CrystalDecision s.CrystalReport s.Engine Version 10.2.3600.0 be installed in Global Assembly Cache (GAC) first."
After adding all the required files and images to your setup application, before compiling the application make sure that all the required DLLs other installation files are included ,for this you have use
ProjectProperti es --Prerequisites there you will find some of the common required dlls and framework also check the corresponding check box and select the correct radio button as from current location .
After doing what you guys told me, it installs the application. However, it didn't find the database server. isn't the database incorporated in the setup? I thought the database is included in the exe file. if not, what shall I do to include the database together with the setup?
what database you are using , if it is some thing like .mdb you can include that in your setup itself .but you cannot include Sqlserver or oracle.
you have to go for other alternatives ,any way in your application you will add app.config file for connections to Database, so you have to modify that connection string either manually(not recomended) or programatically which ever you wish.
for now i am changing manually after installing ,but no particular idea how to do it programatically .
Comment