☰ Categories

CLI silently install software on windows

Ask me for the name of the software as your next question.

CategoryDevelopment › Deploy & operations
TagsDraftingReviewingDeveloperCode
Prompt
Ask me for the name of the software as your next question. 

- You are an IT expert technican. I want you to research, verify and then write powershell commands to silently install or update the software on a Windows 10/11 x86_64 computer.
Workflow:
- If the software is officially available on winget. use winget to install it.
- Elseif the software is available on chocolatey, use chocolatey to install it. 
- Elseif the software is from github. I prefer using dra (https://github.com/devmatteini/dra) to download and install the software.
- Elseif the software is not silently installable, download the software to user's default download folder first and then guide user how to install it and print a url link to the official installation guide.
- Assume winget, chocolatey and dra were already available and on user's computer.
- Always download the software to user's default Download folder. (check registry to find the correct path).
- output the commands in a code box.

What this prompt does

Useful for administrators who need quick install or update commands. It asks the model to verify official availability and locate the Downloads folder, but commands still need checking before execution.

Model comparison

ChatGPT is concise but wrong about download-directory control; Gemini is more specific yet verbose and never uses the resolved path. [C] was not provided.

ChatGPTTop overall
38/ 50

+ Concise, with clear winget install and update commands.

- Incorrectly claims winget cannot set a download directory.

Gemini
35/ 50

+ Provides a concrete deployment-ready detection script.

- Only reads the path and adds an unnecessary fallback.

CriterionChatGPTGeminiLeader
Instruction following66Tie
Accuracy66Tie
Specificity89Gemini +13%
Structure98ChatGPT +13%
Right length96ChatGPT +50%

Scored 1–10 by gpt-5.6-sol with model names hidden (2026-09-24). This is an AI review, not a measurement.

Read full answers

We gave three models the same input and copied their answers unedited. Each ran in its CLI (an agent harness), and answers in the ChatGPT or Claude apps or on the web may differ. Outputs are in Korean.

Input used
[Pasted material]
설치할 소프트웨어는 'Notion'이야. 신입사원 노트북 세팅용 무인 설치 스크립트에 넣을 거라 사용자 개입 없이 조용히 설치되는 방법이 필요해.
gpt-5.6-luna (codex CLI · 에이전트 하네스) · Run on 2026-09-24

확인 결과 Notion은 공식 winget 패키지 Notion.Notion으로 제공되며, winget의 --silent 옵션으로 사용자 개입 없이 설치·업데이트할 수 있습니다.

단, winget이 관리하는 설치 파일은 자체 캐시에 다운로드되므로 다운로드 폴더를 강제로 지정할 수는 없습니다. 다운로드 폴더 경로 확인 명령은 포함했습니다.

# Windows 10/11 x86_64 확인
if (-not [Environment]::Is64BitOperatingSystem) {
    throw "64비트 Windows에서만 실행할 수 있습니다."
}

# 사용자의 기본 다운로드 폴더 확인
$downloads = (Get-ItemProperty `
    "HKCU:\Software\Microsoft\Windows\CurrentVersion\Explorer\User Shell Folders"
)."{374DE290-123F-4565-9164-39C4925E467B}"

$downloads = [Environment]::ExpandEnvironmentVariables($downloads)

# Notion 설치 또는 업데이트
winget install `
    --id Notion.Notion `
    --exact `
    --source winget `
    --silent `
    --accept-package-agreements `
    --accept-source-agreements

이미 설치된 Notion을 확실히 업데이트하려면 다음 명령을 사용합니다.

winget upgrade `
    --id Notion.Notion `
    --exact `
    --source winget `
    --silent `
    --accept-package-agreements `
    --accept-source-agreements

공식 설치 안내: Notion 다운로드 페이지

More in this category

AI Agent Architect — Design Production-Ready Agents in 15 Steps
AI Agent Security Evaluation Checklist
AI Provider Research Expert
AI Trying to Escape the Box
Analyze code scanning security issues and dependency updates if vulnerable