Error when reinstalling the program from the command line.

Please report only one bug per message!

Moderators: white, Hacker, petermad, Stefan2

Post Reply
l0pez
Junior Member
Junior Member
Posts: 3
Joined: 2011-02-21, 08:32 UTC

Error when reinstalling the program from the command line.

Post by *l0pez »

I Install Totalcmd by SCCM. Tcmd756a unpacked. In the file install.inf I changed the line DIR to C:\Program Files\Total Commander.
After the automatic installation of the application is installed in c:\Program Files\Total Commander. It is correct. After removal of the application and change the line DIR in the file install.inf to d:\totalcommander does not give any result. Still the application installs in the directory c:\Program Files\ Total Commander. It isn't correct.

Regards
User avatar
sqa_wizard
Power Member
Power Member
Posts: 3864
Joined: 2003-02-06, 11:41 UTC
Location: Germany

Post by *sqa_wizard »

In the file install.inf I changed the line DIR to C:\Program Files\Total Commander.
This line holds the initial installation dir, if no TC has been installed before.

Each further installation will update the existing installation only.
The path of an existing installation is written to one of the following registry keys:

Code: Select all

HKEY_CURRENT_USER\Software\Ghisler\Total Commander\InstallDir
HKEY_LOCAL_MACHINE\SOFTWARE\Ghisler\Total Commander\InstallDir
You have to change the value of this key accordingly or just delete it, before a new installation dir will be chosen.

BTW: I guess you have changed at least one more line:
auto=1
#5767 Personal license
l0pez
Junior Member
Junior Member
Posts: 3
Joined: 2011-02-21, 08:32 UTC

Post by *l0pez »

I heve removed both keys
HKEY_CURRENT_USER\Software\Ghisler\Total Commander\InstallDir
and
HKEY_LOCAL_MACHINE\SOFTWARE\Ghisler\Total Commander\InstallDir

TotalCommander is instaled in c:\program files\totalcommander instead of d:\total commander still.

In install.inf i hav Dir=d:\total commander and autom = 1.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

Try to disable auto (auto=0), you'll see choice update or new installation.

Anyway, TC installer tries to read install path from specified reg keys and suggests that path if found else suggests path specified in install.inf.
l0pez
Junior Member
Junior Member
Posts: 3
Joined: 2011-02-21, 08:32 UTC

Post by *l0pez »

I have changed auto=1 to auto=0 and installer suggest me old patch to c:\program files\totalcommander , no path set in install.inf file:
Dir=d:\totalcommander.
I do not know from this information is taken about destination folder c:\program files\totalcommander, becouse i deleted both keys from registry:
HKEY_CURRENT_USER\Software\Ghisler\Total Commander\InstallDir
HKEY_LOCAL_MACHINE\SOFTWARE\Ghisler\Total Commander\InstallDir.

I installed Total commander in c:\program files\totalcommander previously.
User avatar
MVV
Power Member
Power Member
Posts: 8702
Joined: 2008-08-03, 12:51 UTC
Location: Russian Federation

Post by *MVV »

You may try to remove wincmd.ini from Windows dir and under user AppData (if exist) temporarily - maybe installer reads path from that files.
Post Reply