chromedp / chromedp

A faster, simpler way to drive browsers supporting the Chrome DevTools Protocol.

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

chrome failed to start with no detail error

QuyQV18 opened this issue · comments

I would like to use chromedp to convert a html file to pdf file.
However, I set chromedp.ExecPath() by path of edge: C:\Program Files (x86)\Microsoft\Edge\Application\msedge.exe
After build to exe, my program run normally.
But when I use this exe to register service and run by using sc command (sc create and sc start) to register and start service, following error appears:
"chrome failed to start:"
Please help me to fix this bug.