summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorBrad King <brad.king@kitware.com>2006-10-13 19:04:18 (GMT)
committerBrad King <brad.king@kitware.com>2006-10-13 19:04:18 (GMT)
commitbf74cd9d832c065c348142fc6132859e7da6396b (patch)
treed3391972c1785c5449d595f4ab81f1aaf0b59bf0
parent8a4c70cf6dbab98a2da60d8aa95efbdf61a61bdc (diff)
downloadCMake-bf74cd9d832c065c348142fc6132859e7da6396b.zip
CMake-bf74cd9d832c065c348142fc6132859e7da6396b.tar.gz
CMake-bf74cd9d832c065c348142fc6132859e7da6396b.tar.bz2
BUG: Compression must be set before any output is created.
-rw-r--r--Modules/NSIS.template.in20
1 files changed, 10 insertions, 10 deletions
diff --git a/Modules/NSIS.template.in b/Modules/NSIS.template.in
index eea59c3..dc4331a 100644
--- a/Modules/NSIS.template.in
+++ b/Modules/NSIS.template.in
@@ -27,6 +27,16 @@
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"?
; Default to "JustMe" - set to "AllUsers" if admin or on Win9x
@@ -72,16 +82,6 @@ Function .onInit
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
!define MUI_HEADERIMAGE