随机
Enter 搜索 ↑↓ 切换 Esc 清空

win-install-files

命令

Windows 安装 Files · 文件管理器增强版

补充说明

FilesCommunity.Files(Files) 是一款开源现代化 Windows 文件管理器,采用 Material Design 风格,原生支持简体中文。支持浏览器式多标签、分栏布局、内置终端、文件预览、云盘接入、深色 / 透明主题,完全免费开源,适合替代系统自带资源管理器。

安装方法

安装依赖

winget 一键安装依赖(推荐)

winget install -e --id Microsoft.DotNet.WindowsDesktopRuntime.10 --silent --accept-package-agreements

winget 卸载依赖

winget uninstall Microsoft.DotNet.WindowsDesktopRuntime.10 --silent

一、PowerShell AppInstaller 在线安装(推荐,自动更新)

管理员 PowerShell 执行,等待窗口顶部蓝色进度条完成,安装后可在开始菜单找到 Files

稳定分支

Add-AppxPackage -AppInstallerFile https://cdn.files.community/files/stable/Files.Package.appinstaller

预览分支(测试版)

Add-AppxPackage -AppInstallerFile https://cdn.files.community/files/preview/Files.Package.appinstaller

二、离线安装(适用于无外网、精简系统,手动安装全部依赖包)

CMD 下载安装命令

cd /d "%USERPROFILE%\Downloads" ^
&& curl.exe -L -o Microsoft.VCLibs.x64.14.00.Desktop.appx https://cdn.files.community/files/stable/Files.Package/Dependencies/x64/Microsoft.VCLibs.x64.14.00.Desktop.appx ^
&& powershell -Command "Add-AppxPackage -Path '.\Microsoft.VCLibs.x64.14.00.Desktop.appx'" ^
&& curl.exe -L -o Microsoft.VCLibs.x64.14.00.appx https://cdn.files.community/files/stable/Files.Package/Dependencies/x64/Microsoft.VCLibs.x64.14.00.appx ^
&& powershell -Command "Add-AppxPackage -Path '.\Microsoft.VCLibs.x64.14.00.appx'" ^
&& curl.exe -L -o Microsoft.WindowsAppRuntime.2.msix https://cdn.files.community/files/stable/Files.Package/Dependencies/x64/Microsoft.WindowsAppRuntime.2.msix ^
&& powershell -Command "Add-AppxPackage -Path '.\Microsoft.WindowsAppRuntime.2.msix'" ^
&& curl.exe -L -o Files.Package_x64_arm64.msixbundle https://cdn.files.community/files/stable/Files.Package/Files.Package_x64_arm64.msixbundle ^
&& powershell -Command "Add-AppxPackage -Path '.\Files.Package_x64_arm64.msixbundle'"

PowerShell 下载安装命令

# 切换到下载目录
cd "$env:USERPROFILE\Downloads"

# 1. Microsoft.VCLibs.x64.14.00.Desktop.appx
curl.exe -L -o Microsoft.VCLibs.x64.14.00.Desktop.appx https://cdn.files.community/files/stable/Files.Package/Dependencies/x64/Microsoft.VCLibs.x64.14.00.Desktop.appx
Add-AppxPackage -Path ".\Microsoft.VCLibs.x64.14.00.Desktop.appx"

# 2. Microsoft.VCLibs.x64.14.00.appx
curl.exe -L -o Microsoft.VCLibs.x64.14.00.appx https://cdn.files.community/files/stable/Files.Package/Dependencies/x64/Microsoft.VCLibs.x64.14.00.appx
Add-AppxPackage -Path ".\Microsoft.VCLibs.x64.14.00.appx"

# 3. Microsoft.WindowsAppRuntime.2.msix
curl.exe -L -o Microsoft.WindowsAppRuntime.2.msix https://cdn.files.community/files/stable/Files.Package/Dependencies/x64/Microsoft.WindowsAppRuntime.2.msix
Add-AppxPackage -Path ".\Microsoft.WindowsAppRuntime.2.msix"

# 4. Files.Package_x64_arm64.msixbundle
curl.exe -L -o Files.Package_x64_arm64.msixbundle https://cdn.files.community/files/stable/Files.Package/Files.Package_x64_arm64.msixbundle
Add-AppxPackage -Path ".\Files.Package_x64_arm64.msixbundle"

三、winget 安装命令

推荐使用 winget 安装,自动处理 VCLibs、WindowsAppRuntime 依赖,稳定版静默安装

# 稳定版静默安装(-e 精确匹配包 ID,防止装错)
winget install -e --id FilesCommunity.Files --silent --accept-package-agreements
# 查看本机已安装 Files
winget list FilesCommunity.Files

预览版(测试版)

# 预览版静默安装
winget install -e --id FilesCommunity.FilesPreview --silent --accept-package-agreements
# 查看本机已安装 FilesPreview
winget list FilesCommunity.FilesPreview

winget 参数说明

参数 作用
-e(--exact) 精确匹配包 ID,防止名称模糊匹配装错软件
--id 指定要安装的包 ID
--silent 静默安装,不弹出安装向导窗口
--accept-package-agreements 自动同意软件许可协议,自动化部署必备
--accept-source-agreements 同意源协议,批量脚本使用

winget 检查升级

# 检查并静默升级 Files稳定版
winget upgrade FilesCommunity.Files --silent

⚠️ 注意:winget 仓库版本会滞后官网,winget 提示无更新不代表官网没有新版本,AppInstaller 在线安装方式自带自动更新。

Windows winget 卸载

# 管理员PowerShell,静默无弹窗卸载主程序
winget uninstall FilesCommunity.Files --silent

# 验证卸载成功(无输出即代表主程序已移除)
winget list FilesCommunity.Files

【彻底卸载,清理配置残留】完整一键脚本

# 结束Files进程
taskkill /f /im Files.exe

# 卸载主程序
winget uninstall FilesCommunity.Files --silent

# 删除本地所有配置、布局、缓存
Remove-Item "$env:LOCALAPPDATA\Packages\FilesCommunity.Files_*" -Recurse -Force -ErrorAction SilentlyContinue

Write-Host "FilesCommunity.Files 主程序与配置残留清理完成"

使用前提

执行结果

补充要点

相关命令