Always "unknown publisher"

you need to “sign” your compiled application with a certificate. cf. Codesign for Windows. If you don’t sign it, I guess you can get all possible results. Even with signing I’m seeing the popup until it has been installed a couple of times by the customer.