0

我有一个文件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,它会正确编译。

有什么问题?

4

1 回答 1

0

除了缺少!insertmacro MUI_LANGUAGE English您的代码在 NSIS 2.46 中编译时没有警告

于 2013-12-11T15:55:35.260 回答