07-23-2015 04:05 PM
Ok here's the deal. I have created an application that needs a little "cleanup" after the installer finishes. To handle this operation, I created a batch file and told the LV installer to run it after the installation. This works fine on every computer I have tried it on ---
Except One
Thinking that there might be a problem related to the commands themseloves, I added echos to a log file to save any errors that might occur and to save basic information like paths. However on that ONE computer I don't get the log file even being created, which says to me that the batch is not being executed. However, If I go to the installation direcctory and run it manually, it runs, it does what it is supposed to do and it stops.
The computer this happens on is a corporate laptop that is configured interms of security and permissions like every other corporate laptop.
I am officially confused. Any ideas? WAGs? Suggestions? Recommendations?
Mike...
07-23-2015 04:19 PM - edited 07-23-2015 04:19 PM
I remember years ago when this feature first came out I tried it with a batch file and I thought it didn't work, and that it only supported running an EXE not thing else. Since then they apparently fixed that. So my only suggestion is maybe to try to run an EXE instead of a batch file? Of course it sounds like it is working on other machines so I doubt that is it.
What about UAC? You say it is a corporate machine so I doubt you can, but maybe lower the UAC to nothing and see if it works. Of course if it doesn't that probably isn't a good solution.
Anti-virus running? Some have a log of the things it blocks, and it might list the fact that it prevented a batch file from running.
The only time I ever used this feature on an EXE I don't remember it not running on the dozen or so PCs I used it on.
Unofficial Forum Rules and Guidelines
Get going with G! - LabVIEW Wiki.
17 Part Blog on Automotive CAN bus. - Hooovahh - LabVIEW Overlord
07-23-2015 04:36 PM
Does the batch file work if you put it in the startup dir?
If it does, then you can add the path to registry => run once.
And ask user to reboot.