7-zip access denied error when overwriting files in game folder (in program files)

未關閉
#87 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視

還沒有人認領這個 Issue。

評估

難度
4/5
預估耗時
3-5 天
新手友好度
35/100
Issue 類型
缺陷
描述清晰度
基本清楚
活躍度
停滯
技術堆疊
python
領域
cli, desktop

研究方向

該問題涉及 7-zip 因存取被拒錯誤而無法覆寫 Windows Program Files 目錄中的檔案。首先檢查修補程式的檔案擷取邏輯,可能位於處理 7-zip 呼叫或檔案操作的模組中。在裝有防毒軟體且使用非管理員使用者的 Windows 虛擬機器上重現該錯誤,以了解確切條件。檢查修補程式如何處理檔案權限和覆寫操作,並尋找在受保護目錄中移動或刪除檔案的現有程式碼。

由索引模型根據 Issue 內容生成。

描述

Some users have been reporting an error something like:

ERROR: Can not delete output file : Access is denied. : C:\Program Files (x86)\GOG Galaxy\Games\Umineko When They Cry - Question Arcs\BGM\system0.ogg

I've seen this happen to a higurashi user, and two umineko users (one using GOG Galaxy).

Some things with this issue:

  • running the installer again doesn't fix the error (it will fail every time)
  • running as administrator doesn't fix the error (hopefully when this was done it actually made 7zip also run as admin mode)
  • moving the game folder somewhere other than program files first did seem to solve the issue (only one person has tried this though)
  • probably has to do with overwriting files in the 'program files' folder of windows

I would like to test some things on a windows virtual machine (add antivirus software, run as a non-admin user etc.) to see if I can reproduce the error, but I haven't done so yet.


Higurashi example error:

ERROR: Can not open output file : Access is denied. : c:\program files (x86)\steam\steamapps\common\Higurashi 03 - Tatarigoroshi\HigurashiEp03_Data\StreamingAssets\CG\sprite\normal\re2b_komaru_b1_1.png
ERROR: Can not open output file : Access is denied. : c:\program files (x86)\steam\steamapps\common\Higurashi 03 - Tatarigoroshi\HigurashiEp03_Data\StreamingAssets\CG\sprite\normal\re2b_komaru_b1_2.png
ERROR: Can not open output file : Access is denied. : c:\program files (x86)\steam\steamapps\common\Higurashi 03 - Tatarigoroshi\HigurashiEp03_Data\StreamingAssets\CG\sprite\normal\re2b_warai_b1_0.png
ERROR: Can not open output file : Access is denied. : c:\program files (x86)\steam\steamapps\common\Higurashi 03 - Tatarigoroshi\HigurashiEp03_Data\StreamingAssets\CG\sprite\normal\re2b_warai_b1_1.png


Note that for umineko, currently there are only 3 files which fail to be overwritten:

  • movie\umineko_op.mpg
  • movie\umineko_op3.mpg
  • BGM\system0.ogg (if using the bgm music patch)
主要語言
JavaScript
星號
216
分支
12
PR 合併指標
30 天內沒有已合併 PR

環境準備

  • 沒有 Dockerfile 或 Docker Compose 檔案
  • 沒有 Pull Request 範本
  • 閱讀貢獻指南

從這裡開始

  1. 先讀完整個 Issue,再讀專案的貢獻指南。
  2. 在 Issue 下留言說明你要接手 —— 這能避免兩個人做同樣的事。
  3. Fork 儲存庫,在一個分支上完成修改。
  4. 送出 Pull Request,並在描述裡引用這個 Issue 編號。

07th-mod/python-patcher 的其他 Issue

查看 07th-mod/python-patcher 的全部 Issue

相似的 Issue

更多 JavaScript Issue

把新 issue 寄到你的電子郵件信箱

精選適合新手參與的 GitHub issue 摘要。