10-31-2016, 08:03 PM
After quite some restart tryouts :-) I have at least a work around: Thanks to your XML code (added: [Data[3]='demand start'] ) there is a (scheduler)task now that runs a compiled function RestartQMService_AND_QM.exe , only if the service is thrown to 'manual'.
This .exe runs a batchfile with three commands (net stop QuickMacros2 [] sc config QuickMacros2 start=auto [] net start QuickMacros2). The batch file correctly sets the service back to automatic.
The taskschedular task appears generate 2 triggers at once and the .exe is executed twice (directly sequential), some time after QM has started (10 secs or so).
The batchfile is evoked with admin privileges, however this brings up an UAC prompt. Is there a way to avoid that?
What does not work is : The .exe doesn't start QM correctly since a QM message appears saying Bad file format c:\[path]\Main.qml
Restart QM by hand after that works fine.
This .exe runs a batchfile with three commands (net stop QuickMacros2 [] sc config QuickMacros2 start=auto [] net start QuickMacros2). The batch file correctly sets the service back to automatic.
The taskschedular task appears generate 2 triggers at once and the .exe is executed twice (directly sequential), some time after QM has started (10 secs or so).
The batchfile is evoked with admin privileges, however this brings up an UAC prompt. Is there a way to avoid that?
What does not work is : The .exe doesn't start QM correctly since a QM message appears saying Bad file format c:\[path]\Main.qml
Restart QM by hand after that works fine.