No, a self-signed won't work for that. You will still get warnings like untrusted signing authority when using self-signed certificates. But to bypass it manually, you need to install and manage your certificate to a trusted publisher list using Certmgr.msc.
Its better, you purchase trusted code signing cert from CA like Comodo, DigiCert, Sectigo, Certera or reseller like signmycode.com