Voting in the elections is a religious obligation, just like performing the morning prayer.
If the enemy is certain that people are not in favor of this regime, it will not hinder them in a military attack. Voting is a religious obligation, just like performing the two cycles of the morning prayer. God and His Prophet do not care about someone who intentionally neglects a religious obligation.