Error message when installing Db2 on Windows

You get an error message when installing Db2® on a Windows™ system.

You can receive one of the following error messages:
An error occurred while updating the services file on the system for the
service name 'db2c_DB2' with port '25000'. 
No valid local database found on the system. 
You receive this error message because Db2 failed to configure the port at installation time.
An error occurred while initializing the Profile Registry.