LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

"Run executable at end of installation" doesn't if software is already installed

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.

0 Kudos
Message 1 of 5
(2,521 Views)

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.  😞

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 2 of 5
(2,497 Views)

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.

0 Kudos
Message 3 of 5
(2,466 Views)

Sorry that my post was all about a possible explanation and not a possible solution.  😞

Bill
CLD
(Mid-Level minion.)
My support system ensures that I don't look totally incompetent.
Proud to say that I've progressed beyond knowing just enough to be dangerous. I now know enough to know that I have no clue about anything at all.
Humble author of the CLAD Nugget.
0 Kudos
Message 4 of 5
(2,454 Views)

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.

0 Kudos
Message 5 of 5
(2,432 Views)