07th-mod / 07th-mod/python-patcher
7-zip access denied error when overwriting files in game folder (in program files)
- Ngôn ngữ chính
- JavaScript
- Star
- 214
- Fork
- 12
- Chỉ số merge pull request
- Không có pull request nào được merge trong 30 ngày
Mô tả
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)
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Hướng nghiên cứu
Vấn đề liên quan đến việc 7-zip không thể ghi đè tệp trong các thư mục Windows Program Files do lỗi truy cập bị từ chối. Bắt đầu bằng cách kiểm tra logic trích xuất tệp của trình vá, có thể nằm trong một mô-đun xử lý các lệnh gọi 7-zip hoặc thao tác tệp. Tái tạo lỗi trên máy ảo Windows có cài phần mềm diệt virus và người dùng không phải quản trị viên để hiểu rõ điều kiện chính xác. Kiểm tra cách trình vá xử lý quyền tệp và ghi đè, đồng thời tìm kiếm mã hiện có di chuyển hoặc xóa tệp trong các thư mục được bảo vệ.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Đánh giá
- Công nghệ
- python
- Lĩnh vực
- cli, desktop
- Loại issue
- Lỗi
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức độ hoạt động
- Đình trệ
- Độ rõ ràng
- Khá rõ ràng
- Mức phù hợp với người mới
- 35/100