topbanner_forum
  *

avatar image

Welcome, Guest. Please login or register.
Did you miss your activation email?

Login with username, password and session length
  • January 19, 2020, 09:32 PM
  • Proudly celebrating 14 years online.
  • Donate now to become a lifetime supporting member of the site and get a non-expiring license key for all of our programs.
  • donate

Author Topic: Can't change the configuration files location - W10 OneDrive  (Read 340 times)

katykaty

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 224
    • View Profile
    • Donate to Member
Just reinstalled Windows 10 and as I'm using a Live account W10 has set the My Documents folder to my OneDrive
[environment]::getfolderpath("MyDocuments")
returns
C:\Users\katykaty\OneDrive\Documents

So FARR is storing config files in OneDrive, which I don't want, especially because the troubleshooting log often has trouble syncing.

So I closed FARR and edited the ConfigDir.ini file by adding the following line at the end, without comment slashes
CONFIGDIR=C:\Users\katykaty\AppData\Roaming\DonationCoder\FARR\Config

Copied all the config files across and removed the initial config folder on OneDrive.

But FARR seems to be ignoring this and has created a new 'first run' folder in OneDrive.

I can obviously close and move the config files back so I don't lose my settings, but what am I doing wrong?

Thanks!

IainB

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 7,486
  • Slartibartfarst
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Can't change the configuration files location - W10 OneDrive
« Reply #1 on: January 06, 2020, 04:30 PM »
@katykaty:
I had similar probs. This works for me:

In the file: C:\UTIL\Windows utilities\FindAndRunRobot\ConfigDir.ini
______________________________
/ NOTE: you have to *remove* the // in front of one line below to activate it
//CONFIGDIR=C:\UTIL\Windows utilities\FindAndRunRobot\Keys
// CONFIGDIR = .
// CONFIGDIR=%MYDOCUMENTS%
PORTABLE=TRUE
CONFIGDIR = .

// This file (ConfigDir.ini) defines the directory where all configuration
//  files for the program will be stored.

// There should be only 1 actual line in this file that has any meaning,
//  the CONFIGDIR assignmane above.  Everything else here is just comments.
//
// By default it is normally set to the program directory itself, meaning
//  that all configuration/ini/settings/preferences will be store here
//  with this ConfigDir.ini file.  This is also best for when you want to
//  put the program on a usb drive.
// Sometimes it is preferable to store the configuration files in a
//  different directory, like a "C:\Documents and Settings" subdirectory
//  which is designed to store program configuration data, or a custom
//  directory specified by a user on a separate drive.
//
// TIPS:
// 1. You can comment out lines by prefacing them with //
// 2. You can use the following replacements:
//     . (actual program directory -- use this for portable usb, etc.)
//     %MYDOCUMENTS% (like C:\My Documents)
//     %APPDATA% (like C:\Documents and Settings\{username}\Application Data)
//     %PROFILE% (like C:\Documents and Settings\{username})
//     %COMMONAPPDATA% (like C:\Documents and Settings\All Users\Application Data)
// 3. The specified directory will be created if it doesn't exist.
// 4. If configuration files are not found in the specified directory,
//     any existing configuration files in the app dir will be copied
//     from the app dir to the specified directory.
// 5. If you edit this file while the program is running you need to
//     exit and restart the program before it will take effect.
//
// EXAMPLES:
//    CONFIGDIR=.
//    CONFIGDIR=%MYDOCUMENTS%
//    CONFIGDIR=E:\MyCleverSettings\
//    CONFIGDIR=%APPDATA%
//
// NOTE: the company and application subdirectory name will automatically be
//  added to the path specified (except for %APPDIR% which includes the name
//  already, i.e.:
//    "E:\MyCleverSettings" -> "E:\MyCleverSettings\DonationCoder\AppName\"
//
// NEW:
//  You can now signify that an app should run in portable mode (no files saved to anything but app dir)
//  by specifying the uncommented line:
//   PORTABLE=TRUE

//
/////////////////////////////////////////////////////////////////////////////
« Last Edit: January 06, 2020, 04:39 PM by IainB »

katykaty

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 224
    • View Profile
    • Donate to Member
Re: Can't change the configuration files location - W10 OneDrive
« Reply #2 on: January 06, 2020, 04:54 PM »
Thank you @IanB

