11-10-2009 08:26 PM
Hi,
You don't actually have to copy the entire vi.lib to make your exe run. You can create two source distributions for each of your plug-ins - one that includes vi.lib and one that doesn't. If you diff the distributions, you can separate out the required vi.lib VIs from the ones that are part of your plug-in. Collect all the required vi.lib VIs for all your plug-ins into a single folder (I call mine "Library"). In the .ini for your executable, add the line:
VISearchPath=<PathtoYourLibraryFolder>
Using this technique, I was able to reduce the size of my delivered app from over 400Mb to 30Mb. You just have to make sure that you do this for ALL of your plug-ins to ensure you get all the required vi.lib VIs.
JasonP
03-31-2011 04:11 PM
This post was the most helpful that I've ever read!
Thank you very much!!!