Question

I'm trying to use the EXEC NAnt task to launch REGSVR32.EXE to register a dll in my Teamcity CI Build Script. However it keeps returning code 3 on anything I attempt to register. Would anyone know what a return code 3 means? Anyone have this issue before?

No correct solution

OTHER TIPS

According to this answer the error code can be found on the System Error Codes page. Looking at that page error code 3 means ERROR_PATH_NOT_FOUND so from that I'm guessing that either the path to REGSVR32.EXE isn't found or the path to your DLL isn't correct.

Your path for the DDL's may exists which will then try to register the dlls, but if you are using NAnt, then it probably does not know where to find REGSVR32.EXE.

You need to define that in a property then use that property to register then DDLs, as that is probably causing code error 3.

<property name="REGSVR32.EXE" value="C:\Windows\System32\REGSVR32.EXE" />

Also, make sure your 'TeamCity Build Agent Service' is not using the LocalSystem account but infact some admin user.

Licensed under: CC-BY-SA with attribution
Not affiliated with StackOverflow
scroll top