Now I added a file to the folder src in the installation folder used by OPM for LazBarcodes and repeated the installation - the file is still there afterwards! No file of the destination folder was open, the folder itself was not opened in the Explorer either.
On the other hand, when I simulate your code in a simple test application everything works fine. (see attachment)
Strange...