Hello Upendra,
In order to check a TCP port you can use our predefined
"Check TCP port" custom action. However, please keep in mind that our predefined custom action can be used to check TCP ports only for the local machine where the setup package runs. So, if you want to check TCP ports from other machines (than your current machine where the setup is launched), then I'm afraid you should create your own
custom action.
You can take a look on the
"How to determine if a Tcp/IP Port is in use" thread which could be useful for you.
If you have any questions just let us know.
All the best,
Daniel