mirror of
https://github.com/clash-verge-rev/clash-verge-rev.git
synced 2026-01-29 00:35:38 +08:00
fixed an issue with .window-state.json files not being deleted via the NSIS installer (#3530)
This commit is contained in:
@@ -22,6 +22,7 @@
|
|||||||
- 编辑器中连字符问题
|
- 编辑器中连字符问题
|
||||||
- 安装服务模式后无法立即开启 TUN 模式
|
- 安装服务模式后无法立即开启 TUN 模式
|
||||||
- 同步更新多语言翻译
|
- 同步更新多语言翻译
|
||||||
|
- 修复 .window-state.json 无法删除的问题
|
||||||
|
|
||||||
#### 新增了:
|
#### 新增了:
|
||||||
- Mihomo(Meta)内核升级至 1.19.8
|
- Mihomo(Meta)内核升级至 1.19.8
|
||||||
|
|||||||
@@ -761,6 +761,10 @@ SectionEnd
|
|||||||
|
|
||||||
|
|
||||||
Section Install
|
Section Install
|
||||||
|
;删除 .window-state.json 文件
|
||||||
|
SetShellVarContext current
|
||||||
|
Delete "$APPDATA\io.github.clash-verge-rev.clash-verge-rev\.window-state.json"
|
||||||
|
|
||||||
SetOutPath $INSTDIR
|
SetOutPath $INSTDIR
|
||||||
nsExec::Exec 'netsh int tcp res'
|
nsExec::Exec 'netsh int tcp res'
|
||||||
!insertmacro CheckIfAppIsRunning
|
!insertmacro CheckIfAppIsRunning
|
||||||
@@ -916,6 +920,10 @@ FunctionEnd
|
|||||||
!macroend
|
!macroend
|
||||||
|
|
||||||
Section Uninstall
|
Section Uninstall
|
||||||
|
;删除 .window-state.json 文件
|
||||||
|
SetShellVarContext current
|
||||||
|
Delete "$APPDATA\io.github.clash-verge-rev.clash-verge-rev\.window-state.json"
|
||||||
|
|
||||||
!insertmacro CheckIfAppIsRunning
|
!insertmacro CheckIfAppIsRunning
|
||||||
!insertmacro CheckAllVergeProcesses
|
!insertmacro CheckAllVergeProcesses
|
||||||
!insertmacro RemoveVergeService
|
!insertmacro RemoveVergeService
|
||||||
@@ -1004,6 +1012,10 @@ Section Uninstall
|
|||||||
RmDir /r "$LOCALAPPDATA\${BUNDLEID}"
|
RmDir /r "$LOCALAPPDATA\${BUNDLEID}"
|
||||||
${EndIf}
|
${EndIf}
|
||||||
|
|
||||||
|
;删除 .window-state.json 文件
|
||||||
|
SetShellVarContext current
|
||||||
|
Delete "$APPDATA\io.github.clash-verge-rev.clash-verge-rev\.window-state.json"
|
||||||
|
|
||||||
${GetOptions} $CMDLINE "/P" $R0
|
${GetOptions} $CMDLINE "/P" $R0
|
||||||
IfErrors +2 0
|
IfErrors +2 0
|
||||||
SetAutoClose true
|
SetAutoClose true
|
||||||
|
|||||||
Reference in New Issue
Block a user