microsoft / microsoft/winget-cli

ArchiSteamFarm upgrade removes config file

Open
#5,351 3 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

Command-Upgrade Portable
Dominant language
C++
Stars
26.4k
Forks
1.8k
Avg merge
1d 11h
Merged PRs (30d)
15

Description

Brief description of your issue

ArchiSteamFarm (ASF) stores important configuration files that contain information like login details and settings in "/config". However, it seems that Winget completely wipes the folder when upgrading ASF, deleting the directory and replacing it with an empty one. As such, one would need to set up everything again.

I'm not sure if its related, but, though successfully upgrading ASF (ASF runs with the new version), Winget gives the following error at the end (my username is redacted for privacy):

An unexpected error occurred while executing the command:
copy_file: unknown error: "C:\Users\(username)\AppData\Local\Temp\WinGet\JustArchiNET.ArchiSteamFarm.6.1.4.3\extracted\logs", "C:\Users\(username)\AppData\Local\Microsoft\WinGet\Packages\JustArchiNET.ArchiSteamFarm_Microsoft.Winget.Source_8wekyb3d8bbwe\logs"
Installer failed with exit code: 0x8a150003 : Executing command failed

The following is the full Winget log file (again my username has been redacted):
WinGet-2025-04-03-09-10-45.370.log

Steps to reproduce
  1. Wait for ASF to have an update
  2. Upgrade ASF using Winget
Expected behavior

Winget would upgrade ASF without tampering with any pre-existing data

Actual behavior

Winget removes all configuration files

Environment
Windows: Windows.Desktop v10.0.26100.3624
System Architecture: X64
Package: Microsoft.DesktopAppInstaller v1.25.340.0

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Start by reproducing the ASF upgrade through WinGet on Windows and inspect the attached WinGet log, especially the reported copy_file failure. Done means an upgrade preserves the existing /config data and completes without the reported error.

Written by the indexing model from the issue text.

Assessment

Domain
cli, operating-systems
Issue type
Bug
Difficulty
4/5
Estimated time
3-5 days
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
28/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.