Example #1
0
        private static bool PartialUpgrade()
        {
            if (!WaitUntilAnotherVersionIsClosed())
            {
                return(false);
            }

            if (PrivilegeHelper.IsHelperUpgradeRequired())
            {
                return(AskAndUpgradeHelper());
            }

            return(true);
        }
Example #2
0
        private static bool FullUpgradeIfRequired()
        {
            if (!IsRunFromApplicationFolder())
            {
                NSAlert alert = NSAlert.WithMessage(
                    "IVPN client can only run from the Applications folder. Please move the IVPN.app into the /Applications folder",
                    "Quit", null, null, "");
                alert.RunModal();

                return(false);
            }
            else
            if (PrivilegeHelper.IsHelperUpgradeRequired())
            {
                return(AskAndUpgradeHelper());
            }

            return(true);
        }