[TC 9.51] Auto install ramblings
Moderators: Hacker, Stefan2, white
[TC 9.51] Auto install ramblings
There is a wiki article on this topic:
https://www.ghisler.ch/wiki/index.php/How_to_make_installation_fully_automatic%3F
1) nice, thanks for the article
2) Suggestion: please add an example
3) paramter parameter
4) Can one omit parameters? What are the default values?
4a) What does A0H1 do?
5) " L accepts a language number from install.inf, e.g. L2=german"
Please add (a link to) the supported languages, a current INSTALL.INF, or the fact that one can extract INSTALL.INF from the installer.exe
5a) INSTALL.INF in tcmd951x64.exe is not encoded as UTF-8
6) "K=install wincmd.key from the same directory where the installer is located."
My guess, based on experiment (did not attach a debugger): This is incorrect. The installer looks for wincmd.key in the current working directory, not the directory of the installer.
7) Suggestion: Please add a link to the wiki article to the Installation FAQ: https://www.ghisler.com/efaq_inst.htm
https://www.ghisler.ch/wiki/index.php/How_to_make_installation_fully_automatic%3F
1) nice, thanks for the article
2) Suggestion: please add an example
3) paramter parameter
4) Can one omit parameters? What are the default values?
4a) What does A0H1 do?
5) " L accepts a language number from install.inf, e.g. L2=german"
Please add (a link to) the supported languages, a current INSTALL.INF, or the fact that one can extract INSTALL.INF from the installer.exe
5a) INSTALL.INF in tcmd951x64.exe is not encoded as UTF-8
6) "K=install wincmd.key from the same directory where the installer is located."
My guess, based on experiment (did not attach a debugger): This is incorrect. The installer looks for wincmd.key in the current working directory, not the directory of the installer.
7) Suggestion: Please add a link to the wiki article to the Installation FAQ: https://www.ghisler.com/efaq_inst.htm
Re: [TC 9.51] Auto install ramblings
This old post from "TC9.5x bug reports (English)" deserves some answers. So here we go.
- I leave it up to Ghisler to respond to this.
- I plan to improve the wiki page. Maybe I'll add it. Anyone with a forum account can do that BTW.
- Fixed.
- Yes all of them
The switches H L M G D U W only effect automatic installation. Defaults are:
A0
H0
L1 (English)
M1 (M)
G1 (G)
D1 (D)
U1 (U)
W0
(defaults can be changed in INSTALL.INF)
4a. Disables auto install if that was made the default in INSTALL.INF- See the answer to question 2.
5a. Maybe on purpose? See answer to question 1.- You are right, it is incorrect. It is also described this way in HISTORY.TXT:
2ghisler(Author)HISTORY.TXT wrote: 31.07.16 Added: One more parameter added to installer: /K installs wincmd.key file located in same directory as the installer. Note: All parameters MUST be passed in one group after a single slash (32/64)
How do you want to handle this? I assume you want to keep the behavior as it is for compatibility reasons. Change the wiki and also change HISTORY.TXT so people don't get the wrong idea?- See answer to question 1.
Re: [TC 9.51] Auto install ramblings
Moderator message from: white » 2022-08-30, 19:41 UTC
Moved to TC10.x bugs forum.
- ghisler(Author)
- Site Admin
- Posts: 44637
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC 9.51] Auto install ramblings
Where is the bug? Just the typo in the Wiki?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
- ghisler(Author)
- Site Admin
- Posts: 44637
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC 9.51] Auto install ramblings
I think you misunderstand something here. The wiki explanation
/K=path
It just explains that the parameter K means that a key from the installer directory will be copied.
Maybe I should just change that to:
K: install wincmd.key from the same directory where the installer is located
But then people will think they can use a colon after the K switch. Oh well...
But I don't understand what you mean with changing HISTORY.TXT, the entry is correct?
Doesn't mean that you use a parameterK=install wincmd.key from the same directory where the installer is located.
/K=path
It just explains that the parameter K means that a key from the installer directory will be copied.
Maybe I should just change that to:
K: install wincmd.key from the same directory where the installer is located
But then people will think they can use a colon after the K switch. Oh well...
But I don't understand what you mean with changing HISTORY.TXT, the entry is correct?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [TC 9.51] Auto install ramblings
So if current dir is c:\ and you start the installer with c:\downloads\tcmd1051x32_64.exe /K, then the key from the root of drive c: is installed, not from the directory of the installer.FrankH wrote: ↑2021-05-11, 11:10 UTC 6) "K=install wincmd.key from the same directory where the installer is located."
My guess, based on experiment (did not attach a debugger): This is incorrect. The installer looks for wincmd.key in the current working directory, not the directory of the installer.
- ghisler(Author)
- Site Admin
- Posts: 44637
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC 9.51] Auto install ramblings
Sorry, I missed that. It only works when giving the installation file as a parameter. I will fix it.
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [TC 9.51] Auto install ramblings
Confirmed.ghisler(Author) wrote: ↑2022-09-01, 08:25 UTC Sorry, I missed that. It only works when giving the installation file as a parameter. I will fix it.
While testing I first couldn't get /A to work, it switched to interactive mode and offered to update, even if I also used U or F. I had an installation in c:\totalcmd but cleaned the registry and removed %APPDATA%\GHISLER. After I cleaned up everything it worked again and couldn't reproduce anymore. Is there any situation using the original installers where the /A switch is used but the installer still switches to interactive mode?
- ghisler(Author)
- Site Admin
- Posts: 44637
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC 9.51] Auto install ramblings
2white
I have sent you another pre-release version where the key install should be fixed, please try it!
I have sent you another pre-release version where the key install should be fixed, please try it!
I have checked my code, it should not happen - the auto-install function is separate, and the installer doesn't fall back to interactive when it fails.Is there any situation using the original installers where the /A switch is used but the installer still switches to interactive mode?
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [TC 9.51] Auto install ramblings
I will check it now.ghisler(Author) wrote: ↑2022-09-01, 11:20 UTC 2white
I have sent you another pre-release version where the key install should be fixed, please try it!
OK, then lets assume I made a mistake. Perhaps used \ instead of /, who knowsghisler(Author) wrote: ↑2022-09-01, 11:20 UTCI have checked my code, it should not happen - the auto-install function is separate, and the installer doesn't fall back to interactive when it fails.Is there any situation using the original installers where the /A switch is used but the installer still switches to interactive mode?

