Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > Setup created using 1.3 doesent install on GAX 1.4
 

Setup created using 1.3 doesent install on GAX 1.4

I had developed a guidance package using GAX\GAT 1.3. I uninstalled 1.3 and installed 1.4 on my machine. Package registration from visual studio will work correctly but the installation using the msi fails.the msi gives the following error


“The project factory C# is not registered. c:\...\ library.vstemplate cannot be installed�/p>


Curiously, if I create a new GAT package using 1.4, it will install correctly.But I had to make my old package working. After close comparison, I found that Custom installers for 1.4 take an addition CustomActionData.


For 1.3, CustomActionData for setup project takes the following parameter


/Configuration="[TARGETDIR]YourGuidance.xml"

For 1.4, CustomActionData for setup project takes the following parameters


/Hive=9.0 /Configuration="[TARGETDIR]YourGuidance.xml"



the new parameter regarding hive seems to be the switch bwtween VS2005 and 2008.



So if you are facing the same problem just change CustomActionData for your setup project

Dhawal B Kapadia  Wednesday, March 26, 2008 10:44 AM

Hi Dhawal,

Actually, a setup created with GAT 1.3 will install ok in GAX v1.4 for VS 2005 but not onto VS 2008. This is noted in the readme files for GAX v1.4. All guidance packages setup built with GAX/GAT v1.3 and targetting VS 2005 will install ok on GAX/GAT v1.4 for VS 2005.

Also, if you use GAT v1.4 to create your setup project then GAT will automatically include the correct /Hive=8.0 or /Hive=9.0 depending on the VS version that is running.

The only time you may need to tweak by hand the /Hive parameter is if you're building your own setup project (eg. using WiX).

HTH,
-Victor.
vga  Wednesday, March 26, 2008 2:06 PM

Hi Victor,

I had developed the my package for Beta 2 and was able to use it on 2008 RTM. after installing GAT 1.4, i read the following in the GAX\GAT 1.4 release note

"The previous version of GAX (July 2007 CTP) was released only for Visual Studio 2008 Beta 2. You cannot use it on Visual Studio 2008. You must use the February 2008 release instead."

the above statement in release note contradicts to what i was seeing. hence i did take the release notes lightly.

Dhawal B Kapadia  Wednesday, March 26, 2008 2:24 PM

Yes. The thing is GAX/GAT v1.3 was never meant to target the RTM version of VS 2008, although it did work on it. So people used it anyway on VS 2008 RTM.

vga  Wednesday, March 26, 2008 6:07 PM
Thanks, this is exactly what I needed!
jann87  Friday, April 04, 2008 7:55 AM

You can use google to search for other answers

Custom Search

More Threads

• Effort in creating class recipe
• Can we generate .resx file and add it into app_GlobalResources folder using GAT?
• GAT recipe execution from "Guidance package manager"
• GAT & GAX Install Error
• Receipe Designer toolbox only contains the "Argument" item.
• Adding a solution to source control during CreateSolution Recipe
• Adding items to a solution folder automatically opens them in the IDE
• Error trying to install or uninstall GAX
• Solution no longer GAT solution
• Service Factory installation problem...