changeset 918:e5fd2d0cf42f

(issue63) Add warning message when installation is not as admin
author Andre Heinecke <andre.heinecke@intevation.de>
date Wed, 20 Aug 2014 18:55:53 +0200
parents 6978381671eb
children e48ad80c3aca
files ui/mainwindow.cpp
diffstat 1 files changed, 9 insertions(+), 0 deletions(-) [+]
line wrap: on
line diff
--- 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..."));

http://wald.intevation.org/projects/trustbridge/