Maintain same configuration for all users and all computers

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
nn1k3
Member
Member
Posts: 141
Joined: 2007-02-06, 16:59 UTC

Maintain same configuration for all users and all computers

Post by *nn1k3 »

I want the same configuration for TC (32-bit) and its plugins for all users and across all computers (XP, Win7 32-bit, and Win7 64-bit).
I would regularly sync across the computers by copying the latest and best ini files to the other computers.

My question is whether this is the correct first step:
Make this change to the registry on each computer, and for each user:

Code: Select all

[HKEY_CURRENT_USER\Software\Ghisler\Total Commander]
"InstallDir"="%Commander_Path%"
"IniFileName"="%Commander_Path%\\wincmd.ini"
"FtpIniName"="%Comm[/list]ander_Path%\\wcx_ftp.ini"
Or would this be better?

Code: Select all

	"IniFileName"="C:\ProgramData\GHISLER\\wincmd.ini"
	"FtpIniName"="C:\ProgramData\GHISLER\\wcx_ftp.ini"
Obviously this would be a pain to maintain for all users

Code: Select all

	"IniFileName"="%APPDATA%\\GHISLER\\wincmd.ini"
	"FtpIniName"="%APPDATA%\\GHISLER\\wcx_ftp.ini"
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Best way is to put INI files to TC dir and to add this line to Configuration section of wincmd.ini:

Code: Select all

UseIniInProgramDir=7
:D

(read more: F1, section 4.b)
User avatar
nn1k3
Member
Member
Posts: 141
Joined: 2007-02-06, 16:59 UTC

Post by *nn1k3 »

MVV thank you once again - I'm all set now. For other newbies let me summarize the obvious. You are saying that for my needs
1) the best place for the ini files is indeed in %Commander_Path% rather than %APPDATA% or "ProgramData."
2) The easiest way to achieve that is with "UseIniInProgramDir=7"

Also I see where the seven comes from: 7 = 1+2+4:

Code: Select all

UseIniInProgramDir=0 This variable will only be read if the wincmd.ini is located in the same dir as the program. It must be put in wincmd.ini directly, RedirectSection has no effect on this variable.
It is the sum of the following values:
1: Use wincmd.ini in program dir if no other location is set via registry or parameters
2: Use wcx_ftp.ini in program dir if no other location is set via registry or parameters
4: Override registry settings (but not command line parameters)
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3897
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

1) the best place for the ini files is indeed in %Commander_Path%
Yes, but do NOT use protected folders such as "Program Files" or "Program Files (x86)" on Windows 7.
This prevents write access to the ini files.
#5767 Personal license
User avatar
nn1k3
Member
Member
Posts: 141
Joined: 2007-02-06, 16:59 UTC

Post by *nn1k3 »

2sqa_wizard:
Thanks for the warning, but that is not a problem because all users have permission to change the one shared wincmd.ini file.

FYI My ini files are here "c:\Program Files (x86)\totalcmd\" or in the plugins subdirectory.
User avatar
Stance
Power Member
Power Member
Posts: 1079
Joined: 2005-03-29, 06:26 UTC

Post by *Stance »

sqa_wizard wrote:
1) the best place for the ini files is indeed in %Commander_Path%
Yes, but do NOT use protected folders such as "Program Files" or "Program Files (x86)" on Windows 7.
This prevents write access to the ini files.

Do you believe all other Software are installed into the wrong directories but Total Commander is the only one who did it right?
That's ridiculous. This behavior is as a threat to society. Why do you use Win7 at all?
User avatar
MVV
Power Member
Power Member
Posts: 8711
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Stance,
He just means that when you install TC under Program Files, it is not easy to keep INI files in TC folder because of read-only permissions for users (of course if your UAC is enabled), and you need to enable write permission manually for every file you need to be able to modify.
User avatar
HolgerK
Power Member
Power Member
Posts: 5412
Joined: 2006-01-26, 22:15 UTC
Location: Europe, Aachen

Post by *HolgerK »

Stance wrote:This behavior is as a threat to society.
I am a real threat for windows health because i never use the desktop or my documents folders too.
Looks like i am an anarchist. :wink:

Regards
Holger
Post Reply