Index: win_installer/src/installer.nsi =================================================================== diff -u -r89f6f796a26af1fc66b35a7fdc4a40bccf80f645 -r02103ce6265ffe1702255bedef204d825400db47 --- win_installer/src/installer.nsi (.../installer.nsi) (revision 89f6f796a26af1fc66b35a7fdc4a40bccf80f645) +++ win_installer/src/installer.nsi (.../installer.nsi) (revision 02103ce6265ffe1702255bedef204d825400db47) @@ -671,11 +671,12 @@ # TODO doesn't take effect until mysql server is restarted DetailPrint "Setting MySQL transaction-isolation to READ-COMMITTED" ${LineFind} "$MYSQL_DIR\my.ini" "" "1" "WriteMyINI" - IfErrors 0 +2 + IfErrors 0 myini clearerrors - ${LineFind} "$WINDIR\my.ini" "" "1" "WriteMyINI" - IfErrors 0 +2 + ${LineFind} "$WINDIR\my.ini" "" "1" "WriteMyINI" + IfErrors 0 myini MessageBox MB_OK|MB_ICONEXCLAMATION "Couldn't write to $MYSQL_DIR\my.ini. Please write this text into your MySQL configuration file and restart MySQL:$\r$\n$\r$\n[mysqld]$\r$\ntransaction-isolation=READ-COMMITTED" + myini: DetailPrint "MySQL will need to be restarted for this to take effect." goto done error: