Solved

Updating an application

Posted on 2014-01-08
4
330 Views
Last Modified: 2014-01-10
I am writing a windows application with VS 2012 to sell. Right now I plan on deploying it via Clickonce. I want the customers to be able to buy new versions and install them without having to uninstall the old version. The way it is now, the testers have to uninstall the current version before installing the new one. If they don't, they get a message: "You cannot start application Bird Tracker from this location because it is already installed from a different location" during installation. I will not have a server for the application to check for updates on.

I was thinking I could have the customer put the upgrade in a “update” folder, and use Clickonce’s update feature to update from there. I know I can specify my hard drive in UNC format for the update location. The problem is this requires a computer name. I won't know the computer name of each customer. Is there a way to have a generic computer name?

I have Installshied 2010. I wrote an application with just a form and label. I deployed it with Installshied. I modified it to simulate an update. When I tried to install it, I got a message saying it was already installed.

I use two programs that allow me to install new versions from CD without uninstalling the old version, so I know it can be done. How can I do this? If I have to use Installshield, I will.

Thanks,


Dotty
0
Comment
Question by:dorothy60
  • 2
  • 2
4 Comments
 
LVL 40

Expert Comment

by:Jacques Bourgeois (James Burger)
Comment Utility
First the problem with the install from a different location.

Although it can be used for commercial applications, ClickOnce has been designed for in-house deployment. The updates must be done from the same place that the application was installed. If you cannot do it from a web server, I would not suggest using ClickOnce as your mode of distribution.

For the problem with the already installed application, did you increment the version number of the application and of the publishing package? If you don't, the system thinks that you are installing the same application and gives the message you got.
0
 

Author Comment

by:dorothy60
Comment Utility
Hello,

I am sold on using Installshield. Do I have to publish my program to use I.S.? If not, how do I increment the version number?

Thanks, Dotty
0
 
LVL 40

Accepted Solution

by:
Jacques Bourgeois (James Burger) earned 500 total points
Comment Utility
For the application, you do it in the projects Properties window, in the Appllication tab, Under Assembly Information. The one that counts is the Assembly version.

For InstallShield, I haven't used it since I switched to .NET in 2000. I do not remember how it was done in the older versions that I used in the 90's, so you bet that I have no idea where it is in the current versions.
0
 

Author Comment

by:dorothy60
Comment Utility
Thank you!
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

It was really hard time for me to get the understanding of Delegates in C#. I went through many websites and articles but I found them very clumsy. After going through those sites, I noted down the points in a easy way so here I am sharing that unde…
If you need to start windows update installation remotely or as a scheduled task you will find this very helpful.
This is Part 3 in a 3-part series on Experts Exchange to discuss error handling in VBA code written for Excel. Part 1 of this series discussed basic error handling code using VBA. http://www.experts-exchange.com/videos/1478/Excel-Error-Handlin…
Illustrator's Shape Builder tool will let you combine shapes visually and interactively. This video shows the Mac version, but the tool works the same way in Windows. To follow along with this video, you can draw your own shapes or download the file…

772 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

Need Help in Real-Time?

Connect with top rated Experts

11 Experts available now in Live!

Get 1:1 Help Now