Re: [TC 9.51] Auto install ramblings
Tested OK using TC 10.51.HISTORY.TXT wrote: 01.09.22 Fixed: Installer: Parameter /K made the installer look for the key in the current directory instead of the installer directory (32/64)
Re: [TC 9.51] Auto install ramblings
FrankH wrote: ↑2021-05-11, 11:10 UTC There is a wiki article on this topic:
https://www.ghisler.ch/wiki/index.php/How_to_make_installation_fully_automatic%3F
1) nice, thanks for the article
2) Suggestion: please add an example
3) paramter parameter
4) Can one omit parameters? What are the default values?
4a) What does A0H1 do?
5) " L accepts a language number from install.inf, e.g. L2=german"
Please add (a link to) the supported languages, a current INSTALL.INF, or the fact that one can extract INSTALL.INF from the installer.exe
5a) INSTALL.INF in tcmd951x64.exe is not encoded as UTF-8
6) "K=install wincmd.key from the same directory where the installer is located."
My guess, based on experiment (did not attach a debugger): This is incorrect. The installer looks for wincmd.key in the current working directory, not the directory of the installer.
7) Suggestion: Please add a link to the wiki article to the Installation FAQ: https://www.ghisler.com/efaq_inst.htm
Due to personal circumstances I put the project on hold for a while, but have now updated the wiki page. I've also added an new wiki page https://www.ghisler.ch/wiki/index.php/Installer with lots of information and examples. I'm also planning to create a wiki page on how to create a custom installer, but that's still a work in progress. Enjoy!
- ghisler(Author)
- Site Admin
- Posts: 44637
- Joined: 2003-02-04, 09:46 UTC
- Location: Switzerland
- Contact:
Re: [TC 9.51] Auto install ramblings
Very nice, thanks a lot!
Author of Total Commander
https://www.ghisler.com
https://www.ghisler.com
Re: [TC 9.51] Auto install ramblings
I have now also added the wiki page Custom installer and changed the wiki page How to make installation fully automatic? which is now very small.
It remains cumbersome to create a custom self extracting install program. It would be much easier if the zipfromlist command supported a parameter to specify a sfxhead.sfx file, as suggested here.
It remains cumbersome to create a custom self extracting install program. It would be much easier if the zipfromlist command supported a parameter to specify a sfxhead.sfx file, as suggested here.