Re: [WiX-users] how to share variables between wix and C++ projects?

2010-02-08 Thread dB .
: General discussion for Windows Installer XML toolset. Subject: [WiX-users] how to share variables between wix and C++ projects? I have Wix project that contains product codes and version information and I would like to find a way to use these information from C++ project because I do not want to

Re: [WiX-users] how to share variables between wix and C++ projects?

2010-01-31 Thread Sascha Beaumont
I have a small VBScript that uses Scripting.FileSystemObject.GetFileVersion to retrieve the version of my 'main' EXE. As part of my Nant script, I run the VBS, output to a file, read it back in as a variable and then pass it as a command line variable to WiX. In my particular environment compilati

Re: [WiX-users] how to share variables between wix and C++ projects?

2010-01-25 Thread Rob Mensching
Ahh, that's a different problem than I thought you were trying to solve. We do this sort of thing in the WiX toolset using a tool that generates the .wxi file. You can see ours at: wix\toolsrc\GenerateWixInclude On Sun, Jan 24, 2010 at 7:41 PM, CP YEH wrote: > Thank you for your answer. I may no

Re: [WiX-users] how to share variables between wix and C++ projects?

2010-01-24 Thread CP YEH
Thank you for your answer. I may not understand your reply correctly but I was looking for a way to keep a variable in one place for various projects. In other words, currently I have product version variable for future upgrade in wxs file but I need this information in other parts of my code which

Re: [WiX-users] how to share variables between wix and C++ projects?

2010-01-24 Thread Rob Mensching
The MSI SDK provides a number of APIs to get at those pieces of data from a custom action. The WiX toolset ships with many custom actions. You might read through those to get an idea how to read MSI databases. On Sun, Jan 24, 2010 at 3:47 PM, CP YEH wrote: > I have Wix project that contains prod

[WiX-users] how to share variables between wix and C++ projects?

2010-01-24 Thread CP YEH
I have Wix project that contains product codes and version information and I would like to find a way to use these information from C++ project because I do not want to define these variables two different places. Could anyone tell me how to achieve this? Thanks. YEH -