I tried that (even though I used the regular installer not the portable version) and it didn't appear to work - although FARR didn't create a new folder in my OneDrive. A filename search revealed the config files had now appeared in the Program Files (x86) folder.

Still, that's as good a place as any, so I closed, copyied the correct files over, and restarted, and all is working now.

So I've got the  a result that I wanted, even though I'm not quite sure how :)

IainB

  • Supporting Member
  • Joined in 2008
  • **
  • Posts: 7,486
  • Slartibartfarst
    • View Profile
    • Read more about this member.
    • Donate to Member
Re: Can't change the configuration files location - W10 OneDrive
« Reply #3 on: January 06, 2020, 06:03 PM »
katykaty:
...I tried that (even though I used the regular installer not the portable version) and it didn't appear to work - although FARR didn't create a new folder in my OneDrive. A filename search revealed the config files had now appeared in the Program Files (x86) folder. ...
Oh right. Sorry, I forgot about that prob. as it was a while back. That problem probably occurs because you have residual entries/pointers in the Registry. It will otherwise keep proliferating and expecting FARR folders/files in odd places.
You may need to uninstall and expunge all traces to FARR (use RevoUninstaller on severe scrub setting) and reinstall it from a .ZIP file as Portable only - so the only instance of FARR will be a portable version.

By the way, I also looked inside and tinkered with the DCUpdater metadata files to point to the latest FARR version and where the app lives, as opposed to where the DCUpdater metadata file(s) assume that it would live. That way, you can use DCUpdater to tell you when there's a new version of FARR - or other @mouser app. It's a bit fiddly to get right, but DCUpdater is very handy after doing that.

hamradio

  • Charter Honorary Member
  • Joined in 2006
  • ***
  • Posts: 787
  • Amateur Radio Guy
    • View Profile
    • HamRadioUSA.net
    • Read more about this member.
    • Donate to Member
Re: Can't change the configuration files location - W10 OneDrive
« Reply #4 on: January 06, 2020, 06:23 PM »
Just reinstalled Windows 10 and as I'm using a Live account W10 has set the My Documents folder to my OneDrive
[environment]::getfolderpath("MyDocuments")
returns
C:\Users\katykaty\OneDrive\Documents

So FARR is storing config files in OneDrive, which I don't want, especially because the troubleshooting log often has trouble syncing.

So I closed FARR and edited the ConfigDir.ini file by adding the following line at the end, without comment slashes
CONFIGDIR=C:\Users\katykaty\AppData\Roaming\DonationCoder\FARR\Config

Copied all the config files across and removed the initial config folder on OneDrive.

But FARR seems to be ignoring this and has created a new 'first run' folder in OneDrive.

I can obviously close and move the config files back so I don't lose my settings, but what am I doing wrong?

Thanks!


If you do not want to use OneDrive on Windows 10 for default save to location...

I believe you can search Win 10 settings for Default Save Locations and there you can change where the default locations are for a few data types between OneDrive or Windows drive I believe which might have an effect on it.
Carroll - HamRadioUSA.net
« Last Edit: January 06, 2020, 06:28 PM by hamradio »

mouser

  • First Author
  • Administrator
  • Joined in 2005
  • *****
  • Posts: 39,819
    • View Profile
    • Mouser's Software Zone on DonationCoder.com
    • Read more about this member.
    • Donate to Member
Re: Can't change the configuration files location - W10 OneDrive
« Reply #5 on: January 06, 2020, 10:47 PM »
It should work as you want by editing the ConfigDir.ini file, so don't give up on that.

Just make sure you remove the // at the start of the ConfigDir line.
and then make sure farr is fully exited -- remember that by default when you click close it just minimizes to the tray.

Also the new FARR beta should show you where it is trying to store it settings file if you open the FARR about box.

If you are still having trouble, it must be something else going wrong..

katykaty

  • Supporting Member
  • Joined in 2006
  • **
  • Posts: 224
    • View Profile
    • Donate to Member
Re: Can't change the configuration files location - W10 OneDrive
« Reply #6 on: January 07, 2020, 02:14 PM »
Thanks Mouser I'd definitely deleted the comment slashes and definitely fully closed FARR.

I've decided to uninstall and go with the portable beta instead.