The CodeRef build environment uses three different open source tools: NAnt, NUnit, and NSIS. One of my challenges is improving the Out-Of-the-Box-Experience (OOBE) for folks who want to work on the source code. I really want to avoid the long list of instructions for creating the build environment, since I firmly believe that this discourages people from even trying to work on the source code. Instead, I would like to have my build script automatically install the correct versions of those tools in a private path that gets setup for just that project.
Currently, I’m packaging a minimal set of bits from NAnt, NUnit, and NSIS along with CodeRef. This worries me because I’m not sure whether I’m a) violating the license agreement(s) by repackaging the bits, and b) whether the bits that I pull out will actually work reliably in my build environment.
To improve the OOBE, the various open source tools in the .NET world need to standardize on an installer that can be scripted from the outside. This way a master install script could install NUnit 2.0 and NAnt 1.0 for one project, and NUnit 3.0B2 and NAnt 0.8.3RC1 for another project. p. The way I envision this working is as follows: a “master” installer dictates to the “component” installer what directory tree to install into. The component installer has to report the “bin” path of the installed component to the master installer. The master installer would use the path information to create a shell script that would setup the correct build environment. This is similar to the way the vcvars32.bat file sets up the command-line environment in VS.NET.
Do folks have thoughts along these lines? I’m fairly certain that NSIS can’t do what I need, and I don’t have enough knowledge about MSI’s to know whether they can fit the bill.
2 archived reader comments
Jonx (2003-07-23)
Hi, Maybe this can be solved by using merge modules? Each software, nant, nunit, etc, will be packaged as a merge module and you own software will be the master install by beeing a standard setup and by including each specific merge module you need? John.
Jeff Clark (2003-07-29)
You can create a merge module for them as Jonx mentioned above, but you run the risk of changing the component GUIDs that come in the original packaging. These are used to keep track of reference counting for shared components. Gets messy if you mix these up. Licensing will come into play by “re-packaging” them this way.
The other route is to make a main MSI which calls the other installations. The main MSI can instruct the others where to install and to perform it silently, making the user think that there is only one installation going on.
Custom Actions in the MSI can make the decisions or record the INSTALLDIR of the individual components.
NUnit comes in an MSI, I don’t have NAnt so I’m not sure about this one. This isn’t as much re-packaging as it is re-distributing, but I’m sure you’d have to make arrangements for the products.