Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesNotified on uninstall?Notified on uninstall?
Previous
 
Next
New Post
5/29/2013 12:55 AM
 

The current manifest allows to delete files during uninstall. Is there a way to perform a more complex clean up (e.g. moving files) through the manifest or subscribing to some uninstall event? The IUpgradeable event doesn't seem to notify on uninstalling.

Thanks,



Try our powerful shopping cart module for DotNetNuke!
 
New Post
5/29/2013 1:48 AM
 
Stephen,

I am afraid: no, no way. But I submitted this idea (as I must confess there were situations when I would have needed this as well) to the Community Voice, see here: http://www.dotnetnuke.com/Community/C...

Please feel free to vote for it and let's hope that there is an ear somewhere that hears the Community Voice ;-)

Best wishes
Michael

Michael Tobisch
DNN★MVP
dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
5/29/2013 6:34 AM
 

Thank you for the confirmation. I have voted !

Does anyone know a workaround?



Try our powerful shopping cart module for DotNetNuke!
 
New Post
5/30/2013 7:41 AM
 
Wow, that was quick! The idea is "Under Review"!

Best wishes
Michael

Michael Tobisch
DNN★MVP
dnn-Connect.org - The most vibrant community around the DNN-platform
 
New Post
6/12/2013 12:12 PM
 
I think the whole module install/uninstall/package thing could benefit from a review.

There are dozens of places where you need to update the version number manually, which can be tricky when you include multiple modules in one package, skins use zip files inside zipfiles and you need to specify manually which files should be deleten on an uninstall.
It all seems unnecessarily complicated.

I've looked into the install/upgrade procedure today and think it has some quirks. For example that you can supply a list of files to be deleted (and only deleted) after running a database script, using a file named .txt. If there is no database update script included, you can't delete files and if you want to rename/move files, you have to do it programatically.
Also the database-update is run only once, while the UpgradeModule method is also run when you reinstall a module.
(well... you hope it is run, because this blogpost might cause some concern: http://www.dotnetnuke.com/Resources/B.... It's form 2005, but I can't find whether it has been fixed (maybe it's in the 12 comments which I also cant find))

Also you can reinstall a module that is already installed, but you can not downgrade a module. I had to uninstall it completely, which removed the module from all sites and pages. And after that I couldn't activiate the module because the old (uninstalled) instance still had the license key registered to it. (Both of which were (down)time consuming problems recently when an update from some third party module which should have been a tiny bugfix, introduced a much larger bug.) The thing I unfortunatly learned from this was to only increase the version number when a downgrade would be impossible, otherwise just release with the same version number to allow for downgrades.

I wonder what weird things will show up more on the uninstallation process.



The mentioned "systemwide events model" could at least enable a module to unregister itself at a licensing server, but it doesn't sound like a small feature at all (and having worked with messaging systems I know it is very nice to have, but can be a very complex thing)

 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesNotified on uninstall?Notified on uninstall?


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.

Content Layout

Subscribe to DNN Digest

DNN Digest is our monthly email newsletter. It highlights news and content from around the DNN ecosystem, such as new modules and themes, messages from leadership, blog posts and notable tweets. Keep your finger on the pulse of the ecosystem by subscribing.  


Copyright 2017 by DNN Corp Terms of Use Privacy
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out