I'm new user of wxWidgets and I trying to include WinSparkle (https://github.com/vslavik/winsparkle) library into my Qt application for autoupdating it.
Tte library has this code:
Code: Select all
if ( !wxLaunchDefaultApplication(m_updateFile) ) //run installator, *.exe file
{
wxLogError(_("Failed to launch the installer."));
wxLog::FlushActive();
}
else
{
Close();
ApplicationController::RequestShutdown(); //close parent application
}
I also trying to run installer with wxExecute() but it runs under parent process too.
In my Qt application I run process detached from parent using:
Code: Select all
(new QProcess(this->parent()))->start("calc.exe");