From 6ee02582511c73c36f1ccb60fcc8f0b6b6d1f220 Mon Sep 17 00:00:00 2001 From: Stephen Birarda Date: Tue, 19 Jan 2016 08:57:33 -0800 Subject: [PATCH] add an error message for app data create --- cmake/templates/NSIS.template.in | 9 ++++++++- 1 file changed, 8 insertions(+), 1 deletion(-) diff --git a/cmake/templates/NSIS.template.in b/cmake/templates/NSIS.template.in index 2b44bca360..6063ab475c 100644 --- a/cmake/templates/NSIS.template.in +++ b/cmake/templates/NSIS.template.in @@ -978,7 +978,14 @@ Function HandlePostInstallOptions ${If} $CopyFromProductionState == ${BST_CHECKED} ; we need to copy whatever is in the data folder for production build to the data folder for this build CreateDirectory "$APPDATA\@BUILD_ORGANIZATION@" - CopyFiles "$APPDATA\High Fidelity\*" "$APPDATA\@BUILD_ORGANIZATION@" + + IfErrors CopyData + + ; if we're here there was an error creating the data folder for this build + MessageBox mb_IconStop|mb_TopMost|mb_SetForeground "Could not create directory $APPDATA\@BUILD_ORGANIZATION@, error $0" + + CopyData: + CopyFiles "$APPDATA\High Fidelity\*" "$APPDATA\@BUILD_ORGANIZATION@" ${EndIf} ${EndIf}