Visual Studio Development Bookmark and Share   
 index > Visual Studio Guidance Automation Toolkit > SFT Wix Installer error
 

SFT Wix Installer error


hi guys,
i'm getting a problem with creating an installer using the SFT wix installer template....

Undefined variable: $(var.SoftwareFactoryInstaller.Build.Dir). at C:\SF\SoftwareFactory.Setup\TechControl.SoftwareFactorySetup.wxs

I inially created the solution but then deleted the setup project as i had changed the structure and it kept throwing an error.
i then add the sft installer again by clicking New->SFT Setup Project (C#)


any ideas?

Regards.
mickdelaney  Friday, August 03, 2007 1:37 PM
Here it's the naming convention problem again (I think). What is the name of the Guidance Package manifest (this is the xml where you define the recipes and the file that can't be found)? It's not TechControl.SoftwareFactory.xml try the following:

You can open the TecControl.SoftwareFactorySetup.wxs file in the SFT Setup Project, search the TectControl.SoftwareFactory.xml filename and replace its value with maniftest filename.

-Adrian
Adrian Alonso  Friday, August 03, 2007 2:52 PM
Hi, assuming that the error appears when you try to build the project it seems that the variable definition and usage weren't generated correctly. Could you please go to the SetupMetadata.items.t4 file, copy the ExtendedCandleProperties xml element and past it here? That xml element contains the definition for the missing var so you should be able to change it in order to sync it with the the name (var.SoftwareFactoryInstaller.Build.Dir) that you are using in the wix files. If you post the xml fragment I can guide you to change and hopefully this will fix the issue.

The cause of this error should be that the Guidance Package and its installer Project are not following the naming convention where if the Guidance Package's name is "Foo", the Installer should be named "FooInstaller".

HTH
-Adrian
Adrian Alonso  Friday, August 03, 2007 2:20 PM
Hi Adri
Code Snippet

an,

I changed the project names to match up as you were right they werent the same....this seems to have solved that problem but then i got another error!!!


Error 1 File of type 'File' with name '..\TechControlSoftwareFactory\bin\Debug\TechControl.SoftwareFactory.xml' could not be found. C:\TFS\Infrastructure Technology Development\SoftwareFactory\TechControlSF\TechControl.SoftwareFactory.Setup\TechControl.SoftwareFactorySetup.wxs 25 TechControl.SoftwareFactory.Setup


Again this happened when i compile....

Regards.

mickdelaney  Friday, August 03, 2007 2:38 PM
Here it's the naming convention problem again (I think). What is the name of the Guidance Package manifest (this is the xml where you define the recipes and the file that can't be found)? It's not TechControl.SoftwareFactory.xml try the following:

You can open the TecControl.SoftwareFactorySetup.wxs file in the SFT Setup Project, search the TectControl.SoftwareFactory.xml filename and replace its value with maniftest filename.

-Adrian
Adrian Alonso  Friday, August 03, 2007 2:52 PM
Cheers Adrian,
Thats worked. I had renamed the projects to our internal convention, but the xml manifest file was not the same, i renamed the manifest putting a "." after the TechControl part and it worked fine.
Your a life saver!!!
Especially on a friday afternoon!!
Regards.
mickdelaney  Friday, August 03, 2007 2:59 PM
Great! Glad it worked!

-Adrian
Adrian Alonso  Friday, August 03, 2007 3:04 PM

You can use google to search for other answers

Custom Search

More Threads

• Recipe Designer - No toolbox items
• How to pass arguments to Action programatically?
• How does one get his/her posts removed?
• Issue passing input parameters to actions
• How do I add an empty project folder?
• GAT Roadmap
• "Toolkit is already installed" but it's not
• Template runs as part of the target solution but does not run as part of a Guidance Package
• Building a first Guidance Package
• IExtenderProvider the GAT way...