Plugin compatibility in different OS versions for portable TC

Here you can propose new features, make suggestions etc.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
Fla$her
Power Member
Power Member
Posts: 2981
Joined: 2020-01-18, 04:03 UTC

Plugin compatibility in different OS versions for portable TC

Post by *Fla$her »

I suggest adding a setting that allows you to automatically select the appropriate plugin version given the resulting limitations for older OS versions.
For example, this can be done if the plugin files of the same name from previous versions are placed, for example, in a subdirectory of the maximum version for compatibility ("XP" or "5.1", for example), where the corresponding version will be searched first.

For example:

Code: Select all

..\Plugins\wdx\jpg-comment\jpg-comment.wdx        (2.4.0)
..\Plugins\wdx\jpg-comment\jpg-comment.wdx64      (2.4.0)
..\Plugins\wdx\jpg-comment\5.1\jpg-comment.wdx    (2.3.5)
..\Plugins\wdx\jpg-comment\5.1\jpg-comment.wdx64  (2.3.5)
But for now, you have to create an environment variable with \<subdir> in Autorun and duplicate the lng file.
Overquoting is evil! 👎
User avatar
Dalai
Power Member
Power Member
Posts: 9941
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Plugin compatibility in different OS versions for portable TC

Post by *Dalai »

Can you give an example where this would be beneficial?
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Fla$her
Power Member
Power Member
Posts: 2981
Joined: 2020-01-18, 04:03 UTC

Re: Plugin compatibility in different OS versions for portable TC

Post by *Fla$her »

This is a strange question, considering that an example has already been given.
Overquoting is evil! 👎
User avatar
Dalai
Power Member
Power Member
Posts: 9941
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Plugin compatibility in different OS versions for portable TC

Post by *Dalai »

Yes, an example is there, but how would this be beneficial exactly? What would that suggestion make possible that currently isn't?

