🎨 低于 Windows 10 安装时弹出警告 https://github.com/siyuan-note/siyuan/issues/7589

This commit is contained in:
Liang Ding 2023-03-07 11:25:31 +08:00
parent f1b9417691
commit 8434d8d201
No known key found for this signature in database
GPG key ID: 136F30F901A2231D

View file

@ -1,3 +1,4 @@
!include WinVer.nsh
Caption "${PRODUCT_NAME} ${VERSION}"
!macro preInit
@ -6,6 +7,11 @@ Caption "${PRODUCT_NAME} ${VERSION}"
!macroend
!macro customInstallMode
${IfNot} ${AtLeastWin10}
MessageBox MB_ICONEXCLAMATION "即将停止对 Windows 7/8 和 Server 2012 的支持,建议升级到 Windows 10 或者更高版本。$\n$\n\
Support for Windows 7/8 and Server 2012 will be stopped soon, it is recommended to upgrade to Windows 10 or higher version.$\n"
${EndIf}
MessageBox MB_ICONEXCLAMATION|MB_OKCANCEL "进行安装或卸载时会删除安装目录下所有文件,请务必确认工作空间没有放置在安装路径下!是否继续?$\n$\n\
When installing or uninstalling, all files in the installation directory will be deleted, please make sure that the workspace is not placed in the installation path! Do you want to continue?$\n" IDOK yes IDCANCEL no
no: