I have a VS2008 solution which contains a couple of C++ projects and C# 
projects. Within this solution, a WiX3.5 setup project is created to generate a 
MSI installation package. All the outputs of my C++ projects and C# projects 
need to be added into the installation package. I follow the instruction of 
(http://wix.sourceforge.net/manual-wix3/votive_project_references.htm). It 
works fine with C# projects. However, it does not work with C++ project:
- After I add reference to a C++ project, its "Full Path" property will show 
"Object reference not set to an instance of an object"
- If I add a component as shown below, I will get "error CNDL0150: Undefined 
preprocessor variable '$(var.myC++Project.TargetFileName)'"
   <Component Id="myC++Project" Guid="CF8AEB23-7573-4A68-AA48-E1BD7FF7A0F1">
        <File Id="myC++Project" Name="$(var.myC++Project.TargetFileName)" 
Source="$(var.myC++Project.TargetPath)" DiskId="1" />
      </Component>


I googled this issue and found some 2-years-ago posts saying that referencing 
C++ project with WiX was not supported at that time and will probably be 
supported in the future. However, it look like it is still not supported now. 
How could I add references to C++ projects with WiX?  Thanks.



                                          
------------------------------------------------------------------------------
All the data continuously generated in your IT infrastructure 
contains a definitive record of customers, application performance, 
security threats, fraudulent activity, and more. Splunk takes this 
data and makes sense of it. IT sense. And common sense.
http://p.sf.net/sfu/splunk-novd2d
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to