summaryrefslogtreecommitdiff
path: root/os
diff options
context:
space:
mode:
Diffstat (limited to 'os')
-rw-r--r--os/windows/installer/install.nsi6
1 files changed, 4 insertions, 2 deletions
diff --git a/os/windows/installer/install.nsi b/os/windows/installer/install.nsi
index 47ec53579..cfd79034f 100644
--- a/os/windows/installer/install.nsi
+++ b/os/windows/installer/install.nsi
@@ -326,8 +326,9 @@ SectionEnd
Section "Uninstall"
SetShellVarContext all
+ IfFileExists "$INSTDIR\save" 0 NoRemoveSavedGames
MessageBox MB_YESNO|MB_ICONQUESTION \
- "Remove the save game folders located at $\"$INSTDIR\save?$\"$\n \
+ "Remove the save game folders located at $\"$INSTDIR\save$\"?$\n \
If you choose Yes, your saved games will be deleted." \
IDYES RemoveSavedGames IDNO NoRemoveSavedGames
RemoveSavedGames:
@@ -337,8 +338,9 @@ Section "Uninstall"
RMDir "$INSTDIR\save"
NoRemoveSavedGames:
+ IfFileExists "$INSTDIR\scenario" 0 NoRemoveScen
MessageBox MB_YESNO|MB_ICONQUESTION \
- "Remove the scenario folders located at $\"$INSTDIR\scenario?$\"$\n \
+ "Remove the scenario folders located at $\"$INSTDIR\scenario$\"?$\n \
If you choose Yes, your scenarios will be deleted." \
IDYES RemoveScen IDNO NoRemoveScen
RemoveScen: