While I abide by my dealer agreements, in general I don't have any issues giving the user a copy of his configuration. My customers are not likely to publish the program and since my programs are so specific, another CI would be pretty dumb to attempt to use it and would probably spend more time trying to learn my style than starting from scratch.
As for disposing of demo's, I would rather keep the unit for emergencies or give a good customer a good deal than post the unit online. I'll probably get a better price from my customer anyway.
An online D.I.Y. is not my customer.
As far as the original "electrical engineer" is concerned, I don't know why he would want to mess with the commercial controllers. Something as simple as a Raspberry Pi offers him more flexibility than any of the commercial systems. (at the cost of some development time) My engineer friends would be happy to have me to supply them with something, than waste their time learning yet another platform -- and they are capable of designing any of this.