From 9228894d75f3f9eb121ba1e59cd701d5e71cb21d Mon Sep 17 00:00:00 2001 From: Chris Danford Date: Sat, 21 Jun 2003 02:58:37 +0000 Subject: [PATCH] Remove stepmania.ini check from installer. The uninstaller nukes it, so that logic is never used. --- stepmania/stepmania.nsi | 16 +++++++++++----- 1 file changed, 11 insertions(+), 5 deletions(-) diff --git a/stepmania/stepmania.nsi b/stepmania/stepmania.nsi index 7d9ea6c76e..ba81ce4d98 100644 --- a/stepmania/stepmania.nsi +++ b/stepmania/stepmania.nsi @@ -219,12 +219,18 @@ File "smpackage.exe" ; track down problems with INI upgrades (and then possibly restore it ; for the release if we're not confident we've fixed most problems) -glenn ; Added message box to ask user. -Chris +; This is a silly check, because we force an uninstall and the installer +; removes stepmania.ini. -Chris -IfFileExists "$INSTDIR\stepmania.ini" stepmania_ini_present stepmania_ini_not_present -stepmania_ini_present: -MessageBox MB_YESNO|MB_ICONQUESTION "Your settings from the previous installation of StepMania were found.$\nWould you like to keep these settings?" IDNO stepmania_ini_not_present -Delete "$INSTDIR\stepmania.ini" -stepmania_ini_not_present: +;IfFileExists "$INSTDIR\stepmania.ini" stepmania_ini_present +;IfFileExists "$INSTDIR\Data\stepmania.ini" stepmania_ini_present +;Goto stepmania_ini_not_present +;stepmania_ini_present: +;MessageBox MB_YESNO|MB_ICONQUESTION "Your settings from the previous installation of StepMania were found.$\nWould you like to keep these settings?" IDNO stepmania_ini_not_present +;Delete "$INSTDIR\Data\stepmania.ini" +;stepmania_ini_not_present: +;; Move ini into Data\ +;Rename "$INSTDIR\Data\stepmania.ini" "$INSTDIR\stepmania.ini" ; Create Start Menu icons SetShellVarContext all ; install in "All Users" if NT