在用winget安装GameInput时出现错误代码1603

clod huang 0 信誉分
2025-12-13T13:21:01.09+00:00

首先,我使用命令winget install Microsoft.GameInput尝试安装GameInput服务,显示“安装程序失败,退出代码为: 1603“屏幕截图 2025-12-13 202814

当我查看日志文件,上面显示

=== Logging started: 2025/12/13 19:40:57 === Action start 19:40:57: INSTALL. Action start 19:40:57: FindRelatedProducts. Action ended 19:40:57: FindRelatedProducts. Return value 1. Action start 19:40:57: SetTARGETDIR. Action ended 19:40:57: SetTARGETDIR. Return value 1. Action start 19:40:57: AppSearch. Action ended 19:40:57: AppSearch. Return value 1. Action start 19:40:57: LaunchConditions. Action ended 19:40:57: LaunchConditions. Return value 1. Action start 19:40:57: ValidateProductID. Action ended 19:40:57: ValidateProductID. Return value 1. Action start 19:40:57: CostInitialize. Action ended 19:40:57: CostInitialize. Return value 1. Action start 19:40:57: FileCost. Action ended 19:40:57: FileCost. Return value 1. Action start 19:40:57: CostFinalize. Action ended 19:40:57: CostFinalize. Return value 1. Action start 19:40:57: MigrateFeatureStates. Action ended 19:40:57: MigrateFeatureStates. Return value 1. Action start 19:40:57: InstallValidate. Action ended 19:40:58: InstallValidate. Return value 1. Action start 19:40:58: InstallInitialize. Action ended 19:40:58: InstallInitialize. Return value 1. Action start 19:40:58: CA_UninstallServiceCommand. Action ended 19:40:58: CA_UninstallServiceCommand. Return value 1. Action start 19:40:58: RemoveExistingProducts. CustomAction returned actual error code 1612 (note this may not be 100% accurate if translation happened inside sandbox) MSI (s) (D8:24) [19:40:58:053]: Product: Microsoft GameInput -- Error 1714. The older version of Microsoft GameInput cannot be removed. Contact your technical support group. System Error 1612. Error 1714. The older version of Microsoft GameInput cannot be removed. Contact your technical support group. System Error 1612. Action ended 19:40:58: RemoveExistingProducts. Return value 3. Action ended 19:40:58: INSTALL. Return value 3. Property(S): UpgradeCode = {EB53D3A0-F53C-50FF-BB3B-13C5B310D4DA} Property(S): PROGRAMFILESROOT = C:\Program Files
Property(S): CURRENTBUILDNUM = 26200 Property(S): TARGETDIR = C:
Property(S): KitsRoot = C:\Program Files\Windows Kits\10
Property(S): dir849883a809c86d055aeb39c8ce0be32b = C:\Program Files\Microsoft GameInput\x64
Property(S): dir7278ff61cb125057b660e94986b2392e = C:\Program Files\Microsoft GameInput\x86
Property(S): dirCatalogRepositoryDirectory = C:\Program Files\Windows Kits\10\Catalogs
Property(S): CustomExitEarlyWithSuccessScript = Function Main() Main = 5 End Function Property(S): CA_UninstallServiceExecute = "C:\Program Files\Microsoft GameInput\x64\gameinputredistservice.exe" /servicedeconfig Property(S): WindowsKitsParent = C:\Program Files\Windows Kits
Property(S): ProgramFiles64Folder = C:\Program Files
Property(S): GameInputRedistFolder = C:\Program Files\Microsoft GameInput
Property(S): VersionNT = 603 Property(S): GAMEINPUTVERSION = 3.1.26100.6879 Property(S): NOUSERNAME = 1 Property(S): ALLUSERS = 1 Property(S): ProductArchitecture = x64 Property(S): BUILDREVISION = 251019-2200 Property(S): Manufacturer = Microsoft Corporation Property(S): ProductCode = {ECB4BDD1-984C-9F25-299C-A9EF75C14197} Property(S): ProductLanguage = 1033 Property(S): ProductName = Microsoft GameInput Property(S): ProductVersion = 10.1.26100.6879 Property(S): SecureCustomProperties = IGNOREDEPENDENCIES;NEWERVERSIONDETECTED;PREVIOUSVERSIONSINSTALLED;WIX_DOWNGRADE_DETECTED;WIX_UPGRADE_DETECTED Property(S): NEWERVERSIONDETECTED = {F563DC73-9550-F772-B4BF-2F72C83F9F30} Property(S): WIX_UPGRADE_DETECTED = {F563DC73-9550-F772-B4BF-2F72C83F9F30} Property(S): MsiLogFileLocation = C:\Users\clodh\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir\Microsoft.GameInput.3.1.26100.6879-25-12-13-19-40-14.log Property(S): PackageCode = {FC1529BB-219C-4D62-9A21-8B8219BEAF12} Property(S): ProductState = -1 Property(S): PackagecodeChanging = 1 Property(S): REBOOTPROMPT = S Property(S): REBOOT = ReallySuppress Property(S): CURRENTDIRECTORY = C:\Users\clodh Property(S): CLIENTUILEVEL = 2 Property(S): CLIENTPROCESSID = 31052 Property(S): VersionDatabase = 400 Property(S): VersionMsi = 5.00 Property(S): VersionNT64 = 603 Property(S): WindowsBuild = 9600 Property(S): ServicePackLevel = 0 Property(S): ServicePackLevelMinor = 0 Property(S): MsiNTProductType = 1 Property(S): WindowsFolder = C:\WINDOWS
Property(S): WindowsVolume = C:
Property(S): System64Folder = C:\WINDOWS\system32
Property(S): SystemFolder = C:\WINDOWS\SysWOW64
Property(S): RemoteAdminTS = 1 Property(S): TempFolder = C:\Users\clodh\AppData\Local\Temp
Property(S): ProgramFilesFolder = C:\Program Files (x86)
Property(S): CommonFilesFolder = C:\Program Files (x86)\Common Files
Property(S): CommonFiles64Folder = C:\Program Files\Common Files
Property(S): AppDataFolder = C:\Users\clodh\AppData\Roaming
Property(S): FavoritesFolder = C:\Users\clodh\Favorites
Property(S): NetHoodFolder = C:\Users\clodh\AppData\Roaming\Microsoft\Windows\Network Shortcuts
Property(S): PersonalFolder = C:\Users\clodh\Documents
Property(S): PrintHoodFolder = C:\Users\clodh\AppData\Roaming\Microsoft\Windows\Printer Shortcuts
Property(S): RecentFolder = C:\Users\clodh\AppData\Roaming\Microsoft\Windows\Recent
Property(S): SendToFolder = C:\Users\clodh\AppData\Roaming\Microsoft\Windows\SendTo
Property(S): TemplateFolder = C:\ProgramData\Microsoft\Windows\Templates
Property(S): CommonAppDataFolder = C:\ProgramData
Property(S): LocalAppDataFolder = C:\Users\clodh\AppData\Local
Property(S): MyPicturesFolder = C:\Users\clodh\Pictures
Property(S): AdminToolsFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Administrative Tools
Property(S): StartupFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Startup
Property(S): ProgramMenuFolder = C:\ProgramData\Microsoft\Windows\Start Menu\Programs
Property(S): StartMenuFolder = C:\ProgramData\Microsoft\Windows\Start Menu
Property(S): DesktopFolder = C:\Users\Public\Desktop
Property(S): FontsFolder = C:\WINDOWS\Fonts
Property(S): GPTSupport = 1 Property(S): OLEAdvtSupport = 1 Property(S): ShellAdvtSupport = 1 Property(S): MsiAMD64 = 6 Property(S): Msix64 = 6 Property(S): Intel = 6 Property(S): PhysicalMemory = 16088 Property(S): VirtualMemory = 16832 Property(S): AdminUser = 1 Property(S): MsiTrueAdminUser = 1 Property(S): LogonUser = clodh Property(S): UserSID = S-1-5-21-1073123136-59142422-61571517-1001 Property(S): UserLanguageID = 2052 Property(S): ComputerName = DESKTOP-KBCV8PO Property(S): SystemLanguageID = 2052 Property(S): ScreenX = 1024 Property(S): ScreenY = 768 Property(S): CaptionHeight = 23 Property(S): BorderTop = 1 Property(S): BorderSide = 1 Property(S): MsiTabletPC = 1 Property(S): TextHeight = 16 Property(S): TextInternalLeading = 3 Property(S): ColorBits = 32 Property(S): TTCSupport = 1 Property(S): Time = 19:40:58 Property(S): Date = 2025/12/13 Property(S): MsiNetAssemblySupport = 4.8.9221.0 Property(S): MsiWin32AssemblySupport = 6.3.26100.7309 Property(S): RedirectedDllSupport = 2 Property(S): MsiRunningElevated = 1 Property(S): Privileged = 1 Property(S): DATABASE = C:\WINDOWS\Installer\70399.msi Property(S): OriginalDatabase = C:\Users\clodh\AppData\Local\Temp\WinGet\Microsoft.GameInput.3.1.26100.6879\GameInputRedist.msi Property(S): UILevel = 3 Property(S): MsiUIProgressOnly = 1 Property(S): MsiUIHideCancel = 1 Property(S): ACTION = INSTALL Property(S): MIGRATE = {F563DC73-9550-F772-B4BF-2F72C83F9F30} Property(S): ROOTDRIVE = E:
Property(S): CostingComplete = 1 Property(S): OutOfDiskSpace = 0 Property(S): OutOfNoRbDiskSpace = 0 Property(S): PrimaryVolumeSpaceAvailable = 0 Property(S): PrimaryVolumeSpaceRequired = 0 Property(S): PrimaryVolumeSpaceRemaining = 0 Property(S): INSTALLLEVEL = 1 MSI (s) (D8:24) [19:40:58:155]: Windows Installer 已安装产品。产品名称: Microsoft GameInput。产品版本: 10.1.26100.6879。产品语言: 1033。制造商: Microsoft Corporation。安装成功或错误状态: 1603。 === Logging stopped: 2025/12/13 19:40:58 ===

Winget日志文件显示

2025-12-13 20:16:14.607 [CORE] WinGet, version [1.12.350], activity [{9C535CA6-7A0E-4276-88F1-8776C8E9518F}] 2025-12-13 20:16:14.607 [CORE] OS: Windows.Desktop v10.0.26200.7462 2025-12-13 20:16:14.608 [CORE] Command line Args: "C:\Users\clodh\AppData\Local\Microsoft\WindowsApps\winget.exe" install Microsoft.GameInput 2025-12-13 20:16:14.608 [CORE] Package: Microsoft.DesktopAppInstaller v1.27.350.0 2025-12-13 20:16:14.608 [CORE] IsCOMCall:0; Caller: winget-cli 2025-12-13 20:16:14.612 [CLI ] WinGet invoked with arguments: 'install' 'Microsoft.GameInput' 2025-12-13 20:16:14.613 [CLI ] Found subcommand: install 2025-12-13 20:16:14.613 [CLI ] Leaf command to execute: root:install 2025-12-13 20:16:14.614 [CLI ] Executing command: install 2025-12-13 20:16:14.622 [REPO] Source named 'msstore' is already defined at origin User. The source from origin Default is dropped. 2025-12-13 20:16:14.622 [REPO] Source named 'winget' is already defined at origin User. The source from origin Default is dropped. 2025-12-13 20:16:14.622 [REPO] Default source requested, multiple sources available, adding all to source references. 2025-12-13 20:16:14.622 [REPO] Adding to source references ustcget 2025-12-13 20:16:14.622 [REPO] Skipping explicit source reference winget-font 2025-12-13 20:16:14.622 [CLI ] Created authentication arguments. Mode: silentPreferred, Account: 2025-12-13 20:16:14.634 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB 2025-12-13 20:16:14.634 [CORE] Found matching extension. 2025-12-13 20:16:14.641 [CORE] Examining extension: PFN = Microsoft.Winget.Source_8wekyb3d8bbwe, ID = IndexDB 2025-12-13 20:16:14.641 [CORE] Found matching extension. 2025-12-13 20:16:14.663 [REPO] Opening database for ImmutableRead at 'C:\Program Files\WindowsApps\Microsoft.Winget.Source_2025.1204.1823.33_neutral__8wekyb3d8bbwe\Public\index.db' 2025-12-13 20:16:14.666 [REPO] Opened SQLite Index with version [2.0], last write [2025-12-05 01:21:48.000] 2025-12-13 20:16:14.734 [REPO] Source named 'msstore' is already defined at origin User. The source from origin Default is dropped. 2025-12-13 20:16:14.734 [REPO] Source named 'winget' is already defined at origin User. The source from origin Default is dropped. 2025-12-13 20:16:14.736 [REPO] Creating new SQLite Index with version [Latest] at ':memory:' 2025-12-13 20:16:14.739 [REPO] Reading MSI UpgradeCodes 2025-12-13 20:16:14.812 [REPO] Reading MSI UpgradeCodes 2025-12-13 20:16:15.380 [REPO] Opening database for ReadWrite at 'C:\Users\clodh\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\Microsoft.Winget.Source_8wekyb3d8bbwe\installed.db' 2025-12-13 20:16:15.381 [REPO] Opened SQLite Index with version [1.7], last write [2025-04-16 13:26:43.000] 2025-12-13 20:16:15.421 [CLI ] Found one app. App id: Microsoft.GameInput App name: Microsoft GameInput 2025-12-13 20:16:15.427 [REPO] Attempting to open pinning database: C:\Users\clodh\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\pinning.db 2025-12-13 20:16:15.432 [CLI ] Manifest fields: Name [Microsoft GameInput], Version [3.1.26100.6879] 2025-12-13 20:16:15.454 [CLI ] Found existing installer file at 'C:\Users\clodh\AppData\Local\Temp\WinGet\Microsoft.GameInput.3.1.26100.6879\GameInputRedist.msi'. Verifying file hash. 2025-12-13 20:16:15.459 [CLI ] Existing installer file hash matches. Will use existing installer. 2025-12-13 20:16:15.459 [CLI ] Installer hash verified 2025-12-13 20:16:15.459 [CORE] Started applying motw using IAttachmentExecute to C:\Users\clodh\AppData\Local\Temp\WinGet\Microsoft.GameInput.3.1.26100.6879\GameInputRedist.msi 2025-12-13 20:16:15.508 [CORE] Finished applying motw using IAttachmentExecute. Result: 0 IAttachmentExecute::Save() result: 0 2025-12-13 20:16:15.508 [REPO] Creating new SQLite Index with version [Latest] at ':memory:' 2025-12-13 20:16:15.513 [REPO] Reading MSI UpgradeCodes 2025-12-13 20:16:15.596 [REPO] Reading MSI UpgradeCodes 2025-12-13 20:16:15.731 [CLI ] Installer args: /passive /norestart /log "C:\Users\clodh\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir\Microsoft.GameInput.3.1.26100.6879-25-12-13-20-16-15.log" 2025-12-13 20:16:15.731 [CLI ] Starting: 'C:\Users\clodh\AppData\Local\Temp\WinGet\Microsoft.GameInput.3.1.26100.6879\GameInputRedist.msi' with arguments '/passive /norestart /log "C:\Users\clodh\AppData\Local\Packages\Microsoft.DesktopAppInstaller_8wekyb3d8bbwe\LocalState\DiagOutputDir\Microsoft.GameInput.3.1.26100.6879-25-12-13-20-16-15.log"' 2025-12-13 20:16:35.559 [CLI ] ShellExecute installer failed: 1603 2025-12-13 20:16:35.561 [CLI ] Terminating context: 0x8a150006 at C:__w\1\s\external\pkg\src\AppInstallerCLICore\Workflows\InstallFlow.cpp:233

