Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

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 ExtensionsModulesModulesPackaging a module to support DNN4 & DNN5Packaging a module to support DNN4 & DNN5
Previous
 
Next
New Post
8/16/2010 5:12 AM
 
I have a module that uses the Telerik ASP.NET controls that that is compiled against DNN4.9.2. I want to create a single installation package that can be used for both DNN5 and DNN5 sites.

The Telerik controls were first bundled with DNN5.2.0, so to support earlier versions, I need to include the Telerik dll in my package. I plan to include the same version that shipped with DNN5.2.

I want the installer package to ignore the telerik dll when installing on 5.2.0 or later, so that the module uses the version shipped with DNN. I understand from reading Bruce Chapman's blog that you can use two manifest files in one package, with extensions .dnn and .dnn5. DNN5 will apparently use the .dnn5 manifest, while earlier versions use the .dnn file. That means I can exclude the telerik dll for installations on DNN5.x sites.

However, what about versions 5.0 - 5.1.x which do not have the telerik controls bundled? Using this technique outlined above, the telerik dll will not be installed and the module will fail.

Is there a way of using the version 3 manifest to conditionally install files, based on DNN version?

Alternatively, what would happen if my installer simply tried to install the telerik dll, regardless of whether it is already present? Would it overwrite it, or would it skip the copy if the file was already present?


Paul Taylor
Dotcom Software Solutions Ltd
DotNetNuke, ASP.NET and SQL Server Development
 
New Post
8/16/2010 9:20 AM
 
I'm not aware of a way to conditionally install the assembly based on DNN version.  We end up creating three different module packages (because we setup our packaging before finding out about the .dnn/.dnn5 trick).

If you try to install the Telerik dll's in DNN 5.2-5.3, you will overwrite the assembly that comes with DNN.  If you're including that same version in your package, it might not be a problem.  In DNN 5.4, they updated the version of Telerik in a way that registered it with DNN, so the installer should avoid overwriting so long as the version number of your package's assembly is less than the version installed with DNN.

For safety, I would recommend having a different package/manifest for DNN 5.0-5.1, but you may be able to get along without it, so long as you're using the version of Telerik included with DNN 5.2.

Hope that helps,

Brian Dukes
Engage Software
St. Louis, MO
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
New Post
8/16/2010 11:01 AM
 
Thanks Brian. Overwriting the DNN telerik dll will almost certainly create a problem, even if it is the same version, as I believe the dll is compiled specially for DNN, and won't work if it is doesn't have the correct attributes.

I think what I'll do is create one package for DNN4.9.x - DNN 5.1.x, and the other for DNN 5.2 +.


Paul Taylor
Dotcom Software Solutions Ltd
DotNetNuke, ASP.NET and SQL Server Development
 
New Post
8/16/2010 11:05 AM
 
Right, I think that should be the safest, most robust solution.  By the same version of Telerik, I was assuming that you meant the custom DNN version that comes with the 5.2 package; however, it's better if you don't have to worry about distributing that at all.

Glad it helped,

Brian Dukes
Engage Software
St. Louis, MO
866-907-4002
DNN partner specializing in custom, enterprise DNN development.
 
Previous
 
Next
HomeHomeDevelopment and...Development and...Building ExtensionsBuilding ExtensionsModulesModulesPackaging a module to support DNN4 & DNN5Packaging a module to support DNN4 & DNN5


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.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out