07th-mod / 07th-mod/python-patcher

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

未關閉
#87 0 則留言 0 個 reaction 已指派 0 人 在 GitHub 檢視
主要語言
JavaScript
星號
214
分支
12
PR 合併指標
30 天內沒有已合併 PR

描述

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)

貢獻指南

這個儲存庫沒有索引到貢獻指南

研究方向

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

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

評估

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

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

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