也就是显示尝试卸载旧安装包失败,以及找不到有效安装源。

但我事实上没有GameInput程序,也就导致而当我尝试比如

msiexec /x {ECB4BDD1-984C-9F25-299C-A9EF75C14197}
msiexec /x {ECB4BDD1-984C-9F25-299C-A9EF75C14197} /l*v "%temp%\GameInput_uninstall.log"
wmic product where "IdentifyingNumber='{ECB4BDD1-984C-9F25-299C-A9EF75C14197}'" call uninstall /nointeractive
wmic product where "name like 'Microsoft GameInput%'" call uninstall /nointeractive  

等命令时,直接显示没有或失败。

屏幕截图 2025-12-13 203153屏幕截图 2025-12-13 203349

而当我双击C:\Users\clodh\AppData\Local\Temp\WinGet\Microsoft.GameInput.3.1.26100.6879文件夹下的GameInputRedist.msi时,显示

Click OK to try again, or enter an alternate path to a folder containing the installation package 'GamelnputRedist.msi in the box below.

图片

点击OK后显示

The path 'C:\Program Files\WindowsApps\Microsoft.GamingServices_31.105.17001.0_x64_8wekyb3d8bbwe\GamelnputRedist.msicannot be found. Verify that you have access to this location and try again, or try to find the installation package 'GamelnputRedist.msi' in a folder from which you can install the product.

