首页 > 技术文章 > Qt 安装一个Service

coolbear 2016-01-25 14:43 原文

QString command = "sc create YourServiceName binPath= \""+application_path+"\" start= auto";
QProcess::startDetached( command );

推荐阅读