Hi
I'm building a Wix project using Microsoft.Build.BuildEngine and the Project class. Does anyone know how I ensure that my Wix variables are included? I see them referred to in the project file itself. <ItemGroup> <Content Include="Branding\CompanyName Eula.rtf" /> <Content Include="Branding\CompanyName Logo 493x58 Right Align.bmp" /> </ItemGroup> - the default banner and license rather than mine are shown when the installer runs. If I build the project within Visual Studio where these values are specified in the project properties then I can see my banner/license in the end result. The code is as below. In ingnorance I attempted the lines underlined below to no avail. Any help would be appreciated. Thanks Engine engine = new Engine(); engine.BinPath = @"C:\WINDOWS\Microsoft.NET\Framework\v2.0.50727"; FileLogger logger = new FileLogger(); string paramString = @"logfile=" + dir + @"\" + DateTime.Now.ToString("yyMMdd") + "Build.log"; logger.Parameters = paramString; engine.RegisterLogger(logger); Project project = engine.CreateNewProject(); project.Load(fullProjectPath); project.SetProperty("Configuration", "Release"); project.SetProperty("WixUILicenseRtf", @"Branding\CompanyName Eula.rtf"); project.SetProperty("WixUIBannerBmp", @"Branding\CompanyName Logo 493x58 Right Align.bmp"); bool success = engine.BuildProject(project); engine.UnregisterAllLoggers(); engine.UnloadAllProjects(); Norman Lough Developer Tel: +44 (0)191 213 5555 DDI: +44 (0)191 2028360 Email: norman.lo...@imass.co.uk Imass Ltd, Northumbria House, Regent Centre, Gosforth, Newcastle upon Tyne, NE3 3PX. http://www.imass.co.uk <http://www.imass.co.uk/> Imass Limited is an Infoterra company, part of EADS Astrium Registered in England and Wales No. 2379476 - Disclaimer - The information contained in this e-mail and its attachments is confidential and intended only for the use of the individual or entity named above. If you are not the intended recipient, please do not read, copy, use or disclose this message or its attachments. If you have received this message in error, please notify the sender immediately and delete or destroy all copies of this message and attachments in all media. Any views expressed in this e-mail that do not relate to Imass' official business may not reflect the views of the company. ------------------------------------------------------------------------------ OpenSolaris 2009.06 is a cutting edge operating system for enterprises looking to deploy the next generation of Solaris that includes the latest innovations from Sun and the OpenSource community. Download a copy and enjoy capabilities such as Networking, Storage and Virtualization. Go to: http://p.sf.net/sfu/opensolaris-get _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users