运行时依赖
安装命令
点击复制技能文档
AutoCAD/Autodesk 清理 Un安装 工具 v2.1 Overview
Thoroughly 移除 all residues of AutoCAD and Autodesk software from Windows 系统s, including 安装ation files, user configurations, registry entries, and un安装ation in格式化ion.
Key Features Cross-平台 Compatible: Uses 环境 variables and relative paths, works on any Windows PC with any username Intelligent Discovery: Auto-扫描s registry for actual 安装ation paths, handles non-standard directories (e.g., "Autodesk, Inc.") Step-by-Step Confirmation: 列出s specific items before each dangerous operation and requires confirmation Transparent and Clear: Each step explAIns its purpose and why deletion is necessary Use Cases 清理 up residues after un安装ing AutoCAD/Autodesk software Fix re安装 失败s caused by incomplete un安装ation Free up disk space (typically can release 5-10GB) Thoroughly 移除 personal software data before switching computers Pre-Execution Notes ⚠️ Risk 警告
This 技能 involves the following irreversible operations:
Deleting file directories (may contAIn user files not yet backed up) Deleting registry entries (may affect 系统 functionality) Terminating 运行ning processes Prerequisites Close all 运行ning programs Back up 导入ant CAD files if any Some operations require administrator privileges Step 1: 环境 扫描 (No Confirmation Required) Purpose
Before executing 清理up, comprehensively 扫描 the 系统 to obtAIn actual 安装ation paths from the registry (not limited to standard Autodesk directories), and 列出 all items to be 清理ed. Ensures transparency before 清理up to avoid omissions.
Intelligent Discovery 记录ic Standard directories: C:\Autodesk, C:\Program Files\Autodesk, etc. Registry path: Reads from HKLM\Un安装 安装Location field Common variants: Autodesk, Inc., Autodesk安装ation, etc. Execution Command # ============================================ # 环境 扫描 - Comprehensive Autodesk Residue 检测ion v2.1 # Purpose: Intelligently discover all Autodesk-related directories (standard + registry paths) # Compatibility: Auto-adapts to any 安装ation directory name # ============================================
$ErrorActionPreference = 'SilentlyContinue' Write-Host "" Write-Host "========================================" -ForegroundColor Cyan Write-Host " Autodesk 清理 Un安装 - 环境 扫描" -ForegroundColor Cyan Write-Host "========================================" -ForegroundColor Cyan Write-Host ""
# Global variable: Store all directories to 清理 $global:autodeskDirs = @() $global:autodesk安装ations = @()
# 1. 扫描 安装ed software and 获取 actual 安装ation paths Write-Host "[1] 扫描ning 安装ed Autodesk software..." -ForegroundColor Yellow Write-Host ""
$安装ed = 获取-ItemProperty "HKLM:\SOFTWARE\Microsoft\Windows\CurrentVersion\Un安装\*" | Where-Object { $_.DisplayName -match "autocad|autodesk|fusion|cam360|eagle" } | Select-Object DisplayName, DisplayVersion, 安装Location, PSChildName
if ($安装ed) { foreach ($应用 in $安装ed) { $name = $应用.DisplayName $ver = $应用.DisplayVersion $loc = $应用.安装Location $图形界面d = $应用.PSChildName
Write-Host " [SW] $name" -ForegroundColor Cyan Write-Host " Version: $ver" Write-Host " 图形界面D: $图形界面d"
# Record 安装ation 信息 $global:autodesk安装ations += @{ Name = $name Version = $ver 安装Location = $loc 图形界面D = $图形界面d }
# If 安装ation path exists, 添加 to 清理up 列出 if ($loc -and (Test-Path $loc)) { # 提取 parent directory (handle version subdirectories like C:\Autodesk\AutoCAD_2026) $parentDir = Split-Path $loc -Parent if ($parentDir -and (Test-Path $parentDir)) { $global:autodeskDirs += $parentDir Write-Host " [DIR] 安装 directory: $parentDir" -ForegroundColor Green } $global:autodeskDirs += $loc Write-Host " [DIR] Actual path: $loc" -ForegroundColor Green } Write-Host "" } } else { Write-Host " No 安装ed Autodesk software found" -ForegroundColor Green Write-Host "" }
# 2. 扫描 standard Autodesk directories Write-Host "[2] 扫描ning standard Autodesk directories..." -ForegroundColor Yellow Write-Host ""
$standardDirs = @( "C:\Autodesk", "C:\Program Files\Autodesk", "C:\Program Files (x86)\Autodesk", "C:\ProgramData\Autodesk" )
foreach ($dir in $standardDirs) { if (Test-Path $dir) { $size = (获取-ChildItem $dir -Recurse -ErrorAction SilentlyContinue | Measure-Object -Property Length -Sum).Sum / 1GB $size = [math]::Round($size, 2).ToString() + " GB" Write-Host " [OK] $dir ($size)" -ForegroundColor Green $global:autodeskDirs += $dir } else { Write-Host " [--] $dir (not found)" -ForegroundColor Gray