public void Process() { if (!processManager.IsCurrentProcessElevated()) { logger.Information("Current process is not elevated which is needed for installation. Starting as elevated process."); processManager.LaunchFileWithAdministrativeRights( processManager.GetCurrentProcessPath()); } else { logger.Information("Current process is elevated."); logger.Information("Running installation procedure."); Install(); } }