我有一个用 Delphi 构建的程序,它在 Windows 10 中使用 MySQL for DB。我安装了 Devserver 17,但它不能在 Windows 启动中运行。我需要在我的程序之前运行 Devserver。我在谷歌上搜索并使用了一些技巧,但我的问题仍然存在。例如,当我的程序启动(在 FormCreat 事件上)时,我使用“shellexecuteEx”来运行 Devserver(run-devserver.exe),但它有一个对我不利的延迟,并给我一个新的问题!用“shellexecuteEx”运行“run-devserver.exe”后,Http服务器和数据库服务器没有运行!如果我手动运行它们一切正常,但我希望它们(Devserver 和 HTTP 服务器和数据库服务器)在我的程序之前自动启动。我也使用“shellexecuteEx”来执行“eds-dbserver.exe”,但它不起作用。
-Using "shellexecuteEx",
-Run as Administrator,
-change "eds.ini" file : set "Autostart_httpserver=1" and "Autostart_dbserver=1"
-check the windows and antivirus firewall rules
-Run Programs Automatically Using Windows Task Scheduler
请给我一个新的方法。