Skip to content
⌘ NSIS Forum Archive

Errors due to migration from NSIS2 to NSIS3

3 posts

t_sugiura0204#

Errors due to migration from NSIS2 to NSIS3

Hi, I want to make migration to NSIS3, because CPack's NSIS2 support has ended.
I tried to compile project.nsi which was used in NSIS2 with NSIS3.
The following error occurred.


!macro: macro named "RemoveSection" already exists!

Error in script "C:/myproject/build/_CPack_Packages/win64/NSIS/project.nsi" on line 182 -- aborting creation process
I have a question about this error.
Is "RemoveSection" macro specifically defined in NSIS3?

---
[Previous Environments]
* NSIS 2.51
[New Environments]
* NSIS 3.05
Anders#
/Include/Sections.nsh has that macro but it is 10 years old by now.

You could try this early in your .nsi:

!include Sections.nsh
!macroundef RemoveSection