Re: [WiX-users] Preprocessor variable inside another

2012-10-10 Thread Rob Mensching
The preprocessor is single pass today so this does not work. On Wed, Oct 10, 2012 at 2:27 AM, wrote: > How can I resolve $(var.Feature) as "ProjectName" part of > $(var..TargetPath) in the following example? > > VS error: > Error 157Ill-formed preprocessor function > '$var.($(var.Feature))M

[WiX-users] Preprocessor variable inside another

2012-10-10 Thread ferdi.oeztuerk
How can I resolve $(var.Feature) as "ProjectName" part of $(var..TargetPath) in the following example? VS error: Error 157Ill-formed preprocessor function '$var.($(var.Feature))Module.TargetPath'. Functions must have a prefix (like 'fun.'), a name at least 1 character long, and matching o

[WiX-users] Preprocessor and Localization

2012-09-03 Thread Rune Henssel
Hi List I need to include some extra files in a project but only when i build it for the "de-de" locale. So is it possible to do something like this: Yours Rune Henssel -- Live Security Virtual Confe

Re: [WiX-users] Preprocessor

2011-07-22 Thread Stefan Pavlik
I have opened an issue here: https://sourceforge.net/tracker/?func=detail&aid=3374854&group_id=105970&atid=642714 On 21/07/2011 17:16, Rob Mensching wrote: > Sounds like a bug. > > On Thu, Jul 21, 2011 at 2:22 AM, Stefan Pavlik wrote: > >> Hi All >> >> I need to include some part code depending

Re: [WiX-users] Preprocessor

