[TC11.03] Silent install - registry is updated incorrectly if TC is running

Bug reports will be moved here when the described bug has been fixed

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Borek
Junior Member
Junior Member
Posts: 3
Joined: 2016-12-30, 08:27 UTC

[TC11.03] Silent install - registry is updated incorrectly if TC is running

Post by *Borek »

Hello
I tried to remotelly update Total Commander on all our computers using command "tcmd1103x64.exe /A1H1L11N*". When Total Commander is running on the target computer, silent install will run without error. It does not update the installation. But it does change the version of TC in the registry to the current version. How to reproduce this:
  • TC 10 is running
  • tcmd1103x64.exe /A1H1L11N* is run remotelly
  • TC 10 remains installed and running
  • version 11.03 is shown in the Control Panel
This is a problem because our remote deployment software reads TC version from the registry and displays that all computers have 11.03 installed. Which is not true. Several older versions remained on some computers. We are using Ninite Pro beta "custom packages" function and it lacks "custom steps" so we cannot kill running TC before installer is run.
User avatar
Stefan2
Power Member
Power Member
Posts: 4281
Joined: 2007-09-13, 22:20 UTC
Location: Europa

Re: [TC11.03] Silent install - registry is updated incorrectly if TC is running

Post by *Stefan2 »

Borek wrote: 2024-04-18, 11:32 UTC ... and it lacks "custom steps" so we cannot kill running TC before installer is run.

Thanks for reporting this.



In the meantime you may want to deploy a script (bat/VBS/PoSh) with the setup.exe and do all need steps from there.

- execute the script instead of the setup
- check if TC runs
- show the user a message that TC need to be closed
- wait till TC doesn't run
- execute the setup



 
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50383
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC11.03] Silent install - registry is updated incorrectly if TC is running

Post by *ghisler(Author) »

Sorry, I haven't changed this so far - it's difficult to decide when the installation was successful if some files were skipped...
Author of Total Commander
https://www.ghisler.com
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50383
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC11.03] Silent install - registry is updated incorrectly if TC is running

Post by *ghisler(Author) »

This should be fixed in beta 5 now! When the installer can't overwrite a file (except in windows or system directory, or when a file has the "read only" attribute), it will now abort the installation in silent mode and return an error level.
Author of Total Commander
https://www.ghisler.com
JOUBE
Power Member
Power Member
Posts: 1664
Joined: 2004-07-08, 08:58 UTC

Re: [TC11.03] Silent install - registry is updated incorrectly if TC is running

Post by *JOUBE »

A few days ago I tried to recreate this problem described by the OP with TC 10.03 and Tc 11.50rc5. But I already failed to get the problem with the Tc 10.03 tests, because in that the installation worked without any problems under the conditions mentioned by OP. However, I tried it with the 10.03 installation with the combined 32bit+64bit version (and not with the 64bit only version like the OP). From my point of view, the problem does not exist and will therefore not occur in 11.50. Whether it can be moved to fixed bugs is therefore up to ghisler (author) himself to decide, or someone who can recreate the problem in Tc10.03.
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 50383
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC11.03] Silent install - registry is updated incorrectly if TC is running

Post by *ghisler(Author) »

I also had troubles reproducing the problem: In the end I had to use the debugger to pause the installer immediately after making it close a running Total Commander, then starting another copy of Total Commander to block the overwriting of the totalcmd64.exe file. I guess that only OP can test the bugfix in their special situation, but they didn't reply to my requests to comment. :(

I'm moving this to fixed bugs now, please submit a new bug report if you encounter a similar problem.

Moderator message from: ghisler(Author) » 2025-01-22, 08:46 UTC

Moved to fixed bugs
Author of Total Commander
https://www.ghisler.com
Post Reply