Modifying the install INF

English support forum

Moderators: white, Hacker, petermad, Stefan2

User avatar
DRP535
Senior Member
Senior Member
Posts: 301
Joined: 2003-03-03, 11:25 UTC

Modifying the install INF

Post by *DRP535 »

I want to create an automated install script for TC. How do I modify this info in the INF if I want the default installation directory to be called "Total Commander" instead of "totalcmd"?

Code: Select all

[Destination]
ProgramFilesDir=%programfiles%\totalcmd
Dir=c:\totalcmd
Ini=wincmd.ini,Configuration,InstallDir
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

ProgramFilesDir=%programfiles%\Total Commander
Dir=c:\Total Commander

You can leave out the ProgramFilesDir= line if you don't want to install it under %programfiles%.

However, please note that if TC was installed previously on that computer, it will be installed to that previous directory (to update an existing installation).
Author of Total Commander
https://www.ghisler.com
kukubau
Junior Member
Junior Member
Posts: 6
Joined: 2009-08-05, 19:08 UTC

Post by *kukubau »

hi


I am trying to build a silent9almost) installation o total commander


i want to install it in c:\program files\Total Commander and not in c:\totalcmd

I modified the install.inf like this

[auto]
auto=1
lang=1
alllang=0
iniloc=%ProgramFiles%\Total Commander
iniall=0
mkgroup=1
mkdesktop=1

[Destination]
ProgramFilesDir=%ProgramFiles%\Total Commander
Ini=wincmd.ini,Configuration,InstallDir

but it keps instaling in c:\totalcmd. ProgramFilesDir=%ProgramFiles%\Total Commander doesn't work

It drives me nuts

anyone???
Last edited by kukubau on 2009-08-06, 15:31 UTC, edited 1 time in total.
User avatar
ZoSTeR
Power Member
Power Member
Posts: 1013
Joined: 2004-07-29, 11:00 UTC

Post by *ZoSTeR »

Look up the registry key HKEY_CURRENT_USER\Software\Ghisler\Total Commander

I guess that's overriding anything the setup.ini says.
I've been using my own installer for years now so I can't be sure.
kukubau
Junior Member
Junior Member
Posts: 6
Joined: 2009-08-05, 19:08 UTC

Post by *kukubau »

reg key

installdir C:\Program Files\Total Commander


and it keeps installing in c:\totalcmd


why on earth is this the default path??????
User avatar
Hacker
Moderator
Moderator
Posts: 13065
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

kukubau,
c:\totalcmd
why on earth is this the default path??????
You do not need admin rights to write there.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
kukubau
Junior Member
Junior Member
Posts: 6
Joined: 2009-08-05, 19:08 UTC

Post by *kukubau »

???


don't get it
User avatar
ZoSTeR
Power Member
Power Member
Posts: 1013
Joined: 2004-07-29, 11:00 UTC

Post by *ZoSTeR »

It seems you still need a "Dir=" entry.
kukubau
Junior Member
Junior Member
Posts: 6
Joined: 2009-08-05, 19:08 UTC

Post by *kukubau »

tried that too

Dir=C:\$ProgramFiles%\Total Commander

and

Dir=C:\Program Files\Total Commander

no go


it still installs in c:\totalcmd

aaaaggghhh
User avatar
ZoSTeR
Power Member
Power Member
Posts: 1013
Joined: 2004-07-29, 11:00 UTC

Post by *ZoSTeR »

Edit:

I just noticed you're talking about a setup.ini??

You have to modify the file "install.inf".

Removing that regkey and having both "Dir=" and "ProgramFilesDir=" worked for me (at least non silent).

Maybe you still have a regkey Ghisler under HKLocalMachine?
kukubau
Junior Member
Junior Member
Posts: 6
Joined: 2009-08-05, 19:08 UTC

Post by *kukubau »

install.inf I modified

sorry about the error
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48083
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Post by *ghisler(Author) »

The dir in install.inf is ignored if a previous install dir is found under HKEY_CURRENT_USER or HKEY_LOCAL_MACHINE (Software\ghisler key). Did you check both locations?
Author of Total Commander
https://www.ghisler.com
User avatar
Hacker
Moderator
Moderator
Posts: 13065
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

kukubau,
??
don't get i
C:\Totalcmd is the default path because you do not need admin rights to write there, as opposed to c:\Program Files.

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
eugensyl
Power Member
Power Member
Posts: 564
Joined: 2004-06-03, 18:27 UTC
Location: România
Contact:

Post by *eugensyl »

kukubau wrote:reg key

installdir C:\Program Files\Total Commander


and it keeps installing in c:\totalcmd


why on earth is this the default path??????

Use RevoUninstaller and remove ALL (dirs, files, registry) and reinstall TC. Should work.
My Best Wishes,

Eugen
kukubau
Junior Member
Junior Member
Posts: 6
Joined: 2009-08-05, 19:08 UTC

Post by *kukubau »

Isn't there a way to make tc installation fully silent? I hate that blue window popping out when installing.
Post Reply