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