From 9cb9dba7b6e927fec56ae87768520ee3f70082f0 Mon Sep 17 00:00:00 2001 From: Dirk Hohndel Date: Fri, 6 Dec 2013 21:42:18 -0800 Subject: Fix the Windwos installer Install the Documentation and include it in the installer. Try and get all the directories and files removed in the uninstaller. Where the heck does 'oldshare' come from? Signed-off-by: Dirk Hohndel --- packaging/windows/subsurface.nsi.in | 9 +++++++++ subsurface-install.pri | 5 +++-- 2 files changed, 12 insertions(+), 2 deletions(-) diff --git a/packaging/windows/subsurface.nsi.in b/packaging/windows/subsurface.nsi.in index 0d0471a20..272b53129 100644 --- a/packaging/windows/subsurface.nsi.in +++ b/packaging/windows/subsurface.nsi.in @@ -104,6 +104,7 @@ Section File /r images File /r icons File /r plugins + File /r Documentation File /r translations File iconv.dll File libdivecomputer-0.dll @@ -160,8 +161,16 @@ Section "Uninstall" Delete "$INSTDIR\subsurface.exe" Delete "$INSTDIR\subsurface.ico" Delete "$INSTDIR\Uninstall.exe" + Delete "$INSTDIR\qt.conf" RMDir /r "$INSTDIR\share" RMDir /r "$INSTDIR\xslt" + RMDir /r "$INSTDIR\data" + RMDir /r "$INSTDIR\icons" + RMDir /r "$INSTDIR\images" + RMDir /r "$INSTDIR\translations" + RMDir /r "$INSTDIR\oldshare" + RMDir /r "$INSTDIR\plugins" + RMDir /r "$INSTDIR\Documentation" RMDir "$INSTDIR" # Remove shortcuts diff --git a/subsurface-install.pri b/subsurface-install.pri index 3389dd104..d8ee34f80 100644 --- a/subsurface-install.pri +++ b/subsurface-install.pri @@ -53,13 +53,14 @@ mac { NSIINPUTFILE = $$PWD/$$WINDOWSSTAGING/subsurface.nsi.in MAKENSIS = /usr/bin/makensis + doc.path = $$WINDOWSSTAGING/Documentation CONFIG -= copy_dir_files deploy.path = $$WINDOWSSTAGING - deploy.files += $$xslt.files $$doc.files $$icons.files + deploy.files += $$xslt.files $$icons.files deploy.CONFIG += no_check_exist target.path = $$WINDOWSSTAGING marbledir.path = $$WINDOWSSTAGING/data - INSTALLS += deploy marbledir target + INSTALLS += deploy marbledir target doc translation.path = $$WINDOWSSTAGING/translations qttranslation.path = $$WINDOWSSTAGING/translations -- cgit v1.2.3-70-g09d2