Hello,
The documentation for NAnt says "To use NAnt you need the Microsoft .NET Framework SDK".
The documentation for <msi> task says "Requires cabarc.exe in the path".
Unfortunately this is not the whole truth.
Yesterday I moved my build script from computer which has Visual Studio .NET installed to another one with Microsoft .NET Framework SDK and Microsoft Cabinet SDK (cabarc.exe) only. My build script failed with the following message:
========================================================
BUILD FAILED
E:\Buildscripts\msi.build(8,4):
Unable to build MSI database 'MyProductSetup.msi'.
COM object with CLSID {F94985D5-29F9-4743-9805-99BC3F35B678} is either not valid or not registered.
========================================================
I found that in the case when MSI task needs to merge some MSM modules it uses mergemod.dll which is not part of Microsoft .NET Framework SDK or Microsoft Cabinet SDK. This DLL is distributed with Visual Studio .NET and several other Microsoft products.
To solve this problem I copied given dll to destination computer and then used "regsvr32 mergemod.dll" to register component. After this manipulation my script began to work.
I think several things should be done with NAnt / NAntContrib:
1. The mergemod.dll should be included with NAntContrib distribution.
2. The documentation for <msi> task should say that if the user installs NAnt / NAntContrib by unzipping of two zip files then it is necessary to run "regsvr32 mergemod.dll" manually.
3. If the user installs NAnt / NAntContrib using Setup Wizard (actually I don't know if such thing exists or not because I always used to download zip files from NAnt web site) then registration of mergemod.dll should happen automatically.
Regards, Roman.
------------------------------------------------------- This SF.Net email is sponsored by: InterSystems CACHE FREE OODBMS DOWNLOAD - A multidimensional database that combines robust object and relational technologies, making it a perfect match for Java, C++,COM, XML, ODBC and JDBC. www.intersystems.com/match8 _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users
