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

HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Declaring configuration node in module installation manifestDeclaring configuration node in module installation manifest
Previous
 
Next
New Post
2/1/2008 3:18 PM
 

I've got a custom provider that I can install with a "package"-style installation manifest (type="Package" version="4.0") and it includes a type="Config" component to make changes to web.config. I need to do the same thing with a module installation. My module is a customized Roles management module and it needs it's own provider configured in web.config at install time. So basically, I've got a module that needs to have a provider installed and configured at install time.

I see a few approaches I could take:

  1. Add a "config" element to the version 3.0 "module"-style installer. I don't know if this is even possible, as I can't find any documentation on the manifest schema.
  2. Use a version 4.0 "module"-style installer. I don't know if such a thing even exists, as I've found no mention of it anywhere.
  3. Use a different style of installer. I could use a "package"-style installer, but don't know if this is the right thing to do or if the rest of the module will be installed correctly.

Can you offer any advice or guidance in this matter?

 
New Post
2/3/2008 1:32 PM
 

Craig,

I believe the standard followed by all other commercial modules that I've seen (granted i haveI by no means seen seen them all) is to require the user to edit the web.config file themselves.  In my opinion, you want to make your module as self-contained as possible, and try not to require extra steps by the user. But with things such as 3rd party components and web.config modifications, it may be best not having your module install dependant on those changes.

Hope that helps,

Ian


Software Engineer
Co-Founder, dnnGallery
Stack Overflow: Ian Robinson
Twitter: @irobinson
Linked In: Ian Robinson
 
New Post
2/5/2008 9:15 AM
 

Craig,

If you have tried option 3, it will be nice to know if it works for you.

I had a similar need in one of my projects.  I looked at the manifest file in the ActiveDirectory Authentication package and was tempting to use it.  I think only DNN 4.6 or greater supports this type of installation.  My project needs to support all DNN 4.X versions so I took a differennt approach.

When the module starts to load, the code checks if the required section is in the web.config.  If the section not existed, provide a button to write the section to the web.config.  MSDN has sample code to check/write to web.config.


Fuji Nguyen
FREE Visitor Hit Counter
Visit opensource.indyneinc.com for detail.
 
Previous
 
Next
HomeHomeOur CommunityOur CommunityGeneral Discuss...General Discuss...Declaring configuration node in module installation manifestDeclaring configuration node in module installation manifest


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