# Anyone tried CruiseControl.NET-&gt;FinalBuilder-&gt;Wise?

**URL:** https://www.finalbuilder.com/forums/t/anyone-tried-cruisecontrol-net-gt-finalbuilder-gt-wise/762
**Category:** Discussion
**Created:** [February 27, 2008, 3:15am UTC](https://www.finalbuilder.com/forums/t/anyone-tried-cruisecontrol-net-gt-finalbuilder-gt-wise/762 "2008-02-27T03:15:37Z")
**Posts on this page:** 7
**Page:** 1

<div class="post-metadata">

### Author: ![mikep](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/a4c791/32.png) [@mikep](https://www.finalbuilder.com/forums/u/mikep)
#### Post date: [February 27, 2008, 3:15am UTC](https://www.finalbuilder.com/forums/t/anyone-tried-cruisecontrol-net-gt-finalbuilder-gt-wise/762/1 "2008-02-27T03:15:37Z")

</div>

Hi,

I have a FinalBuilder project that contains a Wise Installer action.&nbsp; When I run this project via FB, fbcmd, or FB Server it runs fine.&nbsp; However, if I use the CruiseControl.NET "FinalBuilder" task to run this project, it fails on Wise.&nbsp; I have also tried using the CruiseControl.NET "exec" task and just calling fbcmd directly, but it too fails on Wise.&nbsp; Here's the log:

[Wise Windows Installer Project [c:\build\setups\MyApp\MyApp.wsi]]  
&nbsp; Runing Wise For Windows Installer...  
&nbsp; 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"  
&nbsp; Wise Install Build Failed with ReturnCode : -18

I haven't been able to find ReturnCode "-18" anywhere.&nbsp; So, I hoping someone has tried this combination before and can help me out...

Thanks,

Mike

&nbsp;

&nbsp;

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [February 27, 2008, 11:19am UTC](https://www.finalbuilder.com/forums/t/anyone-tried-cruisecontrol-net-gt-finalbuilder-gt-wise/762/2 "2008-02-27T11:19:59Z")

</div>

Hi Mike,   
  
 Sorry to hear you’re having problems. If you set up a [cc.net](http://cc.net) exec task to run the command line shown in the log, does that succeed?   
  
 Regards,   
  
 Angus

---

<div class="post-metadata">

### Author: ![mikep](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/a4c791/32.png) [@mikep](https://www.finalbuilder.com/forums/u/mikep)
#### Post date: [February 29, 2008, 12:41pm UTC](https://www.finalbuilder.com/forums/t/anyone-tried-cruisecontrol-net-gt-finalbuilder-gt-wise/762/3 "2008-02-29T12:41:07Z")

</div>

Yep, that fails too... still haven't been able to figure this one out.

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [March 2, 2008, 10:54am UTC](https://www.finalbuilder.com/forums/t/anyone-tried-cruisecontrol-net-gt-finalbuilder-gt-wise/762/4 "2008-03-02T10:54:00Z")

</div>

Hi Mike,   
  
 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](http://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](http://CC.NET) FinalBuilder Task, if it’s not provided by the main [CC.NET](http://CC.NET) environment.   
  
 Regards,   
  
 Angus

---

<div class="post-metadata">

### Author: ![mikep](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/a4c791/32.png) [@mikep](https://www.finalbuilder.com/forums/u/mikep)
#### Post date: [March 3, 2008, 4:24am UTC](https://www.finalbuilder.com/forums/t/anyone-tried-cruisecontrol-net-gt-finalbuilder-gt-wise/762/5 "2008-03-03T04:24:39Z")

</div>

Good call! When I run the [CC.NET](http://CC.NET) server from the command line, or I run the [CC.NET](http://CC.NET) service as myself instead of the local system account, it works!!   
  
 Thanks,   
 Mike

---

<div class="post-metadata">

### Author: ![angus](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/a/b3f665/32.png) [@angus](https://www.finalbuilder.com/forums/u/angus)
#### Post date: [March 3, 2008, 11:28am UTC](https://www.finalbuilder.com/forums/t/anyone-tried-cruisecontrol-net-gt-finalbuilder-gt-wise/762/6 "2008-03-03T11:28:48Z")

</div>

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.

---

<div class="post-metadata">

### Author: ![mikep](https://www.finalbuilder.com/forums/letter_avatar_proxy/v4/letter/m/a4c791/32.png) [@mikep](https://www.finalbuilder.com/forums/u/mikep)
#### Post date: [March 4, 2008, 2:49am UTC](https://www.finalbuilder.com/forums/t/anyone-tried-cruisecontrol-net-gt-finalbuilder-gt-wise/762/7 "2008-03-04T02:49:06Z")

</div>

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](http://CC.NET) service as the same user. Thanks.
