MoI discussion forum
MoI discussion forum

Full Version: MOI INI File Change Location

Show messages: All  1-4  5-11

From: mkdm
14 Mar 2017   [#5] In reply to [#4]
Hi AlexPolo.

Very interesting and smart idea... I never thought about it.

Thanks for sharing.
From: yophie
10 Mar   [#6]
Very old thread but not sure about starting a new one on this same topic... I'm on a Mac and can't find my moi.ini file. I have custom shortcuts set up in MoI so I assume it must exist somewhere, but when I search for it I can't find it. Any suggestions? Is it *possible* for me to have deleted it accidentally at some point? (I have searched "moi.ini" on "this computer" and nothing comes up.)
From: Michael Gibson
10 Mar   [#7] In reply to [#6]
Hi yophie, from inside MoI if you go to Options > General > "Edit .ini file" button, that will bring up a window that shows the path to the moi.ini file.

By default on Mac it is stored under ~/Library/Application Support/Moi/moi.ini

A couple of things to note, the ~ is short for your user folder, /Users/<your user name>/

By default the Library folder is hidden, you can go there in the Mac finder by going to the "Go" menu on the top menu bar and pick the "Go to folder" menu item then put in ~/Library/Application Support/Moi

Or also you can show it by pushing Shift+Cmd+.(period) , that will show hidden directories for the rest of that finder session.

Let me know if you still have any trouble locating it.

- Michael
From: halmi (HALMI65)
19 Mar   [#8] In reply to [#7]
I'm very interested in doing the same thing from my Macbook - how do I go about telling MoI to fetch it from, say, an iCloud folder that I also keep downloaded on my machine? Or perhaps even more "in for a penny, in for a pound," are there drawbacks to having the entire application stored in iCloud as a portable, but also "kept downloaded?" That option tries to keep the copy local, but also synced.
From: Michael Gibson
19 Mar   [#9] In reply to [#8]
Hi halmi,

re:
> are there drawbacks to having the entire application stored in iCloud
> as a portable, but also "kept downloaded?"

There is a big drawback to setting it up to be portable, which is that when you want to install a new version of MOI, you will have to redo the "make it portable" steps on the new version because making something portable means having everything it uses all self contained and isolated. That means that when you install a new version of the app, it can't see any settings from the previous version because they have been siloed away instead of being shared between every version which is the regular default behavior.

So I would suggest to not set it up to be portable unless you are actually taking it by USB drive to another machine to run there temporarily.

Basically if you are only making it portable so as to have a single point of backing it up, you are setting up additional work to be done in the future when you want to update to a new version.

For the purposes of backup, you would want to have your folder under "~/Library/Application Support/Moi" backed up in addition to the Moi app.

If despite this you do want to make a portable mac version there are a couple of different ways you can do it, if you right click on the MOI app and choose "Show package contents", inside there go to Contents/Resources that's where you can copy your moi.ini and moi_v4_license.key files from ~/Library/Application Support/Moi .

When MOI looks for the moi.ini file for settings, or the moi_v4_license.key file for your license key it will look inside the app bundle under Contents/Resources and use those if they have been copied there.

(Note, this info is for the Mac version).

Another way is if you create an appdata sub-folder inside app/Contents/Resources, it will look there for everything that it normally gets from ~/Library/Application Support/Moi, including the moi.ini file, moi_v4_license.key license key file, startup scripts and additional commands.

You can also supply a full path to a moi.ini or moi_v4_license.key file as a command line parameter. On Mac to call an app with command line parameters you would set up a shell script and inside there use the open command with the --args parameter I think to give it command line arguments.

- Michael
From: yophie
19 Mar   [#10] In reply to [#7]
Thank you! That worked.
From: halmi (HALMI65)
20 Mar   [#11] In reply to [#9]
Thank you - I was hesitant to do either of these because of the new version issues that I pictured happening, now confirmed. Presently, I've been using SyncTime to routinely backup all the MoI associated folders into iCloud, and that's fairly painless, with advantages. Thanks again.

Show messages: All  1-4  5-11