I have a FinalBuilder project that contains a Wise Installer action. When I run this project via FB, fbcmd, or FB Server it runs fine. However, if I use the CruiseControl.NET "FinalBuilder" task to run this project, it fails on Wise. I have also tried using the CruiseControl.NET "exec" task and just calling fbcmd directly, but it too fails on Wise. Here's the log:
[Wise Windows Installer Project [ c:\build\setups\MyApp\MyApp.wsi ]] Runing Wise For Windows Installer... Command Line : "C:\Program Files\Altiris\Wise Installation Studio\Windows Installer Editor\WfWI.exe" c:\build\setups\MyApp\MyApp.wsi /c /s /p ProductVersion=1.0.0.5 /o "c:\build\setups\MyApp\MyApp_Setup.exe" Wise Install Build Failed with ReturnCode : -18
I haven't been able to find ReturnCode "-18" anywhere. So, I hoping someone has tried this combination before and can help me out...
Just a thought, but some tools require you to have a loaded Windows user profile in order to work properly. You get this during a normal interactive login, but you dont’ necessarily get it when running as a service. I don’t know offhand what cc.net does in terms of this, but you might want to find out as it could be related. It might even be possible to retrofit a profile loading into the CC.NET FinalBuilder Task, if it’s not provided by the main CC.NET environment.
Good news Mike. Is that a workable solution for you at the moment?
We're a bit busy with FB 6 at the moment, but when I get a chance I'll try and take a look at the CC.NET Task source and see if we can provide a user login and LoadProfile option for the task itself.
My current solution is very workable. I have a build “user” on the build machine that I use for Perforce, so I’ll run the CC.NET service as the same user. Thanks.