1
0
mirror of https://github.com/anope/anope.git synced 2026-07-04 00:03:12 +02:00

cmake: update NSIS template for NSIS 3

Newer cmake versions require NSIS 3, which already defines a RemoveSection macro causing cpack to fail
This commit is contained in:
Adam
2021-08-09 17:17:25 -04:00
parent 48ec53242e
commit d8d1c1d18c
+2 -2
View File
@@ -118,7 +118,7 @@ Var AR_RegFlags
"exit_${SecName}:"
!macroend
!macro RemoveSection SecName
!macro RemoveSection_CPack SecName
; This macro is used to call section's Remove_... macro
;from the uninstaller.
;Input: section index constant name specified in Section command.
@@ -731,7 +731,7 @@ Section "Uninstall"
DeleteRegKey SHCTX "Software\@CPACK_PACKAGE_VENDOR@\@CPACK_PACKAGE_INSTALL_REGISTRY_KEY@"
; Removes all optional components
!insertmacro SectionList "RemoveSection"
!insertmacro SectionList "RemoveSection_CPack"
!insertmacro MUI_STARTMENU_GETFOLDER Application $MUI_TEMP