MOI INI File Change Location

Next
 From:  AlexPolo
8344.1 
Hi all,

Is it possible to change the location of the MOI Ini file to a new location. Keeping up with scripts across my main working desktop and laptop I have setup MOI to work over Google Drive working well any scripts I add are added to both computers would be good if I could move the ini file there also so any shortcut keys can be updated also.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8344.2 In reply to 8344.1 
Hi Alex, when MoI starts it will look for moi.ini in either the same directory as moi.exe or in your user data folder (on Windows that's in %AppData%\Moi\moi.ini).

When it's initially created it puts it in the user data folder.

It's also possible to put it in any location of your choice if you tell MoI where it is by passing the moi.ini file name with full path as a command line parameter to MoI.exe, surround it with quotes " " if there are any spaces in the path.

- Michael
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  bemfarmer
8344.3 
Mine is at Users\****\AppData\Roaming\Moi
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  AlexPolo
8344.4 
thanks for that I have moved the ini file into the Google Drive folder and now I have MOI synced across my 2 work computers doesnt get much better. Any scripts that I add along the way in one location gets updated in the other.

smooth sailing.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  mkdm
8344.5 In reply to 8344.4 
Hi AlexPolo.

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

Thanks for sharing.

- Marco (mkdm)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  yophie
8344.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.)
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8344.7 In reply to 8344.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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  halmi (HALMI65)
8344.8 In reply to 8344.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.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
Next
 From:  Michael Gibson
8344.9 In reply to 8344.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
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged

Previous
 From:  yophie
8344.10 In reply to 8344.7 
Thank you! That worked.
  Reply Reply More Options
Post Options
Reply as PM Reply as PM
Print Print
Mark as unread Mark as unread
Relationship Relationship
IP Logged
 

Reply to All Reply to All