01-24-2019 08:35 AM
Hello all you helpful forum-goers!
I have created an installer for my LabVIEW software, and used the "Run executable at end of installation" feature to run a batch file to copy some files into the installation directory afterwards. This setup allows me to change the files that are copied afterwards without having to rebuild the installer, which means I don't have to reconfigure it with CM or rerun the installer-specific tests.
However, doing it this way means that the installer version has not changed, and if I give someone the same installer with different files to copy over, the installer appears to exit without running the post-install batch file.
I understand that a relatively simple work-around would be to give the customer the new files separately without involving the LabVIEW installer, and instruct them to place the new files in the correct Program Files subdirectory, but for the purpose of consistency in how we deliver to our customers, is there any way to get the installer to run the post-install batch file regardless? Or is there anything else about the situation I'm misunderstanding?
Thank you for your time and assistance!
-Joe
P.S. It also occurred to me that I could set up a batch file to copy the files and then run the LabVIEW installer, but that involves changing other parts of our standard setup (i.e. changing the autorun.inf file to call the batch file instead of setup.exe and other changes like that, so I'd like to see if there is an easier solution first.
01-24-2019 10:43 AM
I think that if the LabVIEW installer finds the same version software, it will abort the install entirely (you'll see a "no software installed" warning) which is the reason the batch file doesn't work. Unfortunately that doesn't help your problem. 😞
02-01-2019 01:48 PM
Yeah, when the software is already installed you get this message:
Installation Summary
No software will be installed or removed.
Which is less helpful and explanatory than I would prefer. But regardless, I decided not to go with calling the batch file first because then if the user cancels the installation it has already made changes. So for now I'll just have to walk the customer through hand-installing new files, or ask them to uninstall before reinstalling. Oh well.
02-01-2019 07:21 PM
Sorry that my post was all about a possible explanation and not a possible solution. 😞
02-04-2019 08:08 AM
No worries Bill! I just wanted to post my final "this is what I decided to do and why" for people searching in the future, even if there wasn't really a solution per-say.