From 36af55cacc8392264ed2c0a3dc27324a7ad3583c Mon Sep 17 00:00:00 2001 From: MikeMaximus Date: Fri, 29 Dec 2017 14:21:27 -0600 Subject: [PATCH] Added Start with Windows setting admin warning --- GBM/Forms/frmSettings.vb | 5 +++++ GBM/My Project/Resources.Designer.vb | 9 +++++++++ GBM/My Project/Resources.resx | 3 +++ 3 files changed, 17 insertions(+) diff --git a/GBM/Forms/frmSettings.vb b/GBM/Forms/frmSettings.vb index 42fa217..45b27b5 100644 --- a/GBM/Forms/frmSettings.vb +++ b/GBM/Forms/frmSettings.vb @@ -34,6 +34,11 @@ Public Class frmSettings Private Function ValidateSettings() As Boolean + 'Show Start with Windows warning if running as admin + If chkStartWindows.Checked And mgrCommon.IsElevated Then + mgrCommon.ShowMessage(frmSettings_WarningAdminStart, MsgBoxStyle.Exclamation) + End If + 'Only modify registry key when the value changed If chkStartWindows.Checked <> oSettings.StartWithWindows Then HandleRegistryUpdate(chkStartWindows.Checked) diff --git a/GBM/My Project/Resources.Designer.vb b/GBM/My Project/Resources.Designer.vb index a6354b6..39f1b9d 100644 --- a/GBM/My Project/Resources.Designer.vb +++ b/GBM/My Project/Resources.Designer.vb @@ -4155,6 +4155,15 @@ Namespace My.Resources End Get End Property + ''' + ''' Looks up a localized string similar to Please note that GBM will not "Start with Windows" as Administrator.[BR][BR]See the Online Manual in the Help menu for details.. + ''' + Friend ReadOnly Property frmSettings_WarningAdminStart() As String + Get + Return ResourceManager.GetString("frmSettings_WarningAdminStart", resourceCulture) + End Get + End Property + ''' ''' Looks up a localized string similar to Invalid or poorly formatted 7-Zip arguments can cause backup or restore operations to fail.[BR][BR]If problems occur, clear the custom arguments and try again.. ''' diff --git a/GBM/My Project/Resources.resx b/GBM/My Project/Resources.resx index 900923c..3f436d0 100644 --- a/GBM/My Project/Resources.resx +++ b/GBM/My Project/Resources.resx @@ -1945,4 +1945,7 @@ Enable session tracking + + Please note that GBM will not "Start with Windows" as Administrator.[BR][BR]See the Online Manual in the Help menu for details. + \ No newline at end of file