In my nant build script I'm attempting to silently register a custom dll using regsvr32.exe using the <exec> task. Everything I've tried I get a return code of 3.
<exec program="c:\windows\system32\regsvr32.exe" verbose="true">
<arg value="/s" />
<arg value="C:\Workspaces\AHLTA\Current\ThirdParty\CAC\dmdcCAC.dll" />
This dll will register fine outside of Teamcity using NAnt. Can anyone suggest a fix for this please?