Hi Mohan, to resolve try this:
1. Check what its the app that have occupied these ports, and set for another's ports
2. Change the installations ports for another that not are busy.
Unfortunatly there is no way to change this before the instalation, but you can change it manualy.
You have to access the Postgre database and change this configuration before starting Qlik Sense Services(just the Database service must be running)
Just take a look at Michael Tarallo comment in this topic Qlik Sense - Proxy Port - Can this be change
That's rigth, clean your environment to install QS, Postgres its installed after the during the QS instalation; dont worry about that.
See what app is occuping the ports with https://veerasundar.com/blog/2009/10/how-to-check-which-application-is-using-which-port/