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

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

オープン
#87 コメント 0 件 リアクション 0 件 担当者 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 VMでエラーを再現します。パッチャーがファイルの権限と上書きをどのように処理しているかを確認し、保護されたディレクトリ内のファイルを移動または削除する既存のコードを探してください。

索引モデルが issue の本文から書いたものです。

評価

技術スタック
python
領域
cli, desktop
issue の種類
バグ
難易度
4/5
見積もり時間
3〜5日
活発さ
停滞
明瞭さ
おおむね明確
初心者へのやさしさ
35/100

新しい issue をメールで受け取る

初心者向けの GitHub issue を短くまとめたダイジェスト。