[TC10.51] Installer, /Z parameter doesn't take precedence

The behaviour described in the bug report is either by design, or would be far too complex/time-consuming to be changed

Moderators: white, Hacker, petermad, Stefan2

Post Reply
User avatar
white
Power Member
Power Member
Posts: 4577
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

[TC10.51] Installer, /Z parameter doesn't take precedence

Post by *white »

When using parameters with the installers:
The last parameter is either an installation folder or a filename of a file with installation data. If you want to specify both, you must use the Z switch to specify the file that contains the installation data.

Now run:

Code: Select all

tcmd1051x32_64.exe /Z"tcmd1051x32.exe" tcmd1051x64.exe
The installation data from tcmd1051x64.exe is used instead of tcmd1051x32.exe.

In my opinion, when using /Z"datafile", the last parameter should always be interpreted as installation folder. Or at least the file specified with /Z"datafile" should take precedence. Like HISTORY.TXT says:
HISTORY.TXT wrote: 16.02.21 Added: Installer: New parameter /Z"c:\path\content.zip" forces installer to load installation data from specified ZIP file (32/64)
User avatar
ghisler(Author)
Site Admin
Site Admin
Posts: 48012
Joined: 2003-02-04, 09:46 UTC
Location: Switzerland
Contact:

Re: [TC10.51] Installer, /Z parameter doesn't take precedence

Post by *ghisler(Author) »

The parameters are read and handled from left to right. If the last parameter is a file, it will always be used. You cano't create a directory with the same name as a file, so using tcmd1051x64.exe as a directory wouldn't work.
Author of Total Commander
https://www.ghisler.com
User avatar
white
Power Member
Power Member
Posts: 4577
Joined: 2003-11-19, 08:16 UTC
Location: Netherlands

Re: [TC10.51] Installer, /Z parameter doesn't take precedence

Post by *white »

ghisler(Author) wrote: 2022-09-07, 18:23 UTC You cano't create a directory with the same name as a file, so using tcmd1051x64.exe as a directory wouldn't work.
Obviously the user made mistake if he used this command line. If it wouldn't work, that would be OK. If it installs the wrong package that might not be OK at all.
Post Reply