Both in Iran and Afghanistan in 70s Muslims were the much bigger numbers of population , the only things have changed are regimes which enforced wearing hijab over their people which's totally against Islam , Allah told his prophet Mohamed in Quran in Surat el Nahl : Invite to the way of your Lord with wisdom and good instruction, and argue with them in a way that is best. Indeed, your Lord is most knowing of who has strayed from His way, and He is most knowing of who is [rightly] guided. So those regimes with all due respect used Islam for enforcing their ideas over their people , it doesn't make the problem in Islam , and btw the Islamic world map and regimes changed for ever cuz of US and USSR conflicts , they wanted to replace stable kingdoms with republics where their presidents are much loyal for them