2011-07-21 Thread Rob Mensching
Sounds like a bug. On Thu, Jul 21, 2011 at 2:22 AM, Stefan Pavlik wrote: > Hi All > > I need to include some part code depending on existence of several > macros. I would write something like this: > > > > > > Problem is that candle will generate error CNDL0150 (Undefined > preprocessor variab

Re: [WiX-users] Preprocessor

2011-07-21 Thread Stefan Pavlik
On 21/07/2011 11:42, Peter Shirtcliffe wrote: > Rather than depending on the existence of the variables, could you give them > an arbitrary null/empty/false value as a default and test for them being not > null/empty/false ? Would that work ? Hm... It is problem because the macros are created dyn

Re: [WiX-users] Preprocessor

2011-07-21 Thread Peter Shirtcliffe
To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Preprocessor On 21/07/2011 11:30, Peter Shirtcliffe wrote: > This works for us > > > > This works also for me, but it is not possible (AFAIK) to use 'OR', 'AND' operators in , expression

Re: [WiX-users] Preprocessor

2011-07-21 Thread Stefan Pavlik
On Thu, Jul 21, 2011 at 11:30 AM, Peter Shirtcliffe wrote: > This works for us > > > > > > This will simplify a bit the code but still it is not very pretty: -- Stefan Pavlik | stefan.pav...@gmail.com Lietavska 14 | 851 06 Bratislava | Slovak Republic

Re: [WiX-users] Preprocessor

2011-07-21 Thread Stefan Pavlik
On 21/07/2011 11:30, Peter Shirtcliffe wrote: > This works for us > > > > This works also for me, but it is not possible (AFAIK) to use 'OR', 'AND' operators in , expressions. -- Stefan Pavlik | stefan.pav...@gmail.com Lietavska 14 | 851 06 Bratislava | Slovak Republic --

Re: [WiX-users] Preprocessor

2011-07-21 Thread Stefan Pavlik
My own reply: On Thu, Jul 21, 2011 at 11:22 AM, Stefan Pavlik wrote: > > > > Of course I can use following code but it is a bit unhandy (to check for aprox. 20 possible macros) -- Stefan Pavlik | stefan.pav...@gmail.com Lietavska 14 | 851 06 Bratis

Re: [WiX-users] Preprocessor

2011-07-21 Thread Peter Shirtcliffe
This works for us -Original Message- From: Stefan Pavlik [mailto:stefan.pav...@gmail.com] Sent: 21 July 2011 10:22 To: WiX-users Subject: [WiX-users] Preprocessor Hi All I need to include some part code depending on existence of several macros. I would write something like this

[WiX-users] Preprocessor

2011-07-21 Thread Stefan Pavlik
Hi All I need to include some part code depending on existence of several macros. I would write something like this: Problem is that candle will generate error CNDL0150 (Undefined preprocessor variable) if any of the variables is not defined. According to http://wix.sourceforge.net/manual-wi

[WiX-users] Preprocessor extension for informational message

2011-07-18 Thread Bill Packard
Has anyone created a preprocessor extension for generating an informational message (that they can share)? Along the lines of the built-in error and warning message functionality, but with a type of 'Information'. I am currently using warning messages, but these are polluting the build logs. T

Re: [WiX-users] Preprocessor variable question

2011-05-18 Thread Sharad Patel
Steve [mailto:b...@nbsin.com] Sent: Thursday, 19 May 2011 5:26 a.m. To: General discussion for Windows Installer XML toolset. Subject: [WiX-users] Preprocessor variable question I am relatively new to WiX, so please excuse me if my question seems juvenile. Come to think of it, maybe you'd app

[WiX-users] Preprocessor variable question

2011-05-18 Thread Bair, Steve
I am relatively new to WiX, so please excuse me if my question seems juvenile. Come to think of it, maybe you'd appreciate an easy question for once! I am using VS2010 and using a build server, so no local builds. In my WiX setup, I have my preprocessor variable defined as 'BinariesRoot=$(OutD

Re: [WiX-users] Preprocessor Extension question

2010-09-02 Thread Bob Arnson
On 31-Aug-10 13:41, Maillet, Ed wrote: > The Preprocessor.GetSourceLineNumbers doesn't work because the preprocessor > extension doesn't get the XmlNode. (Or it's hiding somewhere I haven't seen). Please enter a bug to have it exposed. -- sig://boB http://joyofsetup.com/ ---

Re: [WiX-users] Preprocessor Extension question

2010-08-31 Thread Maillet, Ed
mewhere I haven't seen). Date: Tue, 31 Aug 2010 05:13:13 -0700 (PDT) From: Nick Ramirez Subject: Re: [WiX-users] Preprocessor Extension question To: wix-users@lists.sourceforge.net Message-ID: <1283256793610-5482348.p...@n2.nabble.com> Content-Type: text/plain; charset=us-ascii Ther

Re: [WiX-users] Preprocessor Extension question

2010-08-31 Thread Nick Ramirez
There's a static method called Preprocessor.GetSourceLineNumbers that accepts an XmlNode object. It's used by WiX as Candle is looking through your markup. I'm not sure that you'll be able to use it very easily. If you don't mind my asking, what is it you're trying to achieve? Preprocessor extensi

[WiX-users] Preprocessor Extension question

2010-08-30 Thread Maillet, Ed
When writing a preprocessor extension, how can you get SourceLineNumberCollection inside the extension? It isn't in the base class or Core that I can find. - Ed -- This SF.net Dev2Dev email is sponsored by: Show

Re: [WiX-users] Preprocessor

2010-02-11 Thread jnanneng
That's what I ended up doing. Just thought it odd that I couldn't ifdef an environment variable and that I could define a wix variable named the same as wix pre-processor syntax... Cheers... -- View this message in context: http://n2.nabble.com/Preprocessor-ifdef-environment-variables-tp455599

Re: [WiX-users] Preprocessor

2010-02-11 Thread Matt Lynch
Could you try a custom preprocessor extension? - Original Message - From: "John Nannenga" To: "General discussion for Windows Installer XML toolset." Sent: Friday, February 12, 2010 4:10 AM Subject: [WiX-users] Preprocessor I think

[WiX-users] Preprocessor

2010-02-11 Thread John Nannenga
I think this is kind of odd: Which compiles just fine. What I want to be able to do is have the preprocessor condition logic based on whether or not an environment variable is set. Forexample: But I cannot use because in the case when the environ

Re: [WiX-users] Preprocessor and Component Guids

2009-08-31 Thread Blair
aillet, Ed [mailto:email...@unum.com] Sent: Monday, August 31, 2009 9:59 AM To: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Preprocessor and Component Guids Here's the real use case. I need to create what I'll call an 'Infrastructure Package', specifically for a web serv

Re: [WiX-users] Preprocessor and Component Guids

2009-08-31 Thread Blair
") and use them as your keypaths. If they are all "buried" in the same key it won't look so "heavy" in RegEdit. -Original Message- From: Maillet, Ed [mailto:email...@unum.com] Sent: Monday, August 31, 2009 8:53 AM To: wix-users@lists.sourceforge.net Subject: [WiX

Re: [WiX-users] Preprocessor and Component Guids

2009-08-31 Thread Maillet, Ed
Message: 7 Date: Mon, 31 Aug 2009 16:25:46 + From: Svet Bonev Subject: Re: [WiX-users] Preprocessor and Component Guids No, there is no built-in functionality to accomplish that. But the bigger question is why you want to create such components. Ideally, you would have file KeyPaths. Ran

Re: [WiX-users] Preprocessor and Component Guids

2009-08-31 Thread Svet Bonev
about the use case would help us identify a solution. -Original Message- From: Maillet, Ed [mailto:email...@unum.com] Sent: Monday, August 31, 2009 8:53 AM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Preprocessor and Component Guids Hey all, I hope I'm missing some

[WiX-users] Preprocessor and Component Guids

2009-08-31 Thread Maillet, Ed
Hey all, I hope I'm missing something obvious. Is there a way for the preprocessor to generate a guid value for a variable? (without making my own custom extension). Something like I'm trying to create multiple conditional components like:

Re: [WiX-users] Preprocessor Questions (Christopher Painter)

2009-06-06 Thread Bob Arnson
martin lavelle wrote: > I can't think why they would object to using Linker variables this way? > Who said we would? It's supported and useful, especially in localization. -- sig://boB http://joyofsetup.com/ -- Ope

Re: [WiX-users] Preprocessor Questions

2009-06-06 Thread Bob Arnson
Christopher Painter wrote: > 1) Incorrect file paths will manifest themselves too late in the process. > > 2) When using a different variable like $(env.INSTALLFILES) if the > directory path is different for different builds the wixlib is already > formatted and the files won't line up. > U

