Old 12th May 2020, 05:56   #1
t_sugiura0204
Junior Member
 
Join Date: May 2020
Posts: 2
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.

code:

!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
t_sugiura0204 is offline   Reply With Quote
Old 12th May 2020, 10:57   #2
Anders
Moderator
 
Anders's Avatar
 
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,321
/Include/Sections.nsh has that macro but it is 10 years old by now.

You could try this early in your .nsi:

Quote:
!include Sections.nsh
!macroundef RemoveSection

IntOp $PostCount $PostCount + 1
Anders is offline   Reply With Quote
Old 12th May 2020, 13:36   #3
t_sugiura0204
Junior Member
 
Join Date: May 2020
Posts: 2
@Anders Thanks, It works correctly!
t_sugiura0204 is offline   Reply With Quote
Reply
Go Back   Winamp & Shoutcast Forums > Developer Center > NSIS Discussion

Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump