diff --git a/Modules/NSIS.template.in b/Modules/NSIS.template.in index eea59c3a9..dc4331a72 100644 --- a/Modules/NSIS.template.in +++ b/Modules/NSIS.template.in @@ -26,6 +26,16 @@ ;Default installation folder InstallDir "$PROGRAMFILES\@CPACK_PACKAGE_INSTALL_DIRECTORY@" +;-------------------------------- +;General + + ;Name and file + Name "@CPACK_PACKAGE_INSTALL_DIRECTORY@" + OutFile "@CPACK_TOPLEVEL_DIRECTORY@/@CPACK_OUTPUT_FILE_NAME@" + + ;Set compression + SetCompressor @CPACK_NSIS_COMPRESSOR@ + ;-------------------------------- ; determine admin versus local install ; Is install for "AllUsers" or "JustMe"? @@ -71,16 +81,6 @@ Function .onInit noOptionsPage: FunctionEnd -;-------------------------------- -;General - - ;Name and file - Name "@CPACK_PACKAGE_INSTALL_DIRECTORY@" - OutFile "@CPACK_TOPLEVEL_DIRECTORY@/@CPACK_OUTPUT_FILE_NAME@" - - ;Set compression - SetCompressor @CPACK_NSIS_COMPRESSOR@ - ;-------------------------------- ;Interface Settings