Skip to content

Commit

Permalink
1、修复安装选项「更改」按钮乱码
Browse files Browse the repository at this point in the history
2、将安装脚本「安装」、「卸载」完成后「重启」改成「注销」
  • Loading branch information
Techince committed Feb 22, 2024
1 parent 30a7159 commit 54ae618
Show file tree
Hide file tree
Showing 2 changed files with 23 additions and 3 deletions.
2 changes: 1 addition & 1 deletion WeaselSetup/InstallOptionsDialog.cpp
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#include "stdafx.h"
#include "stdafx.h"
#include "InstallOptionsDialog.h"
#include <dwmapi.h>

Expand Down
24 changes: 22 additions & 2 deletions output/install.nsi
Original file line number Diff line number Diff line change
Expand Up @@ -264,7 +264,17 @@ program_files:

; Prompt reboot
StrCmp $0 "Upgrade" 0 +2
SetRebootFlag true
; SetRebootFlag true

; Prompt logoff
MessageBox MB_YESNO|MB_ICONINFORMATION \
"安装完毕,注销后生效。$\n$\n「是」立即注销,「否」手动注销。" \
/SD IDYES IDYES label_yes IDNO label_no

label_yes:
System::Call "User32::ExitWindowsEx(i 0x0, i 0x0) i .r0"

label_no:

SectionEnd

Expand Down Expand Up @@ -319,6 +329,16 @@ Section "Uninstall"
RMDir /REBOOTOK "$SMPROGRAMS\$(DISPLAYNAME)"

; Prompt reboot
SetRebootFlag true
; SetRebootFlag true

; Prompt logoff
MessageBox MB_YESNO|MB_ICONINFORMATION \
"安装完毕,注销后生效。$\n$\n「是」立即注销,「否」手动注销。" \
/SD IDYES IDYES label_yes IDNO label_no

label_yes:
System::Call "User32::ExitWindowsEx(i 0x0, i 0x0) i .r0"

label_no:

SectionEnd

0 comments on commit 54ae618

Please sign in to comment.