Page MenuHomePhabricator

Packaging does not work with NSIS v3.x
Closed, ResolvedPublic

Description

While building a mitk installer on windows this error occured. A workbench.exe was created and runs.

Message in visual studio:

1>EXEC : CPack error : Problem running NSIS command: "C:/Program Files (x86)/NSIS/makensis.exe" ".../MITK-build/_CPack_Packages/win64/NSIS/project.nsi"
1>Please check .../sb/MITK-build/_CPack_Packages/win64/NSIS/NSISOutput.log for errors
1>EXEC : CPack error : Problem compressing the directory
1>EXEC : CPack error : Error when generating package: MITK

NSISOutput.log file:

!macro: macro named "RemoveSection" already exists!

Error in script ".../MITK-build/_CPack_Packages/win64/NSIS/project.nsi" on line 127 -- aborting creation process

Event Timeline

holzwart created this task.

No ZIP-folder / file was created, no installer was built - just the bin-folder with the .exe-file.

kislinsk raised the priority of this task from Low to High.
kislinsk edited projects, added MITK (v2021.02); removed MITK.
kislinsk added a subscriber: kislinsk.

This happens with NSIS 3.x. We use NSIS 2.x. However, CMake dropped NSIS 2.x support in version 3.17, so we should finally get rid of this error and also require NSIS 3.x.

Deleted branch bugfix/T27030-MigrateToNSISv3.

kislinsk renamed this task from Building mitk installer on windows failed. to Packaging does not work with NSIS v3.x.Sep 21 2020, 1:21 PM
kislinsk added a project: Noteworthy.