@Petermad, Sure you can.
You may want to consider this though: MOVE TCx64 to it's own install location, and rename it to "TotalCMD.exe" --- You can still - if you must use the same wincmd location, and you can use "TotalCMD.exe" and "WMCICONS.DLL" in the icon field of a button.
Semi-OT, Pseudo-Rant, extracted suggestion to fix your issue from below (above quote).
Although this issue, (among others) are caused by a few bad decision by Mr.Ghisler:
- Adding '64' to longstanding default filenames.
- Requiring x64 plugins to have '64' in their filename.
- Not giving x64 it's own registry key.
1) Enables users to install two versions of TC into the same folder -- which is completely uneccessary - there is no advantage to this whatsoever.
2) Enables users to install two versions of a plugin into the same folder: again almost completely unnecessary -- the only advantage to this is using the same plugin config.ini. Which shouldn't be necessary, most plugins aren't going to change their settings often enough that the x86 and x64 couldn't use their own config.
3) Causes multiple issues,
A) when you are trying to separate TC 32/64 bit. They will by default start using the same settings folder, unless you use "/i=" to direct TC to a specific wincmd.ini location.
B) Confusion. When pinning a TC shortcut to the Win7 taskbar, if you haven't specified the /i setting, your config's will get munged.
Note: I don't even use "COMMANDER_PATH", as it is an unwieldy string to stick everywhere. As well, prior to this x64 filename fiasco it wasn't even necessary in a Button's Icon Field: both wcmicons.dll and totalcmd.exe do not require a path in a Button's Icon Field.
Code: Select all
TOTALCMD#BAR#DATA
cm_SaveSelection
TotalCMD.exe,23
530
If TC's binary filename hadn't changed, the above would still work without change.
The clean approach would of:
- Left filenames unchanged; including plugins.
- Checked the "bitness" of a plugin for loading compatibility.
- And added a single key to the wincmd.ini: PluginsBaseDir64=%APPDATA%\GHISLER\plugins64
- Used relative paths (to the pluginbasedir) for plugin locations. Saved the relative path when adding/changing plugins. As is absolute paths are used, which makes the existing PluginsBaseDir ini setting pretty much useless.
As well, I really doubt that anyone changes plugin-settings so frequently that the disadvantages caused by installing two versions of a plugin into a single folder will outweigh any slight convenience.
Now if we want to handle the case of x64 and x86, we might use a single environment variable that is predefined in batch file.
e.g. %TCmd% ---> C:\Program Files (x86)\TotalCMD\TotalCMD.exe
WCMICONS.DLL hasn't changed name.
When pointing out the flaw and problems caused by a single registry key for TC, it should be taken into consideration instead of ignored as if it doesn't matter. It makes absolutely no sense that this wasn't done:
Code: Select all
Ghisler\Total Commander\IniFileName=C:\Path\to\x86\wincmd.ini
Ghisler\Total Commander\InstallDir=C:\Program Files (x86)\TotalCMD
Ghisler\Total Commander x64\IniFileName=C:\Path\to\x64\wincmd.ini
Ghisler\Total Commander x64\InstallDir=C:\Program Files\TotalCMD
I don't understand how can anyone that uses TC, whom most likely organizes their own files meticulously, can think it remotely plausible to put two different installs of a program into the same folder.
Nor can I understand why you are so reluctant to implement a 2 line batch file -- Although maybe it has to do with pinning such a shortcut to the win7 taskbar.
You may want to consider this though: MOVE TCx64 to it's own install location, and rename it to "TotalCMD.exe" --- You can still - if you must use the same wincmd location, and you can use "TotalCMD.exe" and "WMCICONS.DLL" in the icon field of a button.
As it stands, these decisions early on in TC x64's life doesn't bode well for the future. I've installed lots of x64 software, and none of them have x64 in their filenames, and none of them recommend installing into the x86 path of program files either.