图片 而当我在C:\Program Files\WindowsApps\Microsoft.GamingServices_33.107.13001.0_x64__8wekyb3d8bbwe文件夹下,双击GameInputRedist.msi时,依旧显示

Click OK to try again, or enter an alternate path to a folder containing the installation package 'GamelnputRedist.msi in the box below.

图片 点击OK后也依旧显示

The path 'C:\Program Files\WindowsApps\Microsoft.GamingServices_31.105.17001.0_x64_8wekyb3d8bbwe\GamelnputRedist.msicannot be found. Verify that you have access to this location and try again, or try to find the installation package 'GamelnputRedist.msi' in a folder from which you can install the product.

图片 当我尝试

msiexec /i "GameInputRedist.msi" /qn /l*vx C:\Users\clodh\Desktop\gameinput_repair.log

命令,log文件显示

=== Verbose logging started: 2025/12/13 20:53:23 Build type: SHIP UNICODE 5.00.10011.00 Calling process: C:\Windows\system32\msiexec.exe === MSI (c) (B0:34) [20:53:23:605]: Resetting cached policy values MSI (c) (B0:34) [20:53:23:605]: Machine policy value 'Debug' is 0 MSI (c) (B0:34) [20:53:23:605]: ******* RunEngine: ******* Product: GameInputRedist.msi ******* Action: ******* CommandLine: ********** MSI (c) (B0:34) [20:53:23:606]: Client-side and UI is none or basic: Running entire install on the server. MSI (c) (B0:34) [20:53:23:607]: Grabbed execution mutex. MSI (c) (B0:34) [20:53:23:617]: Cloaking enabled. MSI (c) (B0:34) [20:53:23:617]: Attempting to enable all disabled privileges before calling Install on Server MSI (c) (B0:34) [20:53:23:625]: Incrementing counter to disable shutdown. Counter after increment: 0 MSI (s) (F0:38) [20:53:23:635]: Running installation inside multi-package transaction C:\Users\clodh\GameInputRedist.msi MSI (s) (F0:38) [20:53:23:635]: Grabbed execution mutex. MSI (s) (F0:F0) [20:53:23:644]: Resetting cached policy values MSI (s) (F0:F0) [20:53:23:644]: Machine policy value 'Debug' is 0 MSI (s) (F0:F0) [20:53:23:644]: ******* RunEngine: ******* Product: C:\Users\clodh\GameInputRedist.msi ******* Action: ******* CommandLine: ********** MSI (s) (F0:F0) [20:53:23:644]: Note: 1: 2203 2: C:\Users\clodh\GameInputRedist.msi 3: -2147287038 MSI (s) (F0:F0) [20:53:23:645]: MainEngineThread is returning 2 MSI (s) (F0:38) [20:53:23:646]: User policy value 'DisableRollback' is 0 MSI (s) (F0:38) [20:53:23:647]: Machine policy value 'DisableRollback' is 0 MSI (s) (F0:38) [20:53:23:647]: Incrementing counter to disable shutdown. Counter after increment: 0 MSI (s) (F0:38) [20:53:23:647]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 MSI (s) (F0:38) [20:53:23:647]: Note: 1: 1402 2: HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Installer\Rollback\Scripts 3: 2 MSI (s) (F0:38) [20:53:23:648]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1 MSI (c) (B0:34) [20:53:23:651]: Decrementing counter to disable shutdown. If counter >= 0, shutdown will be denied. Counter after decrement: -1 MSI (c) (B0:34) [20:53:23:653]: MainEngineThread is returning 2 === Verbose logging stopped: 2025/12/13 20:53:23 ===

Windows 家庭版 | Windows 11 | “应用”
{count} 票

你的答案

提问者可以将答案标记为“已接受”,版主可以将答案标记为“已推荐”,这有助于用户了解答案是否解决了提问者的问题。