Silent install to Program Files folder

English support forum

Moderators: white, Hacker, petermad, Stefan2

Post Reply
waldor
Junior Member
Junior Member
Posts: 4
Joined: 2017-07-05, 09:34 UTC

Silent install to Program Files folder

Post by *waldor »

How can I make silent installation to Program Files folder?

Steps from Wiki (How to make installation fully automatic?) works perfectly as long as I install to path without spaces (like C:\totalcmd, or C:\test\totalcmd).

When using in Install.inf Dir=%ProgramFiles%\totalcmd, installation runs, but app is nowhere to be found.
User avatar
Stefan2
Power Member
Power Member
Posts: 4133
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

Hi and welcome.

Not tested, never has on that topic, but try proper quoting: Dir="%ProgramFiles%\totalcmd"



Also try searching this forum, that 'automatic installing' was a topic already in the past.





 
waldor
Junior Member
Junior Member
Posts: 4
Joined: 2017-07-05, 09:34 UTC

Post by *waldor »

Hi Stefan2, thanks for your quick reply.

I tried all I could think of, none of below worked:
- using single/double quotes in path
- Dir=%ProgramFiles%\totalcmd
- Dir=C:\PROGRA~1\totalcmd
- Dir=C:\Program Files\totalcmd
- ProgramFilesDir=%programfiles%\Total Commander
Dir=c:\Total Commander

I also searched forum, found a lot about automating the install, but not how to automate install to Program Files folder.
Last edited by waldor on 2017-07-05, 13:10 UTC, edited 1 time in total.
User avatar
Stefan2
Power Member
Power Member
Posts: 4133
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

So I am not of any help.

All I found just use
[Destination]
Dir=%ProgramFiles%\totalcmd


- - -

Did you had installed TC one time before?


The installer uses this location [from the INF] only during the first installation.
All further installations go to the last used installation directory.


Check
HKEY_LOCAL_MACHINE\SOFTWARE\Ghisler\Total Commander
HKEY_CURRENT_USER\Software\Ghisler\Total Commander



Check your wincmd.INI for
[Configuration]
InstallDir=c:\totalcmd\
and remove that line.


or use in the INF
[Destination]
IgnoreOldLocation=1

to ignore all previous installations of TC.


- - -

Are there two INF files? Do you modify the right one?
install64.inf
install.inf




Maybe some or all infos are old and obsolete, sorry.
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

Regardless of what path is specified in install.inf, TC will always be installed in the location it has been installed previously. To overrule this behavior either set the already mentioned IgnoreOldLocation (only works with installers of TC9), or delete all of the following registry paths:

Code: Select all

HKLM\Software\Ghisler
HKLM\Software\Wow6432Node\Ghisler
HKCU\Software\Ghisler
Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
waldor
Junior Member
Junior Member
Posts: 4
Joined: 2017-07-05, 09:34 UTC

Post by *waldor »

Thanks Stefan2 & Dalai

IgnoreOldLocation is set to 1.

I am using 64bit installer (tcmd900ax64.exe), so there's only one INF file.

Below keys are not present:

Code: Select all

HKLM\Software\Ghisler 
HKLM\Software\Wow6432Node\Ghisler 
HKCU\Software\Ghisler
User avatar
Dalai
Power Member
Power Member
Posts: 9364
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Post by *Dalai »

Try setting auto=0, keep the rest of the settings, and check whether or not TC uses the specified location during the installation process.

Regards
Dalai
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
waldor
Junior Member
Junior Member
Posts: 4
Joined: 2017-07-05, 09:34 UTC

Post by *waldor »

Found the problem, admin rights :-)
I did not notice the exe does not elevate automatically to run with admin rights.

So I can confirm below line works:
Dir=%ProgramFiles%\Total Commander

Thank you all!
User avatar
Stefan2
Power Member
Power Member
Posts: 4133
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Post by *Stefan2 »

8) oh, yes, OK.


Fine you have sorted that out now.




 
Post Reply