clash_for_windows_pkg icon indicating copy to clipboard operation
clash_for_windows_pkg copied to clipboard

[Bug]: 无法安装service mode,Fail to install service

Open leafsoul365 opened this issue 3 years ago • 4 comments

请认真检查以下清单中的每一项

  • [X] 已经搜索过,没有发现类似issue
  • [X] 已经搜索过文档,没有发现相关内容
  • [X] 已经尝试使用过最新版,问题依旧存在
  • [X] 使用的是官方版本(未替换及修改过安装目录程序文件)

软件版本

0.20.7 - 0.20.9

操作系统

Windows x64

系统版本

windows 11

问题描述

service mode无法安装,弹窗报错如图。 之前刚安装0.20.8时,曾经试过是没问题的。升级0.20.9后,突然不能安装service mode了,退回到0.20.8 、0.20.7发现也不能安装了。 Snipaste_20221126123049

Fail to install service Command failed:mkdir "C:\Program Files\Clash for Windows Service"copy "C:\Program Files\Clash for Windows\resources\static\files\win\x64\service
clash-core-service.exe""C:\Program Files\Clash for Windows Service"/Y copy "C:\Program Files\Clash for Windows\resources\static\files\win\common\sc htasks.xml""C:\Program Files\Clash for Windows Service"/Y schtasks /create /tn "Clash Core Service"/ru "SYSTEM"/xml "C:\Program Files\Clash for Windows Service\schtasks.xml"schtasks /change /tn "Clash Core Service"/tr "C:\Program Files\Clash for Windows Service\clash-core-service.exe"&schtasks /run /tn "Clash Core Service" A subdirectory or file C:\Program Files\Clash for Windows Service already exists. ERROR:The system cannot find the path specified. ERROR:The specified task name "Clash Core Service"does not exist in the system. ERROR:The system cannot find the file specified.

复现步骤

安装service mode就会报错。

日志文件

logs

进入Home Directory/logs文件夹,找到日志文件,将文件拖动至输入框或点击界面左下角小字,将打开文件内容粘贴替换这行

其他补充

No response

leafsoul365 avatar Nov 26 '22 07:11 leafsoul365