To make updating to a new version of Magsbot simpler, the best way to set up the program in the first place is to put your custom files (i.e. file that you've changed from what came with the Magsbot package) in a separate folder. Besides making it easier to update, this also makes it simpler to manage multiple Magsbot projects.
So, after unzipping the Magsbot package in a folder, create a new folder and copy magsbot.ini, behavior.beh, buttons.btn and userdefs.udf into the new folder. Then right-click and drag MBot.exe from the folder where you unzipped the Magsbot package, into the folder where you copied the project files. When you release MBot.exe from dragging it, choose "Create Shortcut" from the pop-up menu. Then, right-click the newly created shortcut and choose Properties, and change "Start In" to the full path of the folder containing the project files. Now, whenever you click on that shortcut, Magsbot will start up and use the files in your new folder instead of the default files.
Drag MBot.exe to project folder, create
shortcut.

Change shortcut properties.

Change Start In path.

When updating Magsbot, unzip the new package into the same folder that you unzipped the previous zipped package into. Your project files will remain unchanged in the other folder. To update the project files, you need to do three things: 1. Replace the "Standard" section of the Behavior Table, 2. Replace the standard buttons, and 3. Replace the "standard" section of userdefs.udf.
1. Update the Behavior Table. Run Magsbot from your project folder, open the Behavior Table window, and select the entire Standard section of the table (from where it says "REM STANDARD BEHAVIOR FOLLOWS THIS LINE:" to the end, unless you added something to the end of the table), and click the Delete button to remove it. Then click the Merge button and choose the new behavior.beh from the folder where you unzipped the Magsbot package. Press F6 to save the changes.
2. Update the standard buttons. With the new button category tabs in Magsbot, updating the custom buttons on the Actions panel has become easier. When you create new buttons for Magsbot now, you can create your own category tabs for them so they can be easily saved separately. If you already have buttons that you want to preserve, you can now cut and paste buttons to put them into a newly created category. Right click on the Actions panel and select Category/Save from the popup menu to save the currently selected category tab into a separate button file. Then when you update Magsbot, replace the old buttons.btn with the new one, and merge your own button categories back in using File/Buttons/Merge. Category names are stored in the button file along with the buttons, so they are automatically put back into the same categories when you load them.
3. Update USERDEFS.UDF. Use a text editor to edit
the
new userdefs.udf file (click the file and choose Notepad.exe for the
program
to use with .udf files) and select and copy everything from where it
says
;
Standard macros: to the end of the file (assuming you didn't
add
anything at the end.) Now open your custom userdefs.udf in
the
project file, delete the ; Standard macros: section
and
paste the standard section from the new userdefs into it. If
Magsbot
is already running, you can then reload the file using File/Open
Macros.
(Or just restart Magsbot.)