.Net Desktop Runtime for をダウンロードしてインストールする AI デスクトップアクション

  • リリースバージョン: Australia
  • 更新日 2026年02月03日
  • 所要時間:3分
  • 指示に従って .Net Desktop Runtime をダウンロードしてインストールすることで、セットアップ時間を短縮し、インストールエラーを防ぎます。

    始める前に

    AI デスクトップアクション MSI がインストールされていることを確認します。詳細については、「AI デスクトップアクション インストーラをダウンロード」を参照してください。

    必要なロール:admin

    このタスクについて

    AI デスクトップアクション インストーラーは、セットアップ中に .NET Desktop Runtime をインストールする手順をガイドします。

    手順

    1. 次のスクリプトをクリップボードにコピーします。
      Write-Host "--- Initializing Agentic Environment Setup ---" -ForegroundColor Cyan
      $ErrorActionPreference = "Stop"
      
      $downloadUrl = "https://dot.net/v1/dotnet-install.ps1"
      $workingDir = $PSScriptRoot
      $scriptPath = Join-Path $workingDir "dotnet-install.ps1"
      
      try {
          Write-Host "[1/3] Downloading official Microsoft installer..." -ForegroundColor Yellow
          Invoke-WebRequest -Uri $downloadUrl -OutFile $scriptPath
      
          Write-Host "[2/3] Installing .NET 9.0.10..." -ForegroundColor Yellow
          Set-Location $workingDir
      
          & .\dotnet-install.ps1 `
              -Architecture x64 `
              -InstallDir "C:\Program Files\dotnet\" `
              -Runtime windowsdesktop `
              -Version 9.0.10
      
          & .\dotnet-install.ps1 `
              -Architecture x64 `
              -InstallDir "C:\Program Files\dotnet\" `
              -Runtime dotnet `
              -Version 9.0.10
      
          Write-Host ""
          Write-Host "--- SUCCESS: System is ready for Agentic Desktop ---" -ForegroundColor Green
      }
      catch {
          Write-Host ""
          Write-Host "--- ERROR: Installation failed ---" -ForegroundColor Red
          Write-Host $_.Exception.Message -ForegroundColor Red
      }
      
      Write-Host ""
      Write-Host "Press any key to exit..."
      $null = $Host.UI.RawUI.ReadKey("NoEcho,IncludeKeyDown")
       
    2. スクリプトを任意のテキストエディターに貼り付けます。
    3. ファイルを拡張子 .ps1 で保存します。
      1. 選択 ファイル > 名前を付けて保存.
      2. [ ファイル名 ] フィールドに名前を入力し、ファイルを 拡張子 .ps1 で保存します。
        例: myscript.ps1
      3. [名前を付けて保存][すべてのファイル (.)] に設定します。
      4. [ドキュメント] や [デスクトップ] などの場所を選択します。
      5. [保存] を選択します。
    4. Windows PowerShell でスクリプトを実行します。
      1. [開始] を選択します。
      2. Windows PowerShell を検索します。
      3. [ アドミニストレーターとして実行] を選択します。
      4. cd コマンドを使用して、スクリプトを保存したフォルダーに移動します。
        例:
        cd C:\Users\YourName\Documents
      5. 次のコマンドを入力してスクリプトを実行します。
        例:
        .\myscript.ps1

    タスクの結果

    .NET Desktop Runtime がシステムにダウンロードされ、インストールされます。

    次のタスク

    AI デスクトップアクションを使用してデスクトップアクションを設計します。詳細については、「AI デスクトップアクションの定義されたパスデスクトップアクション」を参照してください。