Addressing an event to mark the Youm-e-Shahada (Day of Martyrs), Kayani reiterated the army's commitment to holding of free and fair elections.
He criticised those who contend that the campaign against terrorism is not Pakistan's war and called for greater political consensus and a "clear policy" to tackle extremism and terrorism.
"Allah willing, general elections would be held in the country on May 11. There should be no doubt about this. This indeed is a golden opportunity which can usher in an era of true democratic values in the country," Kayani said in his speech in Urdu to a gathering that included top military commanders.
The attacks, which killed some 40 people, heightened concerns about security for the polls.
More From This Section
Kayani said awareness and participation of the people, and not merely retribution, could "truly end this game of hide and seek between democracy and dictatorship".
If people rise above "ethnic, linguistic and sectarian biases" to vote only on the basis of honesty, sincerity, merit and competence, there will be "no reason to fear dictatorship or to grudge the inadequacies of our present democratic system", he added.
This support is only aimed at "strengthening democracy and rule of law", he said.