<Property Id="QtRemoveService" Value=""cmd.exe" /S /V:ON /C "echo off & for /F "tokens=*" %i in ('sc query ^| FIND "SERVICE_NAME:"') do (set j=%i & set j=!j:~14! & sc qc !j! | FIND "C:\Program Files\MySQL\MySQL Server 5.6\bin\" >NUL & IF errorlevel 0 IF NOT errorlevel 1 (sc stop !j! > NUL & ( for /L %k IN (1,1,20) do (sc query !j! | FIND "STATE" | FIND "STOPPED" >NUL & (IF errorlevel 0 IF errorlevel 1 timeout /t 5 /nobreak >NUL)) )& sc delete !j! ) ) ""/>
0 commit comments