A needle-free injector conditionally detects a training cartridge based on the detected response to linear actuation of a plunger and enters a training mode instead of an injection mode.