/// <summary> /// Performs the entry point pre-checks; custom as well as 'RequiresElevatedPrivileges'. /// </summary> public void PerformEntryPointPreChecks() { if (this.RequiresElevatedPrivileges) { if (!ProcessHelpers.IsCurrentlyRunningAsAdmin()) { throw new NotSupportedException("This application requires elevated privileges, please run as administrator."); } } this.CustomPerformEntryPointPreChecks(); }