Solved

c# how to deploy or install software

Posted on 2011-03-15
18
425 Views
Last Modified: 2013-12-17
Hi,

I finish developing my application which has some text file located in the resources project.
My application is simple, it has 4 forms. Is there any tool to give to customer which run
it, and automatically install my application?

Thanks,
JT
0
Comment
Question by:jtran007
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 8
  • 7
  • 2
  • +1
18 Comments
 
LVL 30

Expert Comment

by:anarki_jimbel
ID: 35144019
You need to create a setup project. I believe it woul;d be simple in your case.

Have a look at tutorials (or try to find yourself):
http://www.c-sharpcorner.com/UploadFile/rahul4_saxena/Setup08232007071849AM/Setup.aspx
http://msdn.microsoft.com/en-us/library/k3bb4tfd(v=vs.80).aspx

0
 
LVL 30

Expert Comment

by:anarki_jimbel
ID: 35144034
Also:
http://www.dreamincode.net/forums/topic/58021-deploying-a-c%23-application-visual-studio-setup-project/

Again, it may depend on what VS you're using, 2005, 2008 0r 2010. But the approach nearly same.
0
 
LVL 33

Expert Comment

by:Todd Gerbert
ID: 35144047
If you don't have the professional edition of Visual Studio there are a couple of third-party tools you can use to make an installation package, Installer2Go (http://www.witemsoft.com/togo/) and Advanced Installer (http://www.advancedinstaller.com/) are two that I have used and both have free editions available.

You also can deploy your application with "ClickOnce": http://msdn.microsoft.com/en-us/library/t71a733d%28v=vs.80%29.aspx
0
Forrester Webinar: xMatters Delivers 261% ROI

Guest speaker Dean Davison, Forrester Principal Consultant, explains how a Fortune 500 communication company using xMatters found these results: Achieved a 261% ROI, Experienced $753,280 in net present value benefits over 3 years and Reduced MTTR by 91% for tier 1 incidents.

 
LVL 12

Expert Comment

by:Mohamed Abowarda
ID: 35144088
You need to deploy the application, you can use ClickOnce which is available in Visual Studio:
http://www.kirupa.com/net/clickOnce.htm

You can also use free software:
http://www.jrsoftware.org/isinfo.php
0
 

Author Comment

by:jtran007
ID: 35147315
Hi ,

It said i can't start becaise it already intalled fron differetn sourece?

Regards,
JT
0
 
LVL 33

Expert Comment

by:Todd Gerbert
ID: 35147489
How did you build your deployment package, how are you attempting to install it, and what is the exact error message?
0
 

Author Comment

by:jtran007
ID: 35147555
Hi,
In VS I select publish from project property.

Regards,
JT
0
 
LVL 33

Expert Comment

by:Todd Gerbert
ID: 35147636
What version of Visual Studio, and it is a Windows Forms application right, not an ASP.Net project?
0
 
LVL 33

Expert Comment

by:Todd Gerbert
ID: 35149400
So you went through the Publish Wizard, and your settings match the screen shots below?  And when you ran Setup.exe it didn't prompt you to install? Or trying to run the installed copy you get an error? Can you provide the exact error message?
1.png
2.png
3.png
0
 

Author Comment

by:jtran007
ID: 35155187
Hi,
This is window application.

 publish.docx
0
 

Author Comment

by:jtran007
ID: 35155214
Hi,

Then I just click Publish Now.
I tooke this folder and install on other computer, when I run setup I got the error message:


errorMessage.docx
0
 

Author Comment

by:jtran007
ID: 35155223
Hi,

Since mybridge.bin file is located in the "c:\updatepanel\updatepanel\resources" folder. How do I
specify this folder so that publish can located this file?

Thanks,
JT
0
 
LVL 33

Expert Comment

by:Todd Gerbert
ID: 35156845
You're going to want to read through the documentation for ClickOnce here: http://msdn.microsoft.com/en-us/library/t71a733d(v=VS.100).aspx

You probalby just need to click the "Application Files" button in the Publish window to specify which files are installed with your application and/or specify the "Build Action" for your resource files as "Content". http://msdn.microsoft.com/en-us/library/0c6xyb66(v=VS.100).aspx

Make sure you read the documentation.



Untitled.png
0
 

Author Comment

by:jtran007
ID: 35162445
Hi,

I did as you suggested: for bridge.ico property I set the Build Action to Content. However
when I run setup, I still have the same error as I told you before.

Please advise.
JT
0
 
LVL 33

Expert Comment

by:Todd Gerbert
ID: 35164679
I also suggested you read the instructions. ;)

You also need to re-build your application, and re-run the publish after changing the files' build action.

Also keep in mind that you can't control where files go when they're installed using ClickOnce - that means if you put "Form1.Icon = @"C:\someFolder\resources\form1.ico" in your program it's going to fail when it's installed (because the icon isn't in C:\someFolder\resources, it's in c:\users\jtran\appdata\local\blah\blah\resources") - instead you'd need to write "Form1.Icon = "resources\\form1.ico"

You should accept an answer here, have a read through the documentation, maybe setup a silly test project to experiment with, and ask additional questions - if you need to - as you encounter other problems.

Also see:
How to: Specify Which Files Are Published by ClickOnce (http://msdn.microsoft.com/en-us/library/kzy0fky2.aspx)

How to: Include a Data File in a ClickOnce Application (http://msdn.microsoft.com/en-us/library/6fehc36e.aspx)

Application Files Dialog Box (http://msdn.microsoft.com/en-us/library/xtkkwf3d.aspx)

Accessing Local and Remote Data in ClickOnce Applications (http://msdn.microsoft.com/en-us/library/d8saf4wy.aspx)

ClickOnce Cache Overview (http://msdn.microsoft.com/en-us/library/267k390a.aspx)
0
 

Author Comment

by:jtran007
ID: 35171435
Hi,

It seems to me ClickOne more appropriate for Web app. not for window. Is Setup
program is better suite?
Please advise.

Thansk for your time.

Regards,
JT
0
 
LVL 33

Accepted Solution

by:
Todd Gerbert earned 500 total points
ID: 35176066
ClickOnce does seem to lend itself well to web-based deployments and simple applications, but that's not to say it wouldn't work.  However, if - for example - you absolutely need for your application to be installed to C:\Program Files, then ClickOnce is not for you.

I think by your screen shots you have Professional Visual Studio, so you can add a Setup project as anarki_jimbel suggested: http:#a35144019
0
 

Author Closing Comment

by:jtran007
ID: 35226141
Thanks,
JT
0

Featured Post

Creating Instructional Tutorials  

For Any Use & On Any Platform

Contextual Guidance at the moment of need helps your employees/users adopt software o& achieve even the most complex tasks instantly. Boost knowledge retention, software adoption & employee engagement with easy solution.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

Introduction Hi all and welcome to my first article on Experts Exchange. A while ago, someone asked me if i could do some tutorials on object oriented programming. I decided to do them on C#. Now you may ask me, why's that? Well, one of the re…
Today I had a very interesting conundrum that had to get solved quickly. Needless to say, it wasn't resolved quickly because when we needed it we were very rushed, but as soon as the conference call was over and I took a step back I saw the correct …
Exchange organizations may use the Journaling Agent of the Transport Service to archive messages going through Exchange. However, if the Transport Service is integrated with some email content management application (such as an antispam), the admini…
Are you ready to implement Active Directory best practices without reading 300+ pages? You're in luck. In this webinar hosted by Skyport Systems, you gain insight into Microsoft's latest comprehensive guide, with tips on the best and easiest way…

732 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question