by Barry4679 » Sat Jul 04, 2020 9:43 am
PetrCBR wrote: ↑Sat Jul 04, 2020 7:19 am
Even in portable mode you can define custom DB location and when you've choosed to import settings from MM4, custom DB location was imported as well.
The question in the dbox specifically asked whether I wanted to import
my database from MM4, it didn't mention settings. ... although the dbox heading may have said something about settings, I am not sure.
The point is that there is no way to import db, but not settings, during your MM5 install proc, so you can't rely upon that fact that the user said Yes to import, meaning that people want the db to be created outside the portable installation.
I think that if the user has requested a "portable" installation, you should import data from the user's custom MM4 database, but comment out the custom location in the ini file that you copy into to MM5/portable ... so that the user does get the portable install that they have requested for ... ie. you should not assume that they want the database in a non-portable location, unless you specifically ask them.
PetrCBR wrote: ↑Sat Jul 04, 2020 7:19 am
MM should copy your MM4 database to new MM5.DB name and update ini entry for DBName so it looks like for any reason ini wasn't updated with new DBName and need to figure out why it wasn't get updated.
Look at whether MM5 persists the ini file if the user allows MM5 to autostart from the install proc, and accepts importation|upgrade of the MM4 db, and then closes MM5 as soon as it completes, without interacting with the UI. ... That is what i did. ... I am fairly confident that I closed MM5 normally, because at that stage I thought that I had a good db, and just wanted to backup it up.
btw It did put a MM5.db into my custom location, and that db's contents were as expected. .... The problem is that when MM5 was started again it went back to MM.db, and upgraded it.
Oh, that reminds me. ... maybe I did interact with the UI once. I think that I opened File|ManageDb, and clicked the backup icon, so I could check the db location ... I didn't run the backup. And then I closed Mm5
Thanks for response.
[quote=PetrCBR post_id=470005 time=1593865195 user_id=3394]
Even in portable mode you can define custom DB location and when you've choosed to import settings from MM4, custom DB location was imported as well.
[/quote]
The question in the dbox specifically asked whether I wanted to import [i]my database[/i] from MM4, it didn't mention settings. ... although the dbox heading may have said something about settings, I am not sure.
The point is that there is no way to import db, but not settings, during your MM5 install proc, so you can't rely upon that fact that the user said Yes to import, meaning that people want the db to be created outside the portable installation.
I think that if the user has requested a "portable" installation, you should import data from the user's custom MM4 database, but comment out the custom location in the ini file that you copy into to MM5/portable ... so that the user does get the portable install that they have requested for ... ie. you should not assume that they want the database in a non-portable location, unless you specifically ask them.
[quote=PetrCBR post_id=470005 time=1593865195 user_id=3394]
MM should copy your MM4 database to new MM5.DB name and update ini entry for DBName so it looks like for any reason ini wasn't updated with new DBName and need to figure out why it wasn't get updated.
[/quote]
Look at whether MM5 persists the ini file if the user allows MM5 to autostart from the install proc, and accepts importation|upgrade of the MM4 db, and then closes MM5 as soon as it completes, without interacting with the UI. ... That is what i did. ... I am fairly confident that I closed MM5 normally, because at that stage I thought that I had a good db, and just wanted to backup it up.
btw It did put a MM5.db into my custom location, and that db's contents were as expected. .... The problem is that when MM5 was started again it went back to MM.db, and upgraded it.
Oh, that reminds me. ... maybe I did interact with the UI once. I think that I opened File|ManageDb, and clicked the backup icon, so I could check the db location ... I didn't run the backup. And then I closed Mm5
Thanks for response.