no one has a good record involving themselves in Afgan business, period!!!
When that involvement takes the form of a military "solution", this is all too true!
During their time in India, the British certainly learned that the hard way.
Even after a rare bit of military success in the Second Afghan War - achieved when Lord Roberts force-marched a 9,000 man relief column from Kabul to lift the siege of Kandahar and to then subsequently rout a rebel army - they soon completely withdrew. Thereafter, Britain used more subtle means to advance its interests in Afghanistan.
For a detailed account of these matters, the following link provides an informative read.
LORD ROBERTS AND THE MARCH FROM KABUL TO KANDAHAR, AFGHANISTAN, 1879–80 | Weapons and Warfare