Nick Zigomanis wrote:

Hi Ian, Gert,

Here is a simple build file that demonstrates the problem (the actual
target uses foreach with a fileset). I've also attached one of the
offending dll's. There's probably about 10 of them all up.



I've committed a fix to cvs that calls SetErrorMode to prevent the doalog being displayed. Instead of the dialog you'll now see:


[comregister] Registering 1 files [comregister] H:\dev\test\nant\ComRegTest\app.build(6,4): [comregister] Error loading dll 'H:\dev\test\nant\ComRegTest\Rcust72CM.DLL'.

BUILD SUCCEEDED - 1 non-fatal error(s), 0 warning(s)

Unfortunately GetLastError doesn't return the full reason why Rcust72CM.DLL couldn't be loaded (

dynamic link library cprt60n.dll cannot be found ) but I think its preferable to 
having message boxes pop up.


Ian

Regards,
Nick.

-----Original Message-----
From: Ian MacLean [mailto:[EMAIL PROTECTED] Sent: Friday, 13 August 2004 11:10 AM
To: Nick Zigomanis
Cc: [EMAIL PROTECTED]
Subject: Re: [Nant-users] comregister and silent mode


Nick Zigomanis wrote:



I getting a dialogue titled "nant.exe - Unable to locate dll"

And then within the body of the dialogue:

The dynamic link library cprt60n.dll cannot be found in the specified
path ....... (listed is my path environment variable).





Nick, Would you be able to post a copy of your build file (or a minimal sample that repros your issue ) and maybe that dll as well if possible. Is cprt60n.dll the dll you are trying to register or is it a dependency
?


Ian



And then an OK button.

Regards,
Nick.

-----Original Message-----
From: Ian MacLean [mailto:[EMAIL PROTECTED] Sent: Thursday, 12 August 2004 8:51 PM
To: Nick Zigomanis
Cc: [EMAIL PROTECTED]
Subject: Re: [Nant-users] comregister and silent mode


Nick Zigomanis wrote:





Is there are way to emulate the /s switch that is passed to regsvr32
with comregister?



For some dll's I have, a dialog pops up, halting the build.




Essentially,




I just want to ignore these. The failonerror="false" does not do the
trick.







what dialog do you get ? ComRegister doesn't call out to regsvr32 - it calls the dlls DllRegisterServer function directly.

Ian











--
Ian MacLean, Developer, ActiveState, a division of Sophos
http://www.ActiveState.com




-------------------------------------------------------
SF.Net email is sponsored by Shop4tech.com-Lowest price on Blank Media
100pk Sonic DVD-R 4x for only $29 -100pk Sonic DVD+R for only $33
Save 50% off Retail on Ink & Toner - Free Shipping and Free Gift.
http://www.shop4tech.com/z/Inkjet_Cartridges/9_108_r285
_______________________________________________
Nant-users mailing list
[EMAIL PROTECTED]
https://lists.sourceforge.net/lists/listinfo/nant-users

Reply via email to