James,
 
I had some trouble with the files in your Install.zip and have some updates and a question:
 
1) Updated NAntContrib.build  and the NAntContribInstall include so that it used ${nant.project.basedir} references so that it could run either if $fromcontrib=true or false (ie built from NAntContrib or Tools\VSNetAddin\default.build and allow the VSNetAddin to be built from the NAntContrib build.
 
2) Updated Toos\VSNetAddin\default.build so that you can build all of NAnt, NAntContrib and the VSNetAddin from the default build if NAnt and NAntContrib are not already built. (Added comments in the style of the NAntContrib builds). Commented out references to ${sys.env.INCLUDE} and ${sys.env.LIB}which my version 0.8.0 said were invalid..
 
3) Updated the NetAddin.cs file to update the AddNamedCommand flag from false to true, which allows the Addin to come up without error and generally works except I'm still unable to get the build to execute (Is anyone else having the same problem?)
 
Ialso tried executing the msi target, but get the following error:
 
INTERNAL ERROR
System.MemberAccessException: Cannot create an instance of an interface.
   at System.RuntimeType.CreateInstanceImpl(Boolean publicOnly)
   at System.Activator.CreateInstance(Type type, Boolean nonPublic)
   at System.Activator.CreateInstance(Type type)
   at NAnt.Contrib.Tasks.MSMTask.ExecuteTask() in D:\Projects\NAntFarm\NAntContr
ib\src\Tasks\MSMTask.cs:line 97
   at SourceForge.NAnt.Task.Execute()
   at SourceForge.NAnt.Target.Execute()
   at SourceForge.NAnt.Project.Execute(String targetName)
   at SourceForge.NAnt.Tasks.CallTask.ExecuteTask()
   at SourceForge.NAnt.Task.Execute()
   at SourceForge.NAnt.Target.Execute()
   at SourceForge.NAnt.Project.Execute(String targetName)
   at SourceForge.NAnt.Project.Execute()
   at SourceForge.NAnt.Project.Run()
Please send bug report to
[EMAIL PROTECTED]
Try 'nant -help' for more information
 
Line 97 is
// Create WindowsInstaller.Installer

Type msiType = Type.GetTypeFromProgID("WindowsInstaller.Installer");

Object obj = Activator.CreateInstance(msiType);

I checked and I have the WindowsInstaller SDK installed on my machine and can't see why this doesn't work. Any thoughts? Do I need to install something else?

Paul

--- Original Message -----

From: "Geurts, James" <[EMAIL PROTECTED]>
To: <[EMAIL PROTECTED]>
Sent: Thursday, February 13, 2003 2:48 PM
Subject: [NAntC-Dev] NAnt install

> Hi... these updates allow for an MSI of NAnt to be created as well as additions to Jayme's msi task.  There are tasks that build merge modules of NAnt, NAntContrib, VSNetAddin, and Slingshot.  The default "msi" task will create NAntContrib and Slingshot merge modules and merge them into the NAnt msi.  The build files were "fixed"/updated to do all of this with the current cvs version.  I had troubles building the VSNetAddin, but the merge module task is there (Just commented out), if the problem was local to my box. 
>
> Please review these changes and commit them if you find them useful.
>
>
> As a side note, the errors I was getting while building the VSNetAddin are listed below, if someone could shed some light:
>
>
>             Buildfile:
file:///C:/Dev/0.8/NAntContrib/Tools/VSNetAddin/Default.b
> uild
>
>             addin.compile:
>                [regasm] UnRegistering build\NAntAddin\NAntAddin.dll for COM Inte
> rop
> RegAsm error: Unable to locate input assembly: 'build\NAntAddin\NAntAddin.dll'
> error: Couldn't write output file 'C:\Dev\0.8\NAntContrib\build\NAntAddin\NAnt.C
> ontrib.NAntAddin.Addin.resources'
> error: Specific error was: Could not find a part of the path "C:\Dev\0.8\NAntCon
> trib\build\NAntAddin\NAnt.Contrib.NAntAddin.Addin.resources".
> 2 error(s).
>
> BUILD FAILED
> C:\Dev\0.8\NAntContrib\Tools\VSNetAddin\Default.build(76,6):
>  External Program Failed: resgen return -1163019603
> Output:
> Read in 2 resources from 'C:\Dev\0.8\NAntContrib\Tools\VSNetAddin\NAntAddin.resx
> '
>
>
> BUILD FAILED
> Nested build failed.  Refer to build log for exact reason.
>
>
>
>

Attachment: UpdateInstall.zip
Description: Zip compressed data

Reply via email to