Problems with FB V7.0.0.1065 and TFS 2010

Hi,

I cannot make that TFS2010 executes my Finalbuilder project.  I have installed FB v7.0.0.1065 on my development and build machine.

I'm using the template FinalBuilderPostBuild.xaml so TFS2010 takes care of building my solution and running the unit tests and I want to use my Finalbuilder project to execute some post-build actions.

Solution to build as well as the path to my Finalbuilder project are set in the build definition.

I have even disabled all tasks in the FB project but the problem seems to be that TFS cannot call FB.

 

This is the error message I'm seeing:

 

 Calling FinalBuilder
 Exception encountered when running FinalBuilder: Failed to get the path of the installed version of FinalBuilder (Registry entries not found)
    bei VSoftTechnologies.FinalBuilder.FBCmd.FindInstallationPath()
    bei VSoftTechnologies.FinalBuilder.FBCmd.Execute()
    bei VSoftTechnologies.FinalBuilder.TFS.Workflow.RunFinalBuilder.Execute(CodeActivityContext context)

 

The Finalbuilder installation seems to be OK on the development and build machines. 

I have spent 2 days trying to figure out what's the problem, please help !

I'm attaching the whole log file.

 

Thanks,

Victor

002_001_BuildLog.txt (101.839 KB)

Hi Victor,
It sounds like a problem with the registry reading code that locates FinalBuilder. Can you please have a look in the registry and check if the FinalBuilder keys are installed? They should be in
64bit: HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\VSoft\FinalBuilder\7.0
32bit: HKEY_LOCAL_MACHINE\SOFTWARE\VSoft\FinalBuilder\7.0

Cheers,

Ben

Hi Ben,

I verified and the registry keys are there (I’m using 32bit)

In HKEY_LOCAL_MACHINE\SOFTWARE\VSoft\FinalBuilder\7.0 there are two entries:

Directory C:\Program Files\FinalBuilder 7
Location C:\Program Files\FinalBuilder 7\FinalBuilder7.exe

Do you have any other idea?

Thanks and regards,
Vioctor

Hi Victor,
I’ve created a cut-down version of the code that performs the registry check, with some added debug info: http://finalbuilder.com/downloads/FindFinalBuilderRegKeys.exe

Can you please download it and run it on your build server, and let me know what the output is?

Cheers,

Ben

Hi Ben,

 

this is the output I got: 

 

Attempting to determing the OS type...
OS type is : Bit64
Attempting to locate the FB install location...
Failed to get the path of the installed version of FinalBuilder (Registry entries not found)

 

Nevertheless my build machine is a Windows XP 32-Bit.  Can this be the problem?   I mean, that the OS is not recognized correctly and the registry keys are being searched in a wrong path?

 

Thanks Ben !
 

Hi Victor,
That definitely looks like its the problem. It’s rather strange though - on our 32bit XP SP2 test VM that exe correctly identifies the machine as 32bit.

Can you please make sure that you don’t have an HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\VSoft\FinalBuilder key? If for some reason that key exists on a 32bit system it would likely confuse the OS detection code.

Is there anything special about your XP install, for example are you using a non-English version?

Cheers,

Ben

Hi again Victor,
I’ve made some improvements to our OS detection code. Can you please re-download the test app and see if it now correctly identifies your OS and finds the FinalBuilder location?

http://finalbuilder.com/downloads/FindFinalBuilderRegKeys.exe

If that works I’ll make the same change to FinalBuilder and get a new build out to you.

Cheers,

Ben

Hi Ben,

 

I verified the points you mentioned (in the build machine):

 

a.  In the build machine there are installations of FB5, FB6 and FB7.  A registry key for 64-Bit was found for the FB5 Installation:

     HKEY_LOCAL_MACHINE\SOFTWARE\Wow6432Node\VSoft\FinalBuilder\5.0

But also the one for 32-Bit --> HKEY_LOCAL_MACHINE\SOFTWARE\VSoft\FinalBuilder\5.0

 

b. The build machine's language was German.  I set it to Englisch and ran the last version of the tool, unfortunately with the same result:

Attempting to determing the OS type...
OS type is : Bit64
Attempting to locate the FB install location...
Failed to get the path of the installed version of FinalBuilder (Registry entries not found)

c. Then I executed a backup and then deleted the whole key Wow6432Node\VSoft\FinalBuilder\5.0

Now I get the following output...

Attempting to determing the OS type...
OS type is : Bit32
Attempting to locate the FB install location...
FinalBuilder location is: C:\Program Files\FinalBuilder 7
 

Cheers,

Victor
 

Hi Ben,

 

after removing the 64-Bit key from the registry, I ran my build and now it works !

Thanks for the great support.

 

(Maybe we found a new issue for the knowledge base )

 

Best regards,

Victor

Hi Victor,
I’m glad you’re up and running. Please let us know if there’s anything else we can help with.

Cheers,

Ben