Uninstaller for plugins

Discuss and announce Total Commander plugins, addons and other useful tools here, both their usage and their development.

Moderators: Hacker, petermad, Stefan2, white

Post Reply
User avatar
ctiberg
Member
Member
Posts: 194
Joined: 2003-10-24, 14:10 UTC
Location: Kristianstad, Sweden

Uninstaller for plugins

Post by *ctiberg »

Hi there!

The new plugin installer looked great, until I realized that it didn't have an uninstaller counterpart. I thought that TC would ask me whether I'd like to remove the (now useless) files when I deleted a plugin that had been installed with a pluginst.inf file, but no such luck.

Anyway, I'd suggest this feature very strongly - or it'd feel like the old times when we had installers for the regular programs, but not uninstallers :(

And yes, I did a search before starting the topic, but didn't find anything... So don't hit me too hard if this has already been discussed :)
Best regards,
Christian Tiberg
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Physically removing of plugins would mean data loss, not sure if this is a good idea. TC would have to check which files have been changed after installation and this would mean that this information would have to be contained in the pluginst.inf.
I doubt that plugin authors who don't offer more than a bunch of files that have to be copied from an archive to the destination folder have any desires to update that info whenever something is changed.

Icfu
This account is for sale
User avatar
ctiberg
Member
Member
Posts: 194
Joined: 2003-10-24, 14:10 UTC
Location: Kristianstad, Sweden

Post by *ctiberg »

icfu wrote:Physically removing of plugins would mean data loss, not sure if this is a good idea. TC would have to check which files have been changed after installation and this would mean that this information would have to be contained in the pluginst.inf.

I doubt that plugin authors who don't offer more than a bunch of files that have to be copied from an archive to the destination folder have any desires to update that info whenever something is changed.
What's pluginst.inf got to do with it? It isn't even copied into the destination directory! And that's right, since it's only for installation. The thing I have in mind would work like every other installer on the market, writing a log along with the plugin, which is then used to uninstall the plugin, like any other program. More work for Ghisler of course, but that's not what we're talking about :)
Best regards,
Christian Tiberg
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

The thing I have in mind would work like every other installer on the market, writing a log along with the plugin, which is then used to uninstall the plugin, like any other program.
All installers I know are adjusted by the program authors, not the author of the target application... The authors decide which files to copy where, they decide which registry settings have to be made additionally and they decide which files to delete on an uninstall and like I said I doubt that plugin authors have any desires to keep this information up-to-date.

How can a log created by TC serve this purpose? Some plugin installations are complex, too complex to get handled by a very basic TC installation log. Sure, if you limit the abilities to "delete all files in plugin home directory that haven't been modified since installation" it can be done.

Icfu
This account is for sale
User avatar
ctiberg
Member
Member
Posts: 194
Joined: 2003-10-24, 14:10 UTC
Location: Kristianstad, Sweden

Post by *ctiberg »

icfu wrote:How can a log created by TC serve this purpose? Some plugin installations are complex, too complex to get handled by a very basic TC installation log. Sure, if you limit the abilities to "delete all files in plugin home directory that haven't been modified since installation" it can be done.
Yeah, I know how installers work :) But the thing that TC has now, with the pluginst.inf file, isn't very complicated. For that, doing as you said would be fine, that is "delete all files in plugin home directory that haven't been modified since installation". Of course the plugin should also be uninstalled from TC, but that's there today :) I also mean that this system should only be applied to plugins that TC itself has installed using a pluginst.inf file.
Best regards,
Christian Tiberg
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

Ok, if you keep it that simple I support the request, shouldn't be too difficult to handle for ghisler. ;)

Icfu
This account is for sale
User avatar
Hacker
Moderator
Moderator
Posts: 13142
Joined: 2003-02-06, 14:56 UTC
Location: Bratislava, Slovakia

Post by *Hacker »

Well, yes, but what about various INI files, the registry and other things modified by the use of the plugin?

Roman
Mal angenommen, du drückst Strg+F, wählst die FTP-Verbindung (mit gespeichertem Passwort), klickst aber nicht auf Verbinden, sondern fällst tot um.
User avatar
ctiberg
Member
Member
Posts: 194
Joined: 2003-10-24, 14:10 UTC
Location: Kristianstad, Sweden

Post by *ctiberg »

Hacker wrote:Well, yes, but what about various INI files, the registry and other things modified by the use of the plugin?
Well, these are of course problems. I only talk about very simple plugins, and a switch in the pluginst.inf (named AutoUninstall or such) would be used to keep TC from making a mess....

Additionally, a variable named PluginIniSection would be useful for uninstallable plugins, and it should take a regex or at least wildcards. That could be used to remove plugin-specific data from fsplugin.ini or the appropriate INI.
Best regards,
Christian Tiberg
User avatar
Sam_Zen
Power Member
Power Member
Posts: 700
Joined: 2005-02-08, 22:59 UTC
Location: NL
Contact:

Post by *Sam_Zen »

What's wrong with the add-on TC Plugins Manager ? It has an uninstall option.
0.618033988
icfu
Power Member
Power Member
Posts: 6052
Joined: 2003-09-10, 18:33 UTC

Post by *icfu »

It doesn't delete the plugin files, it only deletes the plugin entry in wincmd.ini which is what TC does too when uninstalling.

Icfu
This account is for sale
User avatar
ctiberg
Member
Member
Posts: 194
Joined: 2003-10-24, 14:10 UTC
Location: Kristianstad, Sweden

Post by *ctiberg »

And the worst sin of all, it's not in TC :)
Best regards,
Christian Tiberg
Post Reply