# HG changeset patch # User Andre Heinecke # Date 1408553753 -7200 # Node ID e5fd2d0cf42fe8c3ccb48c4ada4a78c72ff8d49a # Parent 6978381671eb1d376d3cb27699ed4fd3ab777867 (issue63) Add warning message when installation is not as admin diff -r 6978381671eb -r e5fd2d0cf42f ui/mainwindow.cpp --- a/ui/mainwindow.cpp Wed Aug 20 18:22:41 2014 +0200 +++ b/ui/mainwindow.cpp Wed Aug 20 18:55:53 2014 +0200 @@ -1158,6 +1158,15 @@ unselected << mInstallList->unselectedCertificates(); unselected << mRemoveList->unselectedCertificates(); +#ifdef Q_OS_WIN + if (!is_admin() || !is_system_install()) { + QMessageBox::information(this, + tr("Installation as normal user."), + tr("TrustBridge does not have the necessary privileges to install the certificates silently.") + "\n" + + tr("Windows will explicitly ask you to verify every modification TrustBridge intends to make.")); + } +#endif + QProgressDialog *progress = new QProgressDialog(this); progress->setWindowModality(Qt::WindowModal); progress->setLabelText(tr("Installing certificates..."));