SageTV Community  

Go Back   SageTV Community > SageTV BETA Release Products > SageTV Beta Test Software
Forum Rules FAQs Community Downloads Today's Posts Search

Notices

SageTV Beta Test Software Discussion related to BETA Releases of the SageTV application produced by SageTV. Questions, issues, problems, suggestions, etc. regarding SageTV Beta Releases should be posted here.

Reply
 
Thread Tools Search this Thread Display Modes
  #1  
Old 10-11-2010, 07:50 PM
mkanet's Avatar
mkanet mkanet is offline
SageTVaholic
 
Join Date: Feb 2004
Posts: 3,359
Installing and uninstalling plugins

With almost a quarter of a century dealing with the world of Microsoft windows, I have come to realize that even some of the best installers/uninstallers, after uninstalling an app, it's a sure bet there's going to be some sort of remnant left behind. Most software engineers could care less if there's a file somwhere on the file system or registry key still left behind.

I want to know if I install a plugin on sageTV, then uninstall it. What get's left behind? Something tells me that its not going to be 100% exactly like before the plugin was installed.

Is there a way for me to know exactly what gets installed and what is left behind after an uninstall (not disabling a plugin).

Im starting notice these files with .5 and similar at the end of each file. I'm guessing its some kind of version tracking system. Is there a way to clean up any traces at all of things that may have gotten left behind after a plugin uninstall?

I doubt too many people would understand the logic behind it; especially if it wont affect functionality. I guess, Im just a stickler for having a super clean system.

For example, I really want to install that recipe program. But not sure if I'll like it. How do I know somthing minor gets left behind in studio (similar concept to Windows registry).

-Michael
__________________
Upgraded to Comcast X1 + Netflix/Amazon Video streaming

***RIP SageTV***
Reply With Quote
  #2  
Old 10-11-2010, 08:06 PM
GKusnick's Avatar
GKusnick GKusnick is offline
SageTVaholic
 
Join Date: Dec 2005
Posts: 5,083
Quote:
Originally Posted by mkanet View Post
How do I know somthing minor gets left behind in studio (similar concept to Windows registry).
Plugin installers don't insert anything into the stock STV as it exists on disk. Rather, UI Mod plugins are loaded dynamically when SageTV starts. If you uninstall (or simply disable) a UI Mod plugin, it will no longer be loaded at runtime. The UI changes made by these plugins apply only during the sessions in which the plugin is loaded and are not written back to disk, so there's nothing to undo when the plugin is uninstalled.

The same goes for General plugins written in Java. If the plugin is disabled or uninstalled, it won't be loaded and its code won't execute.

The only real cause for concern might be Library plugins that are installed as dependencies of other plugins. In this case, uninstalling the dependent plugin won't automatically uninstall the library, so the library code will remain in the classpath where it could conceivably still be invoked by some other active plugin.

If you're paranoid, your best bet is to image your system before installing any plugin, and restore the image if you want to remove the plugin completely. (You should obviously back up your Wiz.bin separately to keep it from being lost during the image restore.)
__________________
-- Greg
Reply With Quote
  #3  
Old 10-11-2010, 08:22 PM
mkanet's Avatar
mkanet mkanet is offline
SageTVaholic
 
Join Date: Feb 2004
Posts: 3,359
Greg, this is exactly what I thought. That's also why I do make a image backup after installing programs and configurations I know I will keep. It might be a little bit of overkill to make a backup image of my whole boot partition just to see if I like the tiny recipe plugin.


Quote:
Originally Posted by GKusnick View Post
Plugin installers don't insert anything into the stock STV as it exists on disk. Rather, UI Mod plugins are loaded dynamically when SageTV starts. If you uninstall (or simply disable) a UI Mod plugin, it will no longer be loaded at runtime. The UI changes made by these plugins apply only during the sessions in which the plugin is loaded and are not written back to disk, so there's nothing to undo when the plugin is uninstalled.

The same goes for General plugins written in Java. If the plugin is disabled or uninstalled, it won't be loaded and its code won't execute.

The only real cause for concern might be Library plugins that are installed as dependencies of other plugins. In this case, uninstalling the dependent plugin won't automatically uninstall the library, so the library code will remain in the classpath where it could conceivably still be invoked by some other active plugin.

If you're paranoid, your best bet is to image your system before installing any plugin, and restore the image if you want to remove the plugin completely. (You should obviously back up your Wiz.bin separately to keep it from being lost during the image restore.)
__________________
Upgraded to Comcast X1 + Netflix/Amazon Video streaming

***RIP SageTV***
Reply With Quote
  #4  
Old 10-11-2010, 09:47 PM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
You can trust that the install/uninstall of a plugin will leave your system in the same functional state. I actually don't have any problems doing this on my main development system where it's important to be sure I have a consistent system. I designed the plugin installation system, so I know exactly what it creates and what it will remove; so I wouldn't have any concerns about it if I were you. Just don't go deleting those .5 (or whatever #) files or messing with filetracker.properties and everything will be fine.
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
  #5  
Old 10-12-2010, 08:14 AM
stuckless's Avatar
stuckless stuckless is offline
SageTVaholic
 
Join Date: Oct 2007
Location: London, Ontario, Canada
Posts: 9,713
Michael, I would think with 25 years on windows, you'd be totally desensitized to the who application litter syndrome that accompanies a Windows application

I think that the plugin system does a fairly good job of cleaning up, but there are 3 other areas that do not get cleaned up after an uninstall;

1. Properties in the Sage.properties (ie, phoenux/* properties)
2. Files added to the filesystem that were not in the package (ie, fanart, caches, etc)
3. Information in the Wiz.bin (ie, metadata, etc)

I don't think a plugin gets notified about when it's being removed. If it did, then it could perhaps clean up that residual information as well. Altough I'm not sure how happy people would be if when they uninstalled bmt, that I removed their fanart, phoenix properties, and cleaned their Wiz.bin of any custom metadata fields. I'm just using my plugin as an example here, because it's probably one of the plugins that does create a large amount of litter.

Maybe I can create a "BMT Uninstall" plugin that simply cleans all that residual information
Reply With Quote
  #6  
Old 10-12-2010, 09:36 AM
mkanet's Avatar
mkanet mkanet is offline
SageTVaholic
 
Join Date: Feb 2004
Posts: 3,359
All I have to say is, you wont need to make a BMT Uninstall. I couldnt imagine someone wanting to uninstall BMT/phoenix. Not sure what will happen when ortus comes around.

Yeah, I can't stand having residuals of items I have uninstalled. Which is why I go through my client properties files with a fine toothed comb to make sure there are no entries from something I'm not using anymore. Unless I'm 100% sure a jar is no longer needed (like the old Netflix jar) and respective entries, files I wont touch them.

Quote:
Originally Posted by stuckless View Post
Michael, I would think with 25 years on windows, you'd be totally desensitized to the who application litter syndrome that accompanies a Windows application

I think that the plugin system does a fairly good job of cleaning up, but there are 3 other areas that do not get cleaned up after an uninstall;

1. Properties in the Sage.properties (ie, phoenux/* properties)
2. Files added to the filesystem that were not in the package (ie, fanart, caches, etc)
3. Information in the Wiz.bin (ie, metadata, etc)

I don't think a plugin gets notified about when it's being removed. If it did, then it could perhaps clean up that residual information as well. Altough I'm not sure how happy people would be if when they uninstalled bmt, that I removed their fanart, phoenix properties, and cleaned their Wiz.bin of any custom metadata fields. I'm just using my plugin as an example here, because it's probably one of the plugins that does create a large amount of litter.

Maybe I can create a "BMT Uninstall" plugin that simply cleans all that residual information
__________________
Upgraded to Comcast X1 + Netflix/Amazon Video streaming

***RIP SageTV***
Reply With Quote
  #7  
Old 10-12-2010, 11:58 AM
Narflex's Avatar
Narflex Narflex is offline
Sage
 
Join Date: Feb 2003
Location: Redondo Beach, CA
Posts: 6,349
Actually, I was reminded today about something a plugin did which the uninstaller didn't fix. When plugins change settings in the Sage.properties file while they are executing, the core can't be aware of that and won't undo them. The only nasty thing I've found so far with this is one plugin that changes the epg import plugin and then can cause you to not be able to properly get a list of EPG providers if you then uninstall that plugin (I'm pretty sure it's the Web Radio Guide). But I just had that fixed for the next build so it won't cause people problems anymore. (if it detects the EPG Import Plugin can't load, then it will just disable it)
__________________
Jeffrey Kardatzke
Google
Founder of SageTV
Reply With Quote
Reply


Currently Active Users Viewing This Thread: 1 (0 members and 1 guests)
 

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Uninstalling SageTv 6.6.2 mkstretch SageTV Software 2 08-11-2009 11:40 AM
Uninstalling/Removing Plugins TechBill SageTV Customizations 2 09-30-2007 09:40 PM
Installing/Uninstalling "Got All Media" caused Sage to report "No capture device" VorpalBlade Hardware Support 3 10-15-2005 01:30 AM
uninstalling client / new license cmalinowski SageTV Software 6 02-14-2004 05:26 PM


All times are GMT -6. The time now is 09:41 AM.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2023, vBulletin Solutions Inc.
Copyright 2003-2005 SageTV, LLC. All rights reserved.