LabVIEW

cancel
Showing results for 
Search instead for 
Did you mean: 

Programatically install font with LabVIEW

Ok, I have been banging my head against this problem for a couple weeks and finally decided to do something about it. I have seen this problem come up every now and again and have never seen a good solution - how to install fonts programatically from LabVIEW? You really only need to add a registry entry pointing to the path of the font, but you have to go through UAC to do so, and Windows recommends putting fonts in the Windows\fonts directory, which again requires UAC access. So I made a small project that has the build for an executable that requires admin privileges so it can both copy the font, and add the registry entry. Then I have a vi that acts like a wrapper for the exe that first checks that the file is a valid font, and that it is not already installed to avoid the UAC triggering if it's not needed. This isn't 100% automated as the user still needs to give admin access, but if you put this somewhere in your own project it should only need to be run once.

 

Built in LV2017

Message 1 of 1
(1,402 Views)