public void Install(MachineWideInstallation mwInstl) { if (mwInstl == null) throw new ArgumentNullException("mwInstl"); mwInstl.OnPreparing(); if (HasBeenInstalled(mwInstl.Prerequisite)) { mwInstl.OnCompleted(MachineWideProcessResults.Skipped); return; } EnvironmentRepository.RegisterPackageFolder(); EnvironmentRepository.RegisterToolsPath(); CreateNupkg(mwInstl); RegisterNuGetSource(mwInstl); RegisterEnvironmentVariables(mwInstl); RegisterProfiler(mwInstl); InstallDefaultSource(mwInstl); mwInstl.OnCompleted(MachineWideProcessResults.Completed); }