Blog from May, 2011

Logging in DS

When you run a model in DS you automaticcaly get a dataitem with a log file with all the log4net messages that occured during model run.

'During' means the model is in a running state: (initializing,executing,finishing).

This is done RunningActivityLogAppender listening to changes in activities of activityrunner. So when a model goes to initializing the RALA keeps messages for that model. When the model finishes the RALA adds (or updates) a dataitem in the model.

Creating a new version of WaterFlowModel MSI that installs side-by-side

To make a new version of the flow msi you need two Guids. One for the product (upgradecode) and one for the folder in the start menu.
Create your GUIDS here: http://www.guidgenerator.com/online-guid-generator.aspx

1 Change the OutputName tag in the wixProj file. Keep the suffix of buildnumber as it adds a buildnumber to the msi name.

Changes in the Product.wxs:
2 Change the <?define ReleaseVersion="1.0.1" ?> element and <ProductName> in the Product.wxs
3 Change the GUID for the UpgradeCode in the <Product> element.
4 Use the same GUID as in 3 for the <Upgrade> elementID
5 Change the GUID of the ProgramMenuDir" component.Like this <Component Id="ProgramMenuDir" Guid="CHANGE-THIS-GUID">

Note that the assembly version of DeltaShell.Gui should also be changed to allow real side-by-side (no setting sharing). When the MSI is build by teamcity this works automatically because teamcity includes the svn revision in the version.
The name of the artifact in the MSI and ZIP configuration should also change