anchor.diff:              | true -> downloadInstaller tempInstallerScript
               | false -> tempInstallerScript
   
  +    // set custom install directory
  +    if param.InstallDirectory.IsSome then
  +        setEnvironVar "DOTNET_INSTALL_DIR" param.InstallDirectory.Value
  +
       let args = sprintf "-NoProfile -NoLogo -Command \"%s %s; exit $LastExitCode;\"" installScript (buildDotnetCliInstallArgs param)
       let exitCode = 
           ExecProcess (fun info ->
  
positive.code:         AlwaysDownload = false
          Version = Latest
          Channel = None
      }
  
  let private optionToParam option paramFormat =
  
negative.code:         Version: DotnetCliVersion;
          /// Distribution channel
          Channel: string option;
          /// Custom installation directory (for local build installation)
          InstallDirectory: string option
      }
  
      /// Parameter default values.
  