PS and JFTR: jpg-comment 2.4.1 runs fine under XP (but 2.4.0 doesn't).
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Fla$her
Power Member
Power Member
Posts: 2981
Joined: 2020-01-18, 04:03 UTC

Re: Plugin compatibility in different OS versions for portable TC

Post by *Fla$her »

Dalai wrote: 2025-03-21, 11:01 UTCjpg-comment 2.4.1 runs fine under XP
Confirm. I didn't know that the plugin was updated 4 days ago. There was no announcement in the topic, and nothing was said about restoring support for older OS.

Well, let it be sftpplug.wfx or Imagine.wlx with a crooked settings dialog on XP. There are some wdx that don't return data.
Overquoting is evil! 👎
User avatar
petermad
Power Member
Power Member
Posts: 15997
Joined: 2003-02-05, 20:24 UTC
Location: Denmark
Contact:

Re: Plugin compatibility in different OS versions for portable TC

Post by *petermad »

2Dalai
but how would this be beneficial exactly?
I guess if you have TC installed on an USB-stick and use it with several OS's.

What should the nomenclature be the for the OS version? XP or 5.1 or NT5.1 - 10 or NT10.0 or 10 10 22H2 or 10.0.19045.5608 etc. ?
License #524 (1994)
Danish Total Commander Translator
TC 11.51 32+64bit on Win XP 32bit & Win 7, 8.1 & 10 (22H2) 64bit, 'Everything' 1.5.0.1391a
TC 3.60b4 on Android 6, 13, 14
TC Extended Menus | TC Languagebar | TC Dark Help | PHSM-Calendar
Fla$her
Power Member
Power Member
Posts: 2981
Joined: 2020-01-18, 04:03 UTC

Re: Plugin compatibility in different OS versions for portable TC

Post by *Fla$her »

petermad wrote: 2025-03-21, 15:56 UTC I guess if you have TC installed on an USB-stick and use it with several OS's.
This is what portability is for. It can be not only USB (eSATA, FireWire).
petermad wrote: 2025-03-21, 15:56 UTC XP or 5.1 or NT5.1 - 10 or NT10.0 or 10 10 22H2 or 10.0.19045.5608 etc. ?
The numbers are easier to compare, so the names 5.1, 10.0, etc. were easier for the author.
Overquoting is evil! 👎
User avatar
Dalai
Power Member
Power Member
Posts: 9941
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Plugin compatibility in different OS versions for portable TC

Post by *Dalai »

Fla$her wrote: 2025-03-21, 23:58 UTCThe numbers are easier to compare, so the names 5.1, 10.0, etc. were easier for the author.
How does one differentiate the various Win10 releases or Win10 from Win11 if the need arises? I'm sure you're aware that MS has been using the exact same major and minor version number for Windows for nearly 10 years now, which is bullshit in its own right, but that's what we're dealing with.
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Fla$her
Power Member
Power Member
Posts: 2981
Joined: 2020-01-18, 04:03 UTC

Re: Plugin compatibility in different OS versions for portable TC

Post by *Fla$her »

Dalai wrote: 2025-03-22, 09:49 UTC if the need arises
Such a probability tends to zero, in my opinion.
Overquoting is evil! 👎
User avatar
Dalai
Power Member
Power Member
Posts: 9941
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Plugin compatibility in different OS versions for portable TC

Post by *Dalai »

Well, as with most things: You don't need it until you do.
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Fla$her
Power Member
Power Member
Posts: 2981
Joined: 2020-01-18, 04:03 UTC

Re: Plugin compatibility in different OS versions for portable TC

Post by *Fla$her »

Win10 from Win11
I may have misunderstood you. But where do you see the problem of the indistinguishability of 10 from 11?
Overquoting is evil! 👎
User avatar
Dalai
Power Member
Power Member
Posts: 9941
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Plugin compatibility in different OS versions for portable TC

Post by *Dalai »

Well, newer Windows releases/versions might provide new (Win32) API functions that aren't available (or behave differently) in older Windows versions. That's what this suggestion is about, is it not?
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Fla$her
Power Member
Power Member
Posts: 2981
Joined: 2020-01-18, 04:03 UTC

Re: Plugin compatibility in different OS versions for portable TC

Post by *Fla$her »

Dalai wrote: 2025-03-23, 10:06 UTC That's what this suggestion is about, is it not?
Sure. But that doesn't answer my question.
Overquoting is evil! 👎
User avatar
Dalai
Power Member
Power Member
Posts: 9941
Joined: 2005-01-28, 22:17 UTC
Location: Meiningen (Südthüringen)

Re: Plugin compatibility in different OS versions for portable TC

Post by *Dalai »

I thought this to be clear. Let me try again. Let's assume that a new plugin version uses a certain API provided by Windows 11 that isn't available on Windows 10. Note that this is just an example; it could be Windows 12 (of that's ever released) instead. Based on your suggestion to use the major and minor version numbers, there's no way to differentiate Win10 from Win11, and thus no way to place different plugin versions in different directories.

The rabbit hole can go really deep which is why MS has been discouraging programmers from determining and using the Windows version number for many years now (since Win8.1). That decision has its own flaws, but I digress.

I hope that makes it clear and answers the question.
#101164 Personal licence
Ryzen 5 2600, 16 GiB RAM, ASUS Prime X370-A, Win7 x64

Plugins: Services2, Startups, CertificateInfo, SignatureInfo, LineBreakInfo - Download-Mirror
Fla$her
Power Member
Power Member
Posts: 2981
Joined: 2020-01-18, 04:03 UTC

Re: Plugin compatibility in different OS versions for portable TC

Post by *Fla$her »

Dalai wrote: 2025-03-23, 10:38 UTC Based on your suggestion to use the major and minor version numbers, there's no way to differentiate Win10 from Win11
I checked the erroneous data from one article, it said 11 instead of 10.
Then my suggestion is to take not the actual numbers, but the aligned ones. For example, Ver >= 10.0.2 would be equivalent to 11.
Overquoting is evil! 👎
Post Reply