Solved

Updating an application

Posted on 2014-01-08
4
335 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
[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
  • 2
  • 2
4 Comments
 
LVL 40
ID: 39767292
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
ID: 39769566
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
ID: 39769667
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
ID: 39769860
Thank you!
0

Featured Post

Free Tool: Postgres Monitoring System

A PHP and Perl based system to collect and display usage statistics from PostgreSQL databases.

One of a set of tools we are providing to everyone as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Wouldn’t it be nice if you could test whether an element is contained in an array by using a Contains method just like the one available on List objects? Wouldn’t it be good if you could write code like this? (CODE) In .NET 3.5, this is possible…
Whether you've completed a degree in computer sciences or you're a self-taught programmer, writing your first lines of code in the real world is always a challenge. Here are some of the most common pitfalls for new programmers.
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…
In an interesting question (https://www.experts-exchange.com/questions/29008360/) here at Experts Exchange, a member asked how to split a single image into multiple images. The primary usage for this is to place many photographs on a flatbed scanner…

749 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