Skip to content

Commit

Permalink
增加 清理上次运行信息
Browse files Browse the repository at this point in the history
  • Loading branch information
xrgzs committed Jul 3, 2024
1 parent 12e8fb0 commit 59853c1
Showing 1 changed file with 10 additions and 0 deletions.
10 changes: 10 additions & 0 deletions osc.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -189,6 +189,16 @@ Section /o "-潇然系统部署接口-进桌面" XRAPI5
SectionEnd

SectionGroup "优化设置"
Section /o "清理上次运行信息"
FindFiles $0 "$WINDIR\Setup\*.txt"
loop:
Pop $R0 ; 获取文件名
StrCmp $R0 "" done ; 检查是否已经遍历完所有文件
DetailPrint "Deleting $R0"
Delete "$R0" ; 删除文件
Goto loop
done:
SectionEnd
Section /o "自行解决正版化"
DetailPrint "正在输出TAG-xrsysnokms..."
FileOpen $0 "$WINDIR\Setup\xrsysnokms.txt" w
Expand Down

0 comments on commit 59853c1

Please sign in to comment.