Hi. Haven't seen anyone else talking about this particular way of getting a successful long press using the T.A.R.G.E.T. software, but this works great for me.
By default, weapon release in DCS is R-Alt+Space, and this option works perfect with that keyboard combo.
Set up your weapon release button with the following three events:
Sorry if this is old news
Cheers!