Packaging Plugins & Themes

Uninstalling

The current version of the Rock Shop, released in McKinley v3.0, does not support uninstalling packages. We do see adding this support in the near future. Therefore, the packages you write today must support the plumbing needed for uninstalling themselves.

In the Database Migration chapter we've already touched on how to support uninstalling your packages database requirements. Let's now discuss how to deal with the files on the server. During the uninstall, Rock will look for a file named deletefile.lst in the root uninstall directory. It will go through this file and remove all of the files/directories that are listed.

Warning

Be Careful Choosing Files to Delete:While it's up to you to determine which files to delete we will pay attention to any files you request to delete out of the bin directory. It's possible that two different packages may use the same third party extension. Deleting these assemblies haphazardly may keep other packages from working. When you request that a file in the bin directory be deleted, we'll check that no other package has included that file in their install. If so, we'll refrain from deleting it.