Skip to content

CPack/NSIS: Avoid "setup loading" screen by fixing template order

Patrick Storz requested to merge Ede123/cmake:cpack_nsis_avoid_delay into master

NSIS packages files (including those required by the installer itslef) in the order in which they're mentioned in the .nsi file.

If solid compression is used, the installer might need to extract large parts of the archive to be able to even start the setup program ("Please wait while setup is loading...").

Avoid this by moving component installation towards the end of the template file and also preload the "UserInfo.dll" plugin that currently seems to be used.

Avoids the following dialog and immediately launches the installer instead:
image

Merge request reports