summaryrefslogtreecommitdiffstats
path: root/Modules/NSIS.template.in
diff options
context:
space:
mode:
authorAndy Cedilnik <andy.cedilnik@kitware.com>2006-02-16 20:20:23 (GMT)
committerAndy Cedilnik <andy.cedilnik@kitware.com>2006-02-16 20:20:23 (GMT)
commitb07ece004c197b5430d0e84d9460e400e0acab7e (patch)
treecc3e7e7d0e6f84d0d4682c92bf506c515c295b9c /Modules/NSIS.template.in
parent537e2b4ed57d5a84f140f9b9bde427e7b604b330 (diff)
downloadCMake-b07ece004c197b5430d0e84d9460e400e0acab7e.zip
CMake-b07ece004c197b5430d0e84d9460e400e0acab7e.tar.gz
CMake-b07ece004c197b5430d0e84d9460e400e0acab7e.tar.bz2
ENH: More work on NSI to improve installing and uninstalling
Diffstat (limited to 'Modules/NSIS.template.in')
-rw-r--r--Modules/NSIS.template.in11
1 files changed, 4 insertions, 7 deletions
diff --git a/Modules/NSIS.template.in b/Modules/NSIS.template.in
index 41152d0..97ad662 100644
--- a/Modules/NSIS.template.in
+++ b/Modules/NSIS.template.in
@@ -342,9 +342,7 @@ Section "Dummy Section" SecDummy
;Use the entire tree produced by the INSTALL target. Keep the
;list of directories here in sync with the RMDir commands below.
SetOutPath "$INSTDIR"
- File /r "${INST_DIR}\bin"
- File /r "${INST_DIR}\doc"
- File /r "${INST_DIR}\share"
+ File /r "${INST_DIR}\*.*"
@CPACK_NSIS_EXTRA_COMMANDS@
@@ -397,11 +395,10 @@ FunctionEnd
Section "Uninstall"
- ;Remove directories we installed.
+ ;Remove files we installed.
;Keep the list of directories here in sync with the File commands above.
- RMDir /r "$INSTDIR\bin"
- RMDir /r "$INSTDIR\doc"
- RMDir /r "$INSTDIR\share"
+@CPACK_NSIS_DELETE_FILES@
+@CPACK_NSIS_DELETE_DIRECTORIES@
;Remove the uninstaller itself.
Delete "$INSTDIR\Uninstall.exe"