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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0how to update module w/o uninstallhow to update module w/o uninstall
Previous
 
Next
New Post
4/22/2007 8:22 PM
 

I have some modules and am at the point where they are being used, but still under significant extension.  So I am constantly rebuilding the with new functionality and need to install them in the test site.  When I add control, or change some parameter which is reflected in the dnn file, I always have to uninstall the currently running verion and then install the new version.

Naturally, when this happens I then have to go back to the pages where the module was installed and add them back in.  This will eventually be hundreds of pages and so I am worried about the long term maintenance implications.  I have read about the upgradable interface but don't have to execute any logic on update.  Also, can't really figure out what it does or where it is to be implemented.  And I don't know if it addresses this isse.

I don't package the controls up.  This is all internal so I just replace the code and desktop module folders at the site.

What is the proper solution to this situation?

Jeff Landry

 
New Post
4/23/2007 4:41 AM
 

You can create a DNN installation package and reupload it on each update.

  • The .DNN configuration file should have a different version.
  • You can also have different SQL scripts to install related of the version of your component.
  • The IUpgradeable is run after the SQL scripts.
  • You can setup a file to delete some unused files.

This way, the upgrade can be cumulative... So you can have multiple upgrades from version 1.0 to 1.1.15 by example with different SQL scripts, the IUpgradeable will be called for each version upgraded... I don't know if that function is called once all SQL scripts are run or not. I'm afraid of not.

Euh I read that somewhere, but I can not give you the link... Maybe in the Documentation  :-)

Laurent


dev.cmwa.eu
Free or Shareware tools for .NET and DotNetNuke
 
New Post
4/23/2007 6:12 AM
 

You got a good solution for your problem. As mentioned by lolocmwa you need to keep the every version of your module.

In addition if change the script files then you can increase the module version number. But if you do not change the DB script then you can install your newly developed module without creating any version.

What DNN Module Install engine will do: It will check your existing module definition if module version is same then engine will not execute the script files but it will update your module directory.

Now you can think what you want to do.


"Knowledge Sharing Matters!"
 
New Post
4/23/2007 6:18 PM
 

Actually not worried about sql.

However, when I rebuild and run in my development mode only simple changes to existing controls take affect.  Are you saying that I must live with removing/installing the module in the development environment and then use that working environment to make a distributable package which can then be used  to update the test/production environments without the uninstall/install process?

Thanks,

jwL

 
New Post
4/24/2007 2:16 AM
 

No, you do not need to remove the currently installed module.

If you install the same version of the module then your control files will be updated by the module install engine.


"Knowledge Sharing Matters!"
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0how to update module w/o uninstallhow to update module w/o 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.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out