I had a question about PostgreSQL 9.5 installation on WIndows. I am trying to upgrade my server from PostgreSQL 9.3 to 9.5 and I noticed a difference while installing PG9.5 . I use this script to install PG 9.5 :

postgresql-9.5.4-1.exe --serviceaccount postgres --servicepassword DataBase1 --servicename PostgreSQL95 --prefix C:\Database\postgresql --datadir C:\Database\datadir\postgresql --mode unattended
When I execute this script, it runs the initdb, creates the DataDir (i.e. C:\Database\datadir\postgresql) , also creates the PostgreSQL95 service and starts it which was not the case with PostgreSQL 9.3 . I used the same script for 9.3 and it did not 1. Run the initdb and created the data directory 2. Register the DB service and start it during the time of installation.

I wanted to know if there is a way to just install PG9.5 without running initdb and getting the DB service registered?

I do not want to use the --extract-only option.