mirror of
https://github.com/debauchee/barrier.git
synced 2024-11-24 06:15:57 +03:00
Ran Bonjour installer in passive mode
This commit is contained in:
parent
dff2cb34be
commit
79f534273f
@ -54,7 +54,7 @@ static const QString synergyConfigFilter(QObject::tr("Synergy Configurations (*.
|
|||||||
static const char bonjourUrl[] = "http://synergy-project.org/bonjour/";
|
static const char bonjourUrl[] = "http://synergy-project.org/bonjour/";
|
||||||
static const char bonjour32Url[] = "http://synergy-project.org/bonjour/Bonjour.msi";
|
static const char bonjour32Url[] = "http://synergy-project.org/bonjour/Bonjour.msi";
|
||||||
static const char bonjour64Url[] = "http://synergy-project.org/bonjour/Bonjour64.msi";
|
static const char bonjour64Url[] = "http://synergy-project.org/bonjour/Bonjour64.msi";
|
||||||
static const char bonjourInstaller[] = "BonjourSetup.exe";
|
static const char bonjourInstaller[] = "BonjourSetup.msi";
|
||||||
#else
|
#else
|
||||||
static const char synergyConfigName[] = "synergy.conf";
|
static const char synergyConfigName[] = "synergy.conf";
|
||||||
static const QString synergyConfigFilter(QObject::tr("Synergy Configurations (*.conf);;All files (*.*)"));
|
static const QString synergyConfigFilter(QObject::tr("Synergy Configurations (*.conf);;All files (*.*)"));
|
||||||
@ -1109,7 +1109,14 @@ void MainWindow::installBonjour()
|
|||||||
file.write(m_pDataDownloader->downloadedData());
|
file.write(m_pDataDownloader->downloadedData());
|
||||||
file.close();
|
file.close();
|
||||||
|
|
||||||
QDesktopServices::openUrl(QUrl("file:///" + filename));
|
QProcess process;
|
||||||
|
QStringList arguments;
|
||||||
|
arguments.append("/i");
|
||||||
|
QString winFilename = QDir::toNativeSeparators(filename);
|
||||||
|
arguments.append(winFilename);
|
||||||
|
arguments.append("/passive");
|
||||||
|
process.start("msiexec", arguments);
|
||||||
|
process.waitForFinished();
|
||||||
|
|
||||||
m_DownloadMessageBox->hide();
|
m_DownloadMessageBox->hide();
|
||||||
#endif
|
#endif
|
||||||
|
Loading…
Reference in New Issue
Block a user