(not bug) cannot read/write ini in Win7
Moderators: Hacker, petermad, Stefan2, white
(not bug) cannot read/write ini in Win7
New computer, Win7 RTM installed and TC 7.5 pack copied from flash
Written in registry location of ini (in the tc folder), but tc starts as no ini exists- with default settings. after attempt to change settings it shows msg
"Cannot write D:\My Program Files\Total Commander\wincmd.ini!"
so it starts with corrects ini but cannot read/write ini.
turning UAC off, running as admin, all doesn't help.
Written in registry location of ini (in the tc folder), but tc starts as no ini exists- with default settings. after attempt to change settings it shows msg
"Cannot write D:\My Program Files\Total Commander\wincmd.ini!"
so it starts with corrects ini but cannot read/write ini.
turning UAC off, running as admin, all doesn't help.
Last edited by Alextp on 2009-09-15, 10:32 UTC, edited 2 times in total.
- ghisler(Author)
- Site Admin
- Posts: 50909
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Normal users aren't allowed to write under "Program files". Either install TC in d:\Totalcmd as suggested by the installer, or choose a different location for the ini files during installation, where you have write rights.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- Balderstrom
- Power Member
- Posts: 2148
- Joined: 2005-10-11, 10:10 UTC
What's in the registry key: HKU\Software\Ghisler\
And I edited that after the initial install to fix the "GHISLER" path, so I could get rid of the junction and put the ¤TC folder to the top of the Application Data. So you should be able to just edit the value(s) to:
No quotes around any KeyValues and REG_SZ'sFtpIniName = %APPDATA%\¤TC\wcx_ftp.ini
IniFileName = %APPDATA%\¤TC\wincmd.ini
InstallDir = C:\Program Files\TotalCMD
And I edited that after the initial install to fix the "GHISLER" path, so I could get rid of the junction and put the ¤TC folder to the top of the Application Data. So you should be able to just edit the value(s) to:
Or something similiar.D:\My Program Files\TotalCMD\wcx_ftp.ini
D:\My Program Files\TotalCMD\wincmd.ini
D:\My Program Files\TotalCMD
2Balderstrom
Already done, TC shows right path in message "Cannot write D:\My Program Files\Total Commander\wincmd.ini!"
Yeah, before registry changes TC looked for wincmd.ini in %UserDir% and created there a new one, so it can't find (or read?) wincmd.ini in it's own directory.
This TC pack works ok on old computer with Windows 7 build 7127.
Already done, TC shows right path in message "Cannot write D:\My Program Files\Total Commander\wincmd.ini!"
Yeah, before registry changes TC looked for wincmd.ini in %UserDir% and created there a new one, so it can't find (or read?) wincmd.ini in it's own directory.
This TC pack works ok on old computer with Windows 7 build 7127.
- Balderstrom
- Power Member
- Posts: 2148
- Joined: 2005-10-11, 10:10 UTC
It helps if TC folder is write-protected. I have TC folder write-protected for security reasons, just some ini-files has full permissions, and all work fine.sEXEcutor wrote:Alextp reposted my problem from russian forum.
D:\My Program Files is NOT %PROGRAMFILES% directory, I've created it.Normal users aren't allowed to write under "Program files"
It doesn't help.Also you may edit permissions for wincmd.ini and allow its writing for all users.
Do you have TC installed in D:\My Program Files\Total Commander? Check Help\About menu command, there TC shows current ini paths. Can you change and save changes in this files with Notepad for example?
The answer was in Balderstrom's words:
After correcting values all works ok.
Gentlemen, it's not a bug. Thanks to all!
PS Now I know about official tool inireloc.
After first start TC didn't get wincmd.ini and created a new one in %UserDir%. I'm a lazy man so I used an application named TCDir for changing paths in registry. TCDir changed them but WITH quotes. As I remember, this app worked good with old versions with TC, so I didn't check changes.No quotes around any KeyValues and REG_SZ's
After correcting values all works ok.
Gentlemen, it's not a bug. Thanks to all!
PS Now I know about official tool inireloc.