Hi Simon,

Please make sure that you are using a nightly build of NAntContrib.  You'll
need to also use a relatively new nightly build of NAnt to build the
NAntContrib tasks.  The msi/msm task schema changed between 0.84 and the
current builds, giving you the error that you see.  

Otherwise, you could try using a previous version of the file.  I believe
that version 3 works with the 0.84 msi task schema.  Available here:
http://nant.sourceforge.net/wiki/index.php/sample%20build%20file?version=3

As for merge modules... think of them as a storage mechanism to share common
install information.  For example, you could build a merge module containing
just the NAnt bin files.  Then, for each msi that you create, you could just
merge the (merge module) file into each msi.  That way, you don't have to
specify the (for this example) NAnt bin files for each msi.  They would
automatically be added to the install via the merge process.  Convenient if
you wanted to add an NAnt subfolder (containing a known set/version of
files) to one or many installs.

Another example is that your company could have a common way to setup a
database... It could involve custom dialog(s) to specify server, user, and
password.  It would also use a custom action to modify the database.  Rather
than always creating custom actions and dialogs, for each install, you could
separate that logic into merge modules.  So, for this example, you could
create a merge module that contains the dialogs.  You could also create a
merge module that handles the custom action logic.  For each product install
that your company creates, you would then just add those merge modules to
the install.  That way, each install would maintain exactly the same logic.
It would also allow you to easily omit the dialog(s) from the install if,
for that particular install, the database setup was to be automatic without
user interaction.  More information here:
http://msdn.microsoft.com/library/default.asp?url=/library/en-us/msi/setup/m
erge_module_database.asp


Hope that helps

Jim


-----Original Message-----
From: [EMAIL PROTECTED]
[mailto:[EMAIL PROTECTED] On Behalf Of
[EMAIL PROTECTED]
Sent: Thursday, June 10, 2004 11:48 AM
To: [EMAIL PROTECTED]
Subject: [Nant-users] MSI-Task

Hi All
I'm trying to use the sample 'VDirSample.build' to generate an msi for a
website depoyment, but I'm getting the following error:

"....

Target(s) specified: msi 

msi:


BUILD FAILED

Validation Error: Element 'NAnt.Contrib.Tasks.MSITask:msi' has invalid child
element 'NAnt.Contrib.Tasks.MSITask:features'. An error occurred at (219,
4).

Total time: 2.2 seconds.

..."


...as you can see it seems to be suggesting that 'features' is not a valid
child of 'msi', any ideas?

Also I'm not quite sure where merge modules come into the equation. The
sample build file uses 'components', is this the equivalent to merge
modules. If say you needed to develop one msi that installed one more than
one web site, would you hav an msi for each site and then some kind of
toplevel controlling msi?

many thanks

Simon Burgess



______________________________________________________________

CONFIDENTIALITY NOTICE

This communication and the information it contains is intended for the
person or organisation to 
whom it is addressed.  Its contents are confidential and may be protected in
law.  Unauthorised use,
 copying or disclosure of any of it may be unlawful.  If you are not the
intended recipient, please 
contact us immediately.

The contents of any attachments in this e-mail may contain software viruses,
which could damage your 
own computer system.  While Marlborough Stirling has taken every reasonable
precaution to minimise 
this risk, we cannot accept liability for any damage, which you sustain as a
result of software 
viruses.  You should carry out your own virus checking procedure before
opening any attachment.


Marlborough Stirling plc, Registered in England and Wales 
Registered No. 3008820,
Allen Jones House, Jessop Avenue, Cheltenham, Gloucestershire, GL50 3SH
Tel: 01242 547000     Fax: 01242 547100
http://www.marlborough-stirling.com



-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users



-------------------------------------------------------
This SF.Net email is sponsored by the new InstallShield X.
>From Windows to Linux, servers to mobile, InstallShield X is the
one installation-authoring solution that does it all. Learn more and
evaluate today! http://www.installshield.com/Dev2Dev/0504
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to