LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Best Way to Create an Installer to do Updates

I have a software that I developed that is deployed to our customer. This software has LabVIEW executable, LabVIEW libraries, and external files that the LabVIEW software uses. Occasionally I have to update that software where I need to update all three of the items mentioned above. The libraries and executable can be replaced and no previous version needed to stay, but in terms of the external files that the LabVIEW software uses, I would like to move those to an archive file.

 

What would be the best way to create a single installer file that the customer can click and it will update the LabVIEW executable, replace the specified libraries with new ones, and then archive some of the external files to an archive folder and add in new ones?

 

I was thinking my best bet would be to create an installer, and then maybe adding some sort of script file that is run at the end of installation to move specific files? Just coming here to see if there are any other ideas! 

0 Kudos
Message 1 of 3
(268 Views)

As an exercise, I created my own update app.  During idle moments, the app will monitor a directory for updates.  If an update is found, it will display a message.  If the user chooses to install the update, the app will spawn an "update" process and shutdown itself down.  The spawned update process will archive the previous EXE, copy the new EXE file from the directory, restart the main app, and shut itself down.

 

This is for an internal use application.  I suppose the same process could be used for one that is delivered to a customer.  Your installer would essentially be an unzip operation into an updates folder, which would then kick-off the update process in the main app. 

 

This works well for a simple EXE replacement and minor file operations.  I suppose it could be explanded to include running additional installers as part of the process. 

aputman
0 Kudos
Message 2 of 3
(193 Views)

Since you can add pre- and post-install VIs to your installer you can easily have them archive and zip stuff before installing.

G# - Award winning reference based OOP for LV, for free! - Qestit VIPM GitHub

Qestit Systems
Certified-LabVIEW-Developer
0 Kudos
Message 3 of 3
(158 Views)