Solved

Updating an application

Posted on 2014-01-08
4
332 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
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

Is Your Active Directory as Secure as You Think?

More than 75% of all records are compromised because of the loss or theft of a privileged credential. Experts have been exploring Active Directory infrastructure to identify key threats and establish best practices for keeping data safe. Attend this month’s webinar to learn more.

Question has a verified solution.

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

Suggested Solutions

For a while now I'v been searching for a circular progress control, much like the one you get when first starting your Silverlight application. I found a couple that were written in WPF and there were a few written in Silverlight, but all appeared o…
More often than not, we developers are confronted with a need: a need to make some kind of magic happen via code. Whether it is for a client, for the boss, or for our own personal projects, the need must be satisfied. Most of the time, the Framework…
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…
The Email Laundry PDF encryption service allows companies to send confidential encrypted  emails to anybody. The PDF document can also contain attachments that are embedded in the encrypted PDF. The password is randomly generated by The Email Laundr…

919 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

14 Experts available now in Live!

Get 1:1 Help Now