All the code and data that you create with Suneido is in the database – suneido.db. New releases come with their own new database. If your database contains anything you want to keep you don’t want to install a new release over your existing one. There are several ways you can handle the upgrade, I’ll just describe one of them.
Note: If you use the setup / installer version of the download, it handles this process automatically – just install over your previous version.
Of course, it’s always a good idea to make backups, just in case!
Rename your database, for example: (You might also want to back it up, just in case!)
C:\suneido> ren suneido.db suneido.db.bak
Unzip the new release into your existing Suneido directory.
Dump stdlib and suneidoc from the new database.
C:\suneido> suneido -dump stdlib C:\suneido> suneido -dump suneidoc
Rename the new database, for example:
C:\suneido> ren suneido.db suneido.db.new
Rename your previous database back:
C:\suneido> ren suneido.db.bak suneido.db
Load the new stdlib and suneidoc into your previous database:
C:\suneido> suneido -load stdlib C:\suneido> suneido -load suneidoc
Note: If you are on Windows 9x, you’ll find that you are returned back to the MSDOS prompt immediately after a dump or load command, before the command is complete. If you try to run another command right away, you’ll get an error saying the database is in use. To avoid this you can prefix the dump and load lines with “start/w”, for example:
start/w suneido -load stdlib