Many of them had chutes. You stuck the barrel of the flaregun in the chute and shot the flare out it. Even some 109s had it in the forward cockpit windscreen (lower side window pane).
Naturally, only for planes that really had it, but some pilots went into combat strapped with bandoliers of flare rounds for their flare gun.