LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Cancelling installer from running if conditions not met

LV2017 Professional edition

 

My created exe ships with a full installer including LV run time, drivers etc. Customers can obtain this installer themselves and install unsupervised.

 

I want to make an "upgrade" installer which just has the exe, for customers with the software already installed, when there is a new version. This would have the benefit of being a much smaller installer size.

 

What I would like to know is if there is a way to detect that the software was previously installed, and then to stop the user running the "upgrade" installer in this case before the software gets installed. I don't want my customers calling me when it doesn't work because they didn't install the version with the RTE/drivers etc. 

 

The only thing I can think of is to make a wrap around .bat file or similar, but this is not optimal as the user is more likely to run the setup.exe file instead of the .bat file.

 

Any solutions to this?

Ian
LabVIEW since 2012
0 Kudos
Message 1 of 2
(1,195 Views)

I'm not aware of any way to do what you need within the installer itself, but you may use some trivial trick. For example, you may distribute setup.exe as setup.bin and make the wrapper rename it to .exe. More complex scenarios can be designed to obfuscate the actual installer to the enduser.

Paolo
-------------------
LV 7.1, 2011, 2017, 2019, 2021
0 Kudos
Message 2 of 2
(1,181 Views)