我有一个文件section-db.nsh
包含:
!macro uninstall_myrian
Delete $APPDATA\Intrasense\settings\admin.txt
Delete $APPDATA\Intrasense\settings\user.txt
!macroend
并test.nsi
与
!include "MUI2.nsh"
!include "section-db.nsh"
Name "Software"
OutFile "installer.exe"
!insertmacro MUI_PAGE_WELCOME
!insertmacro MUI_PAGE_INSTFILES
Section hello
SectionEnd
应该编译正确吧?没有:
!include: "section-db.nsh" !macro: macro named "uninstall_myrian" already found! !include: error in script: "section-db.nsh" on line 2 Error in script "Y:\prog\scripts\installer-script\test.nsi" on line 2 -- aborting creation process
如果我评论 MUI2.nsh 包含,它会正确编译。
如果我将宏重命名为myrian_uninst
,它会正确编译。
有什么问题?