DNN Forums

Ask questions about your website to get help learning DNN and help resolve issues.

DNN extension installer Cleanup component in manifest problem

 2 Replies
 0 Subscribed to this topic
 30 Subscribed to this forum
Sort:
Author
Messages
Senior Member
Posts: 1322
Senior Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
Lifesaver
Lifesaver
You're Life Saver!
New Poster
New Poster
Congrats on posting!
3 Engaged Reader
Engaged Reader
You are an engaged reader!

I have been cleaning up some DNN modules lately for clients.
They contained JS and CSS files that are no longer in use, so I added a cleanup task to the module manifest and noticed something that's not in accordance with the documentation at https://www.dnnsoftware.c...ki/cleanup-component

But I could not get it to work for some reason although I had it workign before.
Spending a while debugging this so sharing my findings in case it saves someone else the headache.

The manifest syntax is straightforward:



But that linked documenation states the file can have any name, which I found out is not correct.
I tried naming it clean_04.09.00.txt but that did nothing.
It seems like you must use [Module version].txt

You should also note that the DNN installer will report success even when nothing is deleted
The install log will say "Component installed successfully - Cleanup" regardless, so don't rely on that to confirm it worked.

HTH
 

 

Advanced Member
Posts: 233
Advanced Member
4 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
New Poster
New Poster
Congrats on posting!
4 Engaged Reader
Engaged Reader
You are an engaged reader!

Timo, I had similar experience, but in my case, I wanted to move the cleanup files to a separate (/cleanup/) folder.  (see https://github.com/DNNCom...yForums/issues/1742) so they aren't crowding up the module's root folder. I was not successful in doing this either. I ended up giving up. Perhaps we should open some issues to see if this can be fixed/enhanced?

Senior Member
Posts: 1322
Senior Member
3 Helpful Replier
Helpful Replier
Thanks for being such a helpful replier!
Lifesaver
Lifesaver
You're Life Saver!
New Poster
New Poster
Congrats on posting!
3 Engaged Reader
Engaged Reader
You are an engaged reader!

Yes, I tried putting it in a fodler too and as you said, that didn't work either.
I spoke to  @Peter Donker and he told me fixing this would not be an easy task..

These Forums are for the discussion of the open source CMS DNN platform and ecosystem.

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

  1. If you have (suspected) security issues, please DO NOT post them in the forums but instead follow the official DNN security policy
  2. No Advertising. This includes the promotion of commercial and non-commercial products or services which are not directly related to DNN.
  3. 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.
  4. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  5. No Flaming or Trolling.
  6. No Profanity, Racism, or Prejudice.
  7. Site Moderators have the final word on approving / removing a thread or post or comment.
  8. English language posting only, please.

Would you like to help us?

Awesome! Simply post in the forums using the link below and we'll get you started.

Get Involved