Re: [WiX-users] Preprocessor Questions (Christopher Painter)

2009-06-05 Thread martin lavelle
Hi Chris, You could use Linker Variables in your source paths ( !(wix.Var) Variables ) I've used them this way in the past without problems. The linker still tells you if it can't find a file, etc. The Compiler (Candle.exe) won't allow linker variables everywhere, but they did/do work ok in S

[WiX-users] Preprocessor Questions

2009-06-04 Thread Christopher Painter
I've noticed a couple things I wonder about: Let say I use: Source="$(env.WINDIR)\notepad.exe The wixlib gets formatted as C:\WINDOWS\NOTEPAD.EXE. If I type the file name wrong, it still compiles with no errors. It's not until I consume the library in a merge module that it reports a failu

Re: [WiX-users] Preprocessor variable var..TargetFilePath

2009-05-14 Thread Rob Mensching
That variable comes from the project system. If you look at the command-line to candle.exe during the build, you'll see it (and may other things) passed in as the -D switch. You've asked a couple basic questions about the preprocessor. Have you read the WiX.chm documentation? Hu, Pan wrote: >

[WiX-users] Preprocessor variable var..TargetFilePath

2009-05-14 Thread Hu, Pan
I have the following component in my Product.wxs file for my WiX project: My question is, I want to use a preprocessor variable, i.e. $(var.MyApp.TargetFilePath) for the 'Source' attribute of the 'File' element above. In Votive 3.0, is var..TargetFilePath a built-

Re: [WiX-users] preprocessor and environment variables?

2008-10-04 Thread Rob Mensching
n WiX v2 won't change. 2. The behavior in WiX v3 is more what you would expect... (I think). -Original Message- From: Mark Modrall [mailto:[EMAIL PROTECTED] Sent: Wednesday, October 01, 2008 08:11 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users

Re: [WiX-users] preprocessor and environment variables?

2008-10-04 Thread Mark Modrall
Sorry, I should have included that in the first place... V2.0.5325.0... Thanks Mark -Original Message- From: Rob Mensching [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2008 6:13 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] preprocessor

Re: [WiX-users] preprocessor and environment variables?

2008-10-01 Thread Mark Modrall
Sorry... Should have included that to begin with - v2.0.5325.0 Thanks Mark -Original Message- From: Rob Mensching [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2008 6:13 PM To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] preprocessor and

Re: [WiX-users] preprocessor and environment variables?

