Unattended Installation
Moderators: Hacker, petermad, Stefan2, white
Unattended Installation
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.
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.
Re: Unattended Installation
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...
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...
Re: Unattended Installation
And if I use the original installer to install through setupcomplete.cmd, which parameters I use to install using dutch language and only 64bit...
Re: Unattended Installation
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
Reason: removed redundant word
Re: Unattended Installation
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...
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...
Re: Unattended Installation
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)?
Made the changes in "INSTALL.INF". OK
But now, how do I repack it back into "tcmd1050x64.ex" (or another name)?
Re: Unattended Installation
2Wackel
It's explained on the mentioned wiki page under "2. Download the new self-extracting installer". Is there something you don't understand?
It's explained on the mentioned wiki page under "2. Download the new self-extracting installer". Is there something you don't understand?
Re: Unattended Installation
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?
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?
Re: Unattended Installation
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.
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.
Re: Unattended Installation
Done. Worked. Will test it now.
Re: Unattended Installation
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
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
Re: Unattended Installation
Why TC after install doesn´t open in Dutch?
Re: Unattended Installation
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?Wackel wrote: 2022-09-01, 14:39 UTC wincmd.ini
[Configuration]
InstallDir=C:\Program Files\totalcmd
languageini=wcmd_dut.lng
Mainmenu=wcmd_dut.mnu
Re: Unattended Installation
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?
Generally I would recommend it this way. This way you can use the original installer and easily update the installer with a new version.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...
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"
Notes:
- It will not overwrite an existing wincmd.ini file. You need to adjust the batch file if you want that.
- wincmd.ini contains most settings, but not all. See: https://www.ghisler.ch/wiki/index.php/Backup