Hi All,
I tried to install CA directory 12.6. However, the dxagent service is not starting up and giving the error as below:
Error in Event Viewer Logs:
The CA Directory DXagent service terminated with the following service-specific error:
Incorrect function.
Error Screenshot while starting the service:

Also, receiving the below error during installation:
Can't create output file :
C:\Program Files\CA\Directory\dxserver\dxagent\python-embed-amd64\lib\site-packages\win32\servicemanager.pyd
Please find the dxagent.error logs:
2018-12-18 19:40:27 [4208] [cherrypy.error] [INFO] [18/Dec/2018:19:40:27] ENGINE Bus STARTING
2018-12-18 19:40:27 [4208] [cherrypy.error] [ERROR] [18/Dec/2018:19:40:27] ENGINE Set handler for console events.
2018-12-18 19:40:27 [4208] [cherrypy.error] [INFO] [18/Dec/2018:19:40:27] ENGINE PID 4208 written to '<C:\\Program Files\\CA\\Directory\\dxserver\\pid\\dxagent.pid>'.
2018-12-18 19:40:27 [4208] [cherrypy.error] [INFO] [18/Dec/2018:19:40:27] ENGINE Started monitor thread '_TimeoutMonitor'.
2018-12-18 19:40:27 [4208] [cherrypy.error] [INFO] [18/Dec/2018:19:40:27] ENGINE Started monitor thread 'Autoreloader'.
2018-12-18 19:40:27 [4208] [cherrypy.error] [INFO] [18/Dec/2018:19:40:27] ENGINE Serving on https://0.0.0.0:9443
2018-12-18 19:40:27 [4208] [cherrypy.error] [INFO] [18/Dec/2018:19:40:27] ENGINE Bus STARTED
2018-12-18 19:49:29 [4208] [cherrypy.error] [INFO] [18/Dec/2018:19:49:29] ENGINE Restarting because <C:\Program Files\CA\Directory\dxserver\dxagent\python-embed-amd64\lib\site-packages\cherrypy\lib\sessions.py> changed.
2018-12-18 19:49:29 [4208] [cherrypy.error] [INFO] [18/Dec/2018:19:49:29] ENGINE Stopped thread 'Autoreloader'.
2018-12-18 19:49:29 [4208] [cherrypy.error] [INFO] [18/Dec/2018:19:49:29] ENGINE Bus STOPPING
2018-12-18 19:49:29 [4208] [cherrypy.error] [INFO] [18/Dec/2018:19:49:29] ENGINE HTTP Server cherrypy.wsgiserver.CherryPyWSGIServer(('0.0.0.0', 9443)) shut down
2018-12-18 19:49:29 [4208] [cherrypy.error] [ERROR] [18/Dec/2018:19:49:29] ENGINE Removed handler for console events.
2018-12-18 19:49:29 [4208] [cherrypy.error] [INFO] [18/Dec/2018:19:49:29] ENGINE Stopped thread '_TimeoutMonitor'.
2018-12-18 19:49:29 [4208] [cherrypy.error] [INFO] [18/Dec/2018:19:49:29] ENGINE Bus STOPPED
2018-12-18 19:49:29 [4208] [cherrypy.error] [INFO] [18/Dec/2018:19:49:29] ENGINE Bus EXITING
2018-12-18 19:49:29 [4208] [cherrypy.error] [INFO] [18/Dec/2018:19:49:29] ENGINE Waiting for child threads to terminate...
2018-12-18 19:49:29 [4208] [cherrypy.error] [INFO] [18/Dec/2018:19:49:29] ENGINE Re-spawning <C:\Program Files\CA\Directory\dxserver\dxagent\python-embed-amd64\lib\site-packages\win32\PythonService.exe>
Kindly assist.
Regards,
Aishwarya