2008-09-30 Thread Rob Mensching
What version of the WiX toolset are you using? -Original Message- From: Mark Modrall [mailto:[EMAIL PROTECTED] Sent: Tuesday, September 30, 2008 14:38 To: wix-users@lists.sourceforge.net Subject: [WiX-users] preprocessor and environment variables? Hi... I recently ran into a number

[WiX-users] preprocessor and environment variables?

2008-09-30 Thread Mark Modrall
Hi... I recently ran into a number of problems trying to change wix project behavior based on environment variable settings. A number of the things that sounded intuitive to me didn't work. For example didn't work because ifdef returns false for all environment variables always w

Re: [WiX-users] Preprocessor ifdef did odd thing

2008-06-27 Thread Rob Mensching
ehalf Of Scott Palmer Sent: Friday, June 27, 2008 13:56 To: General discussion for Windows Installer XML toolset. Subject: Re: [WiX-users] Preprocessor ifdef did odd thing Attempts to reproduce the problem failed, the problem changed to simply not recompiling the source file in the new project.. I

Re: [WiX-users] Preprocessor ifdef did odd thing

2008-06-27 Thread Scott Palmer
d and hit a bug then > you can get trapped in a difficult position. > > > -Original Message- > From: [EMAIL PROTECTED] [mailto: > [EMAIL PROTECTED] On Behalf Of Scott Palmer > Sent: Wednesday, June 25, 2008 06:21 > To: wix-users@lists.sourceforge.net > Subject: [WiX-

Re: [WiX-users] Preprocessor ifdef did odd thing

2008-06-25 Thread Rob Mensching
too far behind and hit a bug then you can get trapped in a difficult position. -Original Message- From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Scott Palmer Sent: Wednesday, June 25, 2008 06:21 To: wix-users@lists.sourceforge.net Subject: [WiX-users] Preprocessor ifde

[WiX-users] Preprocessor ifdef did odd thing

2008-06-25 Thread Scott Palmer
I have a product that can be built two ways. I have two WiX installer projects in visual studio, sharing many of the same wxs files. One project defines a variable in the project settings to cause some of the .wxs files to compile differently, like this: ...

Re: [WiX-users] Preprocessor Directives

2007-07-27 Thread Peter Marcu
AM To: Quattro IV Cc: wix-users@lists.sourceforge.net Subject: Re: [WiX-users] Preprocessor Directives Where can I find the current list of preprocessor directives? I'm using the list from this article, http://msdn2.microsoft.com/en-us/library/aa302186.aspx#wixsetup_topic6 But I'm gett

Re: [WiX-users] Preprocessor Directives

2007-07-27 Thread John Hall
Where can I find the current list of preprocessor directives? I'm using the list from this article, http://msdn2.microsoft.com/en-us/library/aa302186.aspx#wixsetup_topic6 But I'm getting compilation errors in VS when using the ProjectAggregator2-3.0.2925.0.msi. Thanks

[WiX-users] Preprocessor Directives

2007-07-26 Thread Quattro IV
Where can I find the current list of preprocessor directives? I'm using the list from this article, http://msdn2.microsoft.com/en-us/library/aa302186.aspx#wixsetup_topic6 But I'm getting compilation errors in VS when using the ProjectAggregator2-3.0.2925.0.msi. Thanks Example error: Error 1 Unde

Re: [WiX-users] preprocessor variable $(var.Build)

2006-11-07 Thread Justin Rockwood
Tuesday, November 07, 2006 6:58 AM To: 'Bob Arnson'; Friedrich, Oliver Cc: wix-users@lists.sourceforge.net; [EMAIL PROTECTED] Subject: RE: [WiX-users] preprocessor variable $(var.Build) The variable $(Configuration) is set by most MSBuild scripts automatically (C#, VB, VJ#, WiX, etc.). Als

Re: [WiX-users] preprocessor variable $(var.Build)

2006-11-07 Thread Foster, Richard - PAL
iable.   Hopefully this offers at least some additional information which may help you determine where you need to look.   Regards, Richard From: [EMAIL PROTECTED] [mailto:[EMAIL PROTECTED] On Behalf Of Friedrich, OliverSent: Tuesday, November 07, 2006 03:37To: wix-users@lists.sourceforge.netSubj

Re: [WiX-users] preprocessor variable $(var.Build)

2006-11-07 Thread Friedrich, Oliver
then you also get $(Configuration) defined for you. I’m not sure if $(ConfigurationName) is defined. If not, it’s a bug.   Justin   From: Bob Arnson [mailto:[EMAIL PROTECTED] Sent: Monday, November 06, 2006 7:28 PMTo: Friedrich, OliverCc: wix-users@lists.sourceforge.net; [EMAIL PROT

Re: [WiX-users] preprocessor variable $(var.Build)

2006-11-06 Thread Justin Rockwood
.   Justin   From: Bob Arnson [mailto:[EMAIL PROTECTED] Sent: Monday, November 06, 2006 7:28 PM To: Friedrich, Oliver Cc: wix-users@lists.sourceforge.net; [EMAIL PROTECTED] Subject: Re: [WiX-users] preprocessor variable $(var.Build)   Friedrich, Oliver wrote: Alright, just found out, where

Re: [WiX-users] preprocessor variable $(var.Build)

2006-11-06 Thread Bob Arnson
Friedrich, Oliver wrote: Alright, just found out, where this variable was set. It is set on the commandline while calling the batch-file to start the compilation of the setup.   The batch-file is called as "Pre-build event command line" in VS2005. The variable "var.Build" is set

Re: [WiX-users] preprocessor variable $(var.Build)

2006-11-06 Thread Lerudjordet, Morten Minge
script and passed when compiling the wxs files to wixobj. morten Message: 6 Date: Mon, 6 Nov 2006 14:20:58 +0100 From: "Friedrich, Oliver" <[EMAIL PROTECTED]> Subject: Re: [WiX-users] preprocessor variable $(var.Build) To: Message-ID: <[EMAIL PROTECTED]> Content-Type: text/pl

Re: [WiX-users] preprocessor variable $(var.Build)

2006-11-06 Thread Friedrich, Oliver
: wix-users@lists.sourceforge.netSubject: Re: [WiX-users] preprocessor variable $(var.Build) Friedrich, Oliver wrote: No, we did not use Votive V2, just plain wxs-files that we added to a simple solution, we did not use Votive V2.Sorry, I'm not understanding. Are you

Re: [WiX-users] preprocessor variable $(var.Build)

2006-11-03 Thread Bob Arnson
Friedrich, Oliver wrote: No, we did not use Votive V2, just plain wxs-files that we added to a simple solution, we did not use Votive V2. Sorry, I'm not understanding. Are you asking how to set the Build variable using Votive? -- sig://boB http://bobs.org

Re: [WiX-users] preprocessor variable $(var.Build)

2006-10-31 Thread Friedrich, Oliver
-users] preprocessor variable $(var.Build) Friedrich, Oliver wrote: That`s the point, this variable is defined nowhere in the source.   We used WiXV2 manually written files added to a blank solution in vs2005, compiled via batch on post-build-action

Re: [WiX-users] preprocessor variable $(var.Build)

2006-10-31 Thread Bob Arnson
Friedrich, Oliver wrote: That`s the point, this variable is defined nowhere in the source.   We used WiXV2 manually written files added to a blank solution in vs2005, compiled via batch on post-build-action.   The error that raises at compile-time is that the preprocessor

Re: [WiX-users] preprocessor variable $(var.Build)

2006-10-30 Thread Friedrich, Oliver
alk to my *shiver* Outlook as soon as I get some spare time... From: Bob Arnson [mailto:[EMAIL PROTECTED] Sent: Tuesday, October 31, 2006 1:52 AMTo: Friedrich, OliverCc: wix-users@lists.sourceforge.netSubject: Re: [WiX-users] preprocessor variable $(var.Build) Friedrich, Ol

Re: [WiX-users] preprocessor variable $(var.Build)

2006-10-30 Thread Bob Arnson
Friedrich, Oliver wrote: One of my problems now is, that we used the pre-processor variable “var.Build” in our setup for finding the final sourcepath of our apps. But votive won`t compile with it used like that: We need more detail to help. What happens? Do you get an

[WiX-users] preprocessor variable $(var.Build)

2006-10-30 Thread Friedrich, Oliver
Again its me,   currently I`m trying to convert our V2 setup to V3 using a votive-project in our solution.   One of my problems now is, that we used the pre-processor variable “var.Build” in our setup for finding the final sourcepath of our apps. But votive won`t compile with it used li