Add installer
This commit is contained in:
parent
c9bc8aa8c1
commit
a2a5cafc5f
73 changed files with 4354 additions and 488 deletions
21
platform/post-uninstall/main.cpp
Normal file
21
platform/post-uninstall/main.cpp
Normal file
|
@ -0,0 +1,21 @@
|
|||
#include <QCoreApplication>
|
||||
#include <QProcess>
|
||||
|
||||
#include "defines.h"
|
||||
|
||||
bool executeProcess(const QString& cmd, const QStringList& args)
|
||||
{
|
||||
QProcess process;
|
||||
process.start(cmd, args);
|
||||
return process.waitForFinished();
|
||||
}
|
||||
|
||||
int main(int argc, char *argv[])
|
||||
{
|
||||
QCoreApplication app(argc, argv);
|
||||
|
||||
executeProcess("sc", QStringList() << "stop" << SERVICE_NAME);
|
||||
executeProcess("sc", QStringList() << "delete" << SERVICE_NAME);
|
||||
|
||||
return 0;
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue