Pakistanʼs constitution says a candidate for president cannot run for office until two years after retirement from a military position and Musharraf is the head of Pakistanʼs army that came to power in a bloodless coup in 1999 .