Unattended Installation

English support forum

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Wackel
Junior Member
Junior Member
Posts: 8
Joined: 2022-08-30, 08:07 UTC

Unattended Installation

Post by *Wackel »

Hi.
I´m new here and need a little help. I want to add my configuration file (wincmd.ini) and my wincmd.key to the latest "tcmd1050x64.exe"? How can I extract and repack it?
Were can I find a tutorial about it?
I appreciate any help.
User avatar
nsp
Power Member
Power Member
Posts: 1919
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Unattended Installation

Post by *nsp »

The file is signed and should not be modified.
Adding key and wincmd.ini only make sense for company deployment and you should build your own installer calling standard one with options to corporate define paths...
Wackel
Junior Member
Junior Member
Posts: 8
Joined: 2022-08-30, 08:07 UTC

Re: Unattended Installation

Post by *Wackel »

And if I use the original installer to install through setupcomplete.cmd, which parameters I use to install using dutch language and only 64bit...
User avatar
white
Power Member
Power Member
Posts: 5815
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Unattended Installation

Post by *white »

Wackel wrote: 2022-08-30, 09:32 UTC Were can I find a tutorial about it?
https://www.ghisler.ch/wiki/index.php?title=How_to_make_installation_fully_automatic%3F

Ini can be problematic I think. There have been several discussions on this forum about it.
Last edited by white on 2022-08-30, 18:00 UTC, edited 1 time in total.
Reason: removed redundant word
User avatar
nsp
Power Member
Power Member
Posts: 1919
Joined: 2005-12-04, 08:39 UTC
Location: Lyon (FRANCE)
Contact:

Re: Unattended Installation

Post by *nsp »

Dutch language is 5 so /L5 is dutch only, the tcmd1050x64.exe file is only for 64bit.
To copy wincmd key, you can use /K.

To define destination for pgm and for ini file, you can use registry (https://www.ghisler.ch/board/viewtopic.php?p=402993) if you setup ini location in appdata [%APPDATA%\GHISLER\WINCMD.INI], you can copy wincmd.ini to the right folder...
Wackel
Junior Member
Junior Member
Posts: 8
Joined: 2022-08-30, 08:07 UTC

Re: Unattended Installation

Post by *Wackel »

So, I extracted the files of"tcmd1050x64.exe" into a folder.
Made the changes in "INSTALL.INF". OK
But now, how do I repack it back into "tcmd1050x64.ex" (or another name)?
User avatar
white
Power Member
Power Member
Posts: 5815
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Unattended Installation

Post by *white »

2Wackel
It's explained on the mentioned wiki page under "2. Download the new self-extracting installer". Is there something you don't understand?
Wackel
Junior Member
Junior Member
Posts: 8
Joined: 2022-08-30, 08:07 UTC

Re: Unattended Installation

Post by *Wackel »

Sorry.
I have the folder with the extra\cted files. Made the changes and also copied the sfxhead.sfx into the same folder, but I didn´t understand this below:

In menu Configuration - Options - ZIP packer, set the pack rate to '0' (store)
Select all the unpacked files
Pack them with Alt+F5, and check the option to create a self-extracting archive. This will use the sfxhead.sfx installer from the first two steps described above.

Were do I find the Configuration - Options - ZIP packer?

Do I need to have TC installed?
User avatar
white
Power Member
Power Member
Posts: 5815
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Unattended Installation

Post by *white »

Yes, it is assumed you use Total Commander to create the new package.
It says you should extract sfxhead.sfx to the Total Commander program folder. Rename the original to another name, so you can restore it when you are done.
You find Configuration - Options - ZIP packer in Total Commander. Change the compression rate to 0 (change it back when you are done). And pack with Total Commander as described.
Wackel
Junior Member
Junior Member
Posts: 8
Joined: 2022-08-30, 08:07 UTC

Re: Unattended Installation

Post by *Wackel »

Done. Worked. Will test it now.
Wackel
Junior Member
Junior Member
Posts: 8
Joined: 2022-08-30, 08:07 UTC

Re: Unattended Installation

Post by *Wackel »

Installed, but still in English and no desktop shortcut.

I used this configuration:

[Destination]
Dir=%TotalcmdDefaultDir%
Ini=wincmd.ini,Configuration,InstallDir
IgnoreOldLocation=0

[Desktop]
1=totalcmd64.exe","Total Commander 64 bit.lnk

wincmd.ini
[Configuration]
InstallDir=C:\Program Files\totalcmd
languageini=wcmd_dut.lng
Mainmenu=wcmd_dut.mnu
Wackel
Junior Member
Junior Member
Posts: 8
Joined: 2022-08-30, 08:07 UTC

Re: Unattended Installation

Post by *Wackel »

Why TC after install doesn´t open in Dutch?
User avatar
white
Power Member
Power Member
Posts: 5815
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Unattended Installation

Post by *white »

Wackel wrote: 2022-09-01, 14:39 UTC wincmd.ini
[Configuration]
InstallDir=C:\Program Files\totalcmd
languageini=wcmd_dut.lng
Mainmenu=wcmd_dut.mnu
Is that all what's in your wincmd.ini? Do you simply want to set the language to Dutch or do you want to copy your wincmd.ini with all your preferred settings?
User avatar
white
Power Member
Power Member
Posts: 5815
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: Unattended Installation

Post by *white »

Wackel wrote: 2022-08-30, 09:32 UTC I´m new here and need a little help. I want to add my configuration file (wincmd.ini) and my wincmd.key to the latest "tcmd1050x64.exe"? How can I extract and repack it?
Wackel wrote: 2022-08-30, 13:36 UTC And if I use the original installer to install through setupcomplete.cmd, which parameters I use to install using dutch language and only 64bit...
Generally I would recommend it this way. This way you can use the original installer and easily update the installer with a new version.
To install only 64bit, you use the 64bit installer of course.

Place these files together in the location where you want to store your setup files:
setupcomplete.cmd
tcmd1051x64.exe
wincmd.ini
wincmd.key

Your setupcomplete.cmd file could look like this:

Code: Select all

@echo off

rem Preserve environment, including current working folder
setlocal

rem Change current working folder to the folder of this batch file.
cd /D "%~dp0"

rem Make the folder where Total Commander usually stores wincmd.ini.
if not exist "%APPDATA%\GHISLER" mkdir "%APPDATA%\GHISLER"

rem Copy wincmd.ini to the data folder, except when it already exists.
if not exist "%APPDATA%\GHISLER\wincmd.ini" copy wincmd.ini "%APPDATA%\GHISLER\" > nul

rem Start installer with command line options:
rem  A:  Auto install
rem  H:  Hidden install
rem  L5: Install Dutch language
rem  M0: Don't install other languages
rem  K:  Key file install
rem  F:  Forced install in specified folder (otherwise it might be installed elsewhere)
tcmd1051x64.exe /AHL5M0FK "c:\Program Files\totalcmd"
To install: Right-click the setupcomplete.cmd file and choose Run as Administrator.

Notes:
Post Reply