LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

How do you Upgrade an Application in one step?

I have a LabVIEW compiled application.  When I make a change to the program and try to install the new version to replace the old one, it makes me uninstall the old version (e.g. v1.01) before i install the new version (e.g. v1.02).  Is there a way to compile a new version of an application without having to uninstall the old version and then running the .exe file again to install it?

0 Kudos
Message 1 of 8
(3,168 Views)

What is telling you that you have to run the uninstall first? Why can't you just drag the new version into the directory where the old version is installed and overwrite the old one with the new one?

Are both versions built with the same version of LV?

Mike...

Message Edited by mikeporter on 07-29-2005 09:48 PM


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 2 of 8
(3,157 Views)
You have to change the GUID of the application in the installer settings for the versions considered different. However, be careful to also change the installation directory for each version because the installations will be overwritten, then uninstalling previous version would erase current installation files. You still have the step to uninstall the previous installation.


LabVIEW, C'est LabVIEW

0 Kudos
Message 3 of 8
(3,147 Views)
The installation files are distributed to a large number of people.  If we upgrade the application to v1.15 from v1.14, new installation files are created and have to be distributed.  When a person runs the v1.15 setup file, it will see that they currently have v1.14 already installed and it will remove it.  From there, you have to go back and run the setup file again, and it will install v1.15.  I would like to be able to run the setup file one time to replace v1.14 with v1.15.  How can I do this?
0 Kudos
Message 4 of 8
(3,132 Views)

Hmmm.....

I'm confused. I have never seen the installer in LV do what you described. My experience has been that it quietly overwrote whatever was there already and went on. I'll experiment with this a bit and see if I can duplicate the issue...

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 5 of 8
(3,115 Views)

Did some research online and it's been a lot longer since I have built a lot of installers than I thought! This behavior changed between versions 6.0 and 6.1! Sheesh...

I guess I didn't grasp the full importance of JP's post the first time I read it. In any case, as JP says you have to change the GUID in the builder--of course that means that you are now having to change the build file even though nothing has really changed. Apparently the key here is that the Microsoft Installer won't overwrite the old version unless the GUID is different. A pain in the rear, but according to the documentation I found, "correct behavior" never the less. Too bad someone hasn't come up with a way to fix this "correct behavior".

What was so wrong with the original 6.1 behavior where the installer would ask you what to do if it found the same GUID? Or for that matter, the GUID is a machine generated number right? Why should I even have to bother with it. Let the builder generate a new one for me each time I build the application. Logically, there would be no harm done, because if the application is a new version, overwriting the old one is what I want to happen otherwise I wouldn't be rebuilding the application, and if the application hasn't changed I am overwriting the file with another one just like it--again, no harm done.
 
And if there are edge conditions where it would matter, a simple check box in the builder would address that problem: "Automatically Generate New GUID". If it's checked it would do as I described, if it wasn't checked, the two existing couple controls would be enabled and you'd have the current functionality back. Probibly would take about 20 minutes to implement...
 
Mike...

Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
Message 6 of 8
(3,107 Views)
When I change the GUID, it does not replace the old version.  It merely adds the new version onto the PC while the old version is still installed.  So, I now have "Program v1.10" and "Program v1.11" installed, and everyone will have to go in and uninstall the old version manually.  We still have 2 steps, but now the process is even longer.  I would still like to find a way to install the new version while replacing the old version at the same time. 

0 Kudos
Message 7 of 8
(3,083 Views)

Do you mean that it doesn't overwrite the old version exe, or that the first version still appears in the Windows "Add/Remove Programs" window? If its the latter, you'll notice that the same thing happens with some NI software. In any case the problem is for the most part cosmetic and a good clean-up program (like Norton) should fix it the next time it scans your system. If it's the former, make sure you are running the installer from an administrator account. (BTW: the Windows shortcut that allows you to run a program as another user will NOT work).

Mike...


Certified Professional Instructor
Certified LabVIEW Architect
LabVIEW Champion

"... after all, He's not a tame lion..."

For help with grief and grieving.
0 Kudos
Message 8 of 8
(3,071 Views)