aboutsummaryrefslogtreecommitdiff
path: root/project/Win32BuildSetup/genNsisInstaller.nsi
diff options
context:
space:
mode:
authorMartijn Kaijser <mcm.kaijser@gmail.com>2014-09-21 11:30:38 +0200
committerMartijn Kaijser <mcm.kaijser@gmail.com>2014-09-21 11:30:38 +0200
commit90e3fb2686ef6cadbae3967226ca0217d2d39f42 (patch)
treed4f4e21547641d8409cffc1bad5ee12706db3562 /project/Win32BuildSetup/genNsisInstaller.nsi
parent7fadf974211aee96e61a9b502e3597d9ce9236c1 (diff)
[win32] show message in installer that userdata was moved to new location
Diffstat (limited to 'project/Win32BuildSetup/genNsisInstaller.nsi')
-rw-r--r--project/Win32BuildSetup/genNsisInstaller.nsi3
1 files changed, 2 insertions, 1 deletions
diff --git a/project/Win32BuildSetup/genNsisInstaller.nsi b/project/Win32BuildSetup/genNsisInstaller.nsi
index 387bc7ed1a..83016dbf7f 100644
--- a/project/Win32BuildSetup/genNsisInstaller.nsi
+++ b/project/Win32BuildSetup/genNsisInstaller.nsi
@@ -97,8 +97,9 @@ Section "${APP_NAME}" SecAPP
Var /GLOBAL INSTDIR_OLD
ReadRegStr $INSTDIR_OLD HKCU "Software\XBMC" ""
${IfNot} $INSTDIR_OLD == ""
- IfFileExists "$APPDATA\XBMC\*.*" 0 +2
+ IfFileExists "$APPDATA\XBMC\*.*" 0 +3
Rename "$APPDATA\XBMC\" "$APPDATA\${APP_NAME}\"
+ MessageBox MB_OK|MB_ICONEXCLAMATION|MB_TOPMOST|MB_SETFOREGROUND "Your current XBMC userdata folder was moved to the new ${APP_NAME} userdata location.$\n.This to make the transition as smooth as possible without any user interactions needed."
${IfNot} $INSTDIR_OLD == $INSTDIR
IfFileExists $INSTDIR_OLD\portable_data\*.* 0 +3