Built-in support of the installer
Posted: 2019-10-26, 12:52 UTC
TC already has almost all the code needed to download the update files from the main source like totalcommander.ch (both the update program and main *.cab file), so the usage of web browser for this becomes excessive and is supported only because of long tradition.
I suggest to add this option to main TC code, so after the version check TC will be able to directly download the web installer (and maybe also *.cab needed by default), then run the installer. From the user side, this option can be implemented with minimal additions, maybe one more dialog and a couple of buttons. The reference to the source may be either built-in or configurable in a line in wincmd.ini. In the last case, it will be possible to update TC via corporate intranet. More deep changes may be needed to integrate the web installer code into TC, it may be a boon for users but not very good for consistency of the code, so it's more a wish rather than suggestion.
Alternatively, the web installer may be added to the installation as another component in the TC directory. This (most simple) way, after version check TC may run the installer instead of the web browser like now.
Of course, for PCs without Internet connection the update will work in traditional way, nothing changes.
I suggest to add this option to main TC code, so after the version check TC will be able to directly download the web installer (and maybe also *.cab needed by default), then run the installer. From the user side, this option can be implemented with minimal additions, maybe one more dialog and a couple of buttons. The reference to the source may be either built-in or configurable in a line in wincmd.ini. In the last case, it will be possible to update TC via corporate intranet. More deep changes may be needed to integrate the web installer code into TC, it may be a boon for users but not very good for consistency of the code, so it's more a wish rather than suggestion.
Alternatively, the web installer may be added to the installation as another component in the TC directory. This (most simple) way, after version check TC may run the installer instead of the web browser like now.
Of course, for PCs without Internet connection the update will work in traditional way, nothing changes.