A question about the installation system

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

Please do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.

This forum is for discussing mojoPortal development

This forum is only for questions or discussions about working with the mojoPortal source code in Visual Studio, obtaining the source code from the repository, developing custom features, etc. If your question is not along these lines this is not the right forum. Please try to post your question in the appropriate forum.

You can monitor commits to the repository from this page. We also recommend developers to subscribe to email notifications in the developer forum as occasionally important things are announced.

Before posting questions here you might want to review the developer documentation.

Do not post questions about design, CSS, or skinning here. Use the Help With Skins Forum for those questions.
This thread is closed to new posts. You must sign in to post in the forums.
4/7/2010 10:35:12 AM
Gravatar
Total Posts 72

A question about the installation system

Hi Joe,

I've just finished watching the developer screen casts you did (great series btw!) and have a few questions about the installation system.

When I run /Setup/Default.aspx does this runs all the scripts in SchemaInstallScripts and SchemaUpgradeScripts or does it look at the latest version number in SchemaUpgradeScripts to determine what to run (is the current number of the feature stored anywhere else?)

After installation, if I run Setup/Default.aspx again, what gets executed then?

Many thanks,

Ben

4/7/2010 10:44:14 AM
Gravatar
Total Posts 18439

Re: A question about the installation system

Hi Ben,

It will always run any script it finds that is newer than the current version stored in the mp_SchemaVersion table for the feature. After running the script it changes the version in this table to the script version so it will never run the script or any previous version script again.

If all scripts are up to date it will not run any scripts, but every time you visit the Setup page it will update the default settings for each feature as defined in the Feature Definition files, this way if you change one of those file it will always update the default values based on the current version of the feature definition file, so it is possible to change the default settings. It will not change settings on any instances of the feature, just the defaults that are used when a new instance is created.

Hope it helps,

Joe

4/7/2010 10:57:20 AM
Gravatar
Total Posts 72

Re: A question about the installation system

Thanks Joe,

Do I need to do anything to update the schema table or will it just set the Application Name based on the folder name inside /Setup/Applications and the version fields to that of the latest script file?

Thanks,
Ben

4/7/2010 11:16:00 AM
Gravatar
Total Posts 18439

Re: A question about the installation system

You don't need to do anything, it will do it for you based on the folder name. You can also see the current version for features that have a schema under Administration > System Information.

Note that some features (google maps for example) have no tables of their own and therefore have no scripts and no record in mp_SchemaVersion at all.

Best,

Joe

You must sign in to post in the forums. This thread is closed to new posts.