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 摘要。