Well unfortunately I have inform you that solar option is very expensive. Putting solar panel on every roof is hardly a small project. One single solar panel produces very little power not enough to even run a fan the whole day. Forget about refrigeration, air conditioning and a plethora of electric and electronic devices from microwaves to TV. In order to meet even part of this demand you will have to install several panels, with corresponding battery storage system and a ac/dc converter plus a load management system. These all add up to an expensive solution. If you multiply it for tens of millions of homes in Pakistan, you will have a mega project on your hand.
Better would be to create two national companies. One manufacturing power plant equipment and specializing in installing them. And another manufacturing transmission, transformer and switching equipment and installing them. These two companies can even be under the control of Pakistan military if the government can not run them efficiently. There are advantages to a national company in dire situation that Pakistan is in. One is the fact that such a national company does not need a gigantic reserves of dollars to create installed capacity. Right now Pakistan has to pay top dollars to foreign companies to build and install power plants. Dollars are always short. But national company doing most of the manufacturing inside the country only needs Rupees in Pakistan's case which you print yourselves (at tolerable rate of creating some inflation). Under such a model you can go on and increase your installed capacity along with transmission system.
This is how in real world it is done. This is how China did it. Through national companies. This is how Iran did it. Through national companies. Unless you do not have low population and a big access to dollars like some Arab fiefdom, then this is your only salvation. In the start, Pakistan needs to keep it simple and low cost. For example by only concentrating to buy technology for the kind of power plants which can be built fast, and produce cheapest electricity for instance the combined cycle plants. When things pick up after a decade or so then such a company can diversify to other areas.
I estimate, to buy the technology and setup a factory that can manufacture turbines and generators for combined cycle plants would cost something like a few billion dollars. Add to this a couple of billion dollars to buy technology and manufacturing capacity for transmission equipment. Pakistan is already paying billions and billions to foreign companies setting up ridiculous plants such as wind and solar and others
like this one here, often under long term and financially noncompetitive terms. Why not invest in your own capacity to build plants?
I do not see any other solution. Pakistan is a poor country and can not increase its installed capacity at all through foreign buying of plants and solar panels for homes. The only solution is to internalize the technology. As other countries have done.