hi,
thanks for your reply. we use postgres zip, during install time of our product, on target host this zip will be extracted. We are not creating data directory, when service is started by default data directory will be created.
we created/registered the service with below commands
<fullpath>pg_ctl.exe register -N "prostgresService" -D "fullpath_to_data_directory" -W
>sc description prostgresService "prostgresService Applicatio
n Server Database Service"