if (!IsVersion(ref fileVersion)) { fileVersion = null; }
TO
if (!IsVersion(ref fileVersion)) { //fileVersion = null; fileVersion = ""; }
I avoid the null reference exception which ultimately allows me to successfully generate a fully functional msi for my application!!
The error generated when actually running the app from the result of the msi installation (mentioned in a prior email) is somehow related to the output of my build from NAnt v0.85 (nightly 8/3). I'm yet to figure that one out yet.
However, if I build my app using NAnt v0.84 and then generate my msi using v0.85 all my needs are met. How's that for a solution? I'm happy with it at least temporarily.
Hope this helps anyone else confronting a similar problem.
Ted
Date: Thu, 05 Aug 2004 21:28:52 -0500 To: [EMAIL PROTECTED] From: Ted Quinby <[EMAIL PROTECTED]> Subject: Re: [Nant-users] msi, components, and subdirs Cc: [EMAIL PROTECTED]
I tracked down the problem although I haven't solved it yet. It's related to the following code in InstallerCreationCommand.cs at or around line 2230.
if (!IsVersion(ref fileVersion)) { fileVersion = null; }
If I comment this out and run my msi task (after rebuilding nantcontrib), the msi creates successfully (although my application generates errors when run from the result of my msi installation -- errors not surprisingly related to invalid file versions -- the app by the way runs flawlessly with the output from Visual Studio).
I've also noticed that the files that generate an error in my msi creation (prior to me commenting out the above code) are non-versioned files. The only files that can be successfully added to the msi with nantcontrib source code (0.85) untouched are versioned files.
Once again, this problem did not exist for me with 0.84. In fact, my problem with 0.84 was just the opposite -- it wasn't properly dealing with versioned files which was also causing problems with my msi.
I guess I'm looking for a happy medium between the two -- versioned and non-versioned file support.
Any thoughts?
Thanks!
Ted
------------------------------------------------------- This SF.Net email is sponsored by OSTG. Have you noticed the changes on Linux.com, ITManagersJournal and NewsForge in the past few weeks? Now, one more big change to announce. We are now OSTG- Open Source Technology Group. Come see the changes on the new OSTG site. www.ostg.com _______________________________________________ Nant-users mailing list [EMAIL PROTECTED] https://lists.sourceforge.net/lists/listinfo/nant-users