Solved

Updating an application

Posted on 2014-01-08
4
338 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: Port Scanner

Check which ports are open to the outside world. Helps make sure that your firewall rules are working as intended.

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

After several hours of googling I could not gather any information on this topic. There are several ways of controlling the USB port connected to any storage device. The best example of that is by changing the registry value of "HKEY_LOCAL_MACHINE\S…
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…
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 this video we outline the Physical Segments view of NetCrunch network monitor. By following this brief how-to video, you will be able to learn how NetCrunch visualizes your network, how granular is the information collected, as well as where to f…

691 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