Waldemar,
Thank you very much for your insight.
This is a very interesting/intriguing problem ... Please bear with me as I try to describe it:
It seems that LV is treating DLLs exactly as it would a sub-VI. Once one VI which uses a DLL is loaded into memory, all other VIs which use a DLL with the same name, regardless of the path used, use the same DLL. I was trying to delete the path in one VI, while other VIs with the path were in memory. Therefore, as soon as I clicked OK, LV just went ahead and added the path again. However, if I loaded the VIs separately, I was able to delete the path. I was tipped off when I did this with only one sub-VI, then loaded the top-level VI and was presented with the warning that "USER32.DLL" was actually found at "C:\WINNT\system32\USER32.DLL" for the VI I had changed.
Now of course the problem arose as to how I delete the path for a DLL call when the VI has two separate calls to the same DLL (i.e. if I delete the path for one, while the other still has the path, it won't be deleted). I had to mangle the name in one call ("C:\WINNT\system32\xUSER32.DLL"), delete the path in the other ("USER32.DLL"), then delete the path in the first. Likewise, when one VI with a call to the DLL uses a sub-VI which also calls the DLL, I had to go through this process with all the calls in all the VIs.
I hope I'm making sense. I was able to eventually get the paths permanently deleted from every call, and "USER32.DLL" no longer appears when I go to build an executable.
I'm not sure if this is a bug per se. I'm not sure what else LV could do, other than display a warning dialog when you click OK on the DLL config dialog. However, it would be nice if the application builder allowed DLLs to not be included (even if it thinks they need to be).
By the way, I did work out a very interesting work-around for this before realizing the details I described above: I included a batch file in the installer, which I called using the "Run executable after installation" option, which cd'ed to the install path, deleted USER32.DLL, then deleted itself (I didn't know this was possible until now).
I did however discover a bug in the application builder help documentation:
On the page titled "Advanced Installer Settings Dialog Box (Windows, Professional System Only)", the "- Executable" paragraph states "The file must be one of the files that you install in the Installer directory you selected in the Installer Settings tab." This is not the case. It should read:
"The file must be one of the files copied to the *Install Directory* using the "Installation Destination Settings" dialog. (Click the "Files..." button on the "Installer Settings" tab)."
Note "Install Directory", not "Installer directory".
Hopefully this all makes sense and is informative.
Cheers,
Jaegen