[WiX-users] Problems with the environment variable

2011-07-18 Thread Christoph Goetz
Sorry

-Ursprüngliche Nachricht-
Von: Christoph Goetz [mailto:christoph.go...@giepa.de] 
Gesendet: Montag, 18. Juli 2011 09:42
An: 'General discussion for Windows Installer XML toolset.'
Betreff: Re: [WiX-users] DTE OutputFileName vs OutputName - possible wix
bug?

Hi,
my installation should only start if an environment variable is set.
But my installation start every time? 
I just want to check if the environment is set and not if it is set to an
specific value.

For example:

  

  ?if $(env.testdir)?

Directory Id=TARGETDIR Name=SourceDir
  
 
 Directory Id=ProgramFiles64Folder
Directory Id=INSTALLDIR
   Name=Test / 
  

 ...   

   
Feature Id=ProductFeature 
 Title=test 
 Level=1
 
...

   ?else?
?error Test must be set!?
   ?endif?

Christoph




--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users




--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Problems with the environment variable

2011-07-18 Thread Peter Shirtcliffe
$(...) variables are evaluated at build-time by the preprocessor.
For a run-time check, you want something like:

Condition Message=Test must be set.![CDATA[ 
[%testdir]   
]]/Condition

http://msdn.microsoft.com/en-us/library/aa368012%28v=VS.85%29.aspx


-Original Message-
From: Christoph Goetz [mailto:christoph.go...@giepa.de] 
Sent: 18 July 2011 08:45
To: 'General discussion for Windows Installer XML toolset.'
Subject: [WiX-users] Problems with the environment variable

Sorry

-Ursprüngliche Nachricht-
Von: Christoph Goetz [mailto:christoph.go...@giepa.de] 
Gesendet: Montag, 18. Juli 2011 09:42
An: 'General discussion for Windows Installer XML toolset.'
Betreff: Re: [WiX-users] DTE OutputFileName vs OutputName - possible wix
bug?

Hi,
my installation should only start if an environment variable is set.
But my installation start every time? 
I just want to check if the environment is set and not if it is set to an
specific value.

For example:

  

  ?if $(env.testdir)?

Directory Id=TARGETDIR Name=SourceDir
  
 
 Directory Id=ProgramFiles64Folder
Directory Id=INSTALLDIR
   Name=Test / 
  

 ...   

   
Feature Id=ProductFeature 
 Title=test 
 Level=1
 
...

   ?else?
?error Test must be set!?
   ?endif?

Christoph




--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users




-
-
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires 
that you delete it without acting upon or copying any of its contents, and we 
further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.  
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6 7DY, 
UK.


--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Problems with the environment variable

2011-07-18 Thread Christoph Goetz
Thanks,
does your Condition not require that testdir exists?
Because it does not. Only after another installation testdir exist.
That means that only then the installation should start.
Christoph

-Ursprüngliche Nachricht-
Von: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com] 
Gesendet: Montag, 18. Juli 2011 10:41
An: General discussion for Windows Installer XML toolset.
Betreff: Re: [WiX-users] Problems with the environment variable

$(...) variables are evaluated at build-time by the preprocessor.
For a run-time check, you want something like:

Condition Message=Test must be set.![CDATA[ 
[%testdir]   
]]/Condition

http://msdn.microsoft.com/en-us/library/aa368012%28v=VS.85%29.aspx


-Original Message-
From: Christoph Goetz [mailto:christoph.go...@giepa.de] 
Sent: 18 July 2011 08:45
To: 'General discussion for Windows Installer XML toolset.'
Subject: [WiX-users] Problems with the environment variable

Sorry

-Ursprüngliche Nachricht-
Von: Christoph Goetz [mailto:christoph.go...@giepa.de] 
Gesendet: Montag, 18. Juli 2011 09:42
An: 'General discussion for Windows Installer XML toolset.'
Betreff: Re: [WiX-users] DTE OutputFileName vs OutputName - possible wix
bug?

Hi,
my installation should only start if an environment variable is set.
But my installation start every time? 
I just want to check if the environment is set and not if it is set to an
specific value.

For example:

  

  ?if $(env.testdir)?

Directory Id=TARGETDIR Name=SourceDir
  
 
 Directory Id=ProgramFiles64Folder
Directory Id=INSTALLDIR
   Name=Test / 
  

 ...   

   
Feature Id=ProductFeature 
 Title=test 
 Level=1
 
...

   ?else?
?error Test must be set!?
   ?endif?

Christoph




--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users





-
-
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires
that you delete it without acting upon or copying any of its contents, and
we further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6
7DY, UK.



--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users




--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Problems with the environment variable

2011-07-18 Thread Peter Shirtcliffe
That is what it tests. I'm not entirely sure what you're trying to do
otherwise.

-Original Message-
From: Christoph Goetz [mailto:christoph.go...@giepa.de] 
Sent: 18 July 2011 11:08
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] Problems with the environment variable

Thanks,
does your Condition not require that testdir exists?
Because it does not. Only after another installation testdir exist.
That means that only then the installation should start.
Christoph

-Ursprüngliche Nachricht-
Von: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com] 
Gesendet: Montag, 18. Juli 2011 10:41
An: General discussion for Windows Installer XML toolset.
Betreff: Re: [WiX-users] Problems with the environment variable

$(...) variables are evaluated at build-time by the preprocessor.
For a run-time check, you want something like:

Condition Message=Test must be set.![CDATA[ 
[%testdir]   
]]/Condition

http://msdn.microsoft.com/en-us/library/aa368012%28v=VS.85%29.aspx


-Original Message-
From: Christoph Goetz [mailto:christoph.go...@giepa.de] 
Sent: 18 July 2011 08:45
To: 'General discussion for Windows Installer XML toolset.'
Subject: [WiX-users] Problems with the environment variable

Sorry

-Ursprüngliche Nachricht-
Von: Christoph Goetz [mailto:christoph.go...@giepa.de] 
Gesendet: Montag, 18. Juli 2011 09:42
An: 'General discussion for Windows Installer XML toolset.'
Betreff: Re: [WiX-users] DTE OutputFileName vs OutputName - possible wix
bug?

Hi,
my installation should only start if an environment variable is set.
But my installation start every time? 
I just want to check if the environment is set and not if it is set to an
specific value.

For example:

  

  ?if $(env.testdir)?

Directory Id=TARGETDIR Name=SourceDir
  
 
 Directory Id=ProgramFiles64Folder
Directory Id=INSTALLDIR
   Name=Test / 
  

 ...   

   
Feature Id=ProductFeature 
 Title=test 
 Level=1
 
...

   ?else?
?error Test must be set!?
   ?endif?

Christoph




--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users





-
-
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires
that you delete it without acting upon or copying any of its contents, and
we further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6
7DY, UK.



--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users




-
-
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas

Re: [WiX-users] Problems with the environment variable

2011-07-18 Thread Christoph Goetz
I tried it your way, but nothing happens.
The installation just runs even if [%testdir] doesn´t exist.
Where does the condition has to stay in the wix code?

-Ursprüngliche Nachricht-
Von: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com] 
Gesendet: Montag, 18. Juli 2011 12:18
An: General discussion for Windows Installer XML toolset.
Betreff: Re: [WiX-users] Problems with the environment variable

That is what it tests. I'm not entirely sure what you're trying to do
otherwise.

-Original Message-
From: Christoph Goetz [mailto:christoph.go...@giepa.de] 
Sent: 18 July 2011 11:08
To: 'General discussion for Windows Installer XML toolset.'
Subject: Re: [WiX-users] Problems with the environment variable

Thanks,
does your Condition not require that testdir exists?
Because it does not. Only after another installation testdir exist.
That means that only then the installation should start.
Christoph

-Ursprüngliche Nachricht-
Von: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com] 
Gesendet: Montag, 18. Juli 2011 10:41
An: General discussion for Windows Installer XML toolset.
Betreff: Re: [WiX-users] Problems with the environment variable

$(...) variables are evaluated at build-time by the preprocessor.
For a run-time check, you want something like:

Condition Message=Test must be set.![CDATA[ 
[%testdir]   
]]/Condition

http://msdn.microsoft.com/en-us/library/aa368012%28v=VS.85%29.aspx


-Original Message-
From: Christoph Goetz [mailto:christoph.go...@giepa.de] 
Sent: 18 July 2011 08:45
To: 'General discussion for Windows Installer XML toolset.'
Subject: [WiX-users] Problems with the environment variable

Sorry

-Ursprüngliche Nachricht-
Von: Christoph Goetz [mailto:christoph.go...@giepa.de] 
Gesendet: Montag, 18. Juli 2011 09:42
An: 'General discussion for Windows Installer XML toolset.'
Betreff: Re: [WiX-users] DTE OutputFileName vs OutputName - possible wix
bug?

Hi,
my installation should only start if an environment variable is set.
But my installation start every time? 
I just want to check if the environment is set and not if it is set to an
specific value.

For example:

  

  ?if $(env.testdir)?

Directory Id=TARGETDIR Name=SourceDir
  
 
 Directory Id=ProgramFiles64Folder
Directory Id=INSTALLDIR
   Name=Test / 
  

 ...   

   
Feature Id=ProductFeature 
 Title=test 
 Level=1
 
...

   ?else?
?error Test must be set!?
   ?endif?

Christoph




--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users





-
-
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
SDL PLC confidential, all rights reserved.
If you are not the intended recipient of this mail SDL requests and requires
that you delete it without acting upon or copying any of its contents, and
we further request that you advise us.
SDL PLC is a public limited company registered in England and Wales.
Registered number: 02675207.
Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6
7DY, UK.



--
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users





-
-
AppSumo Presents a FREE Video for the SourceForge Community by Eric 
Ries, the creator of the Lean Startup Methodology on Lean Startup 
Secrets Revealed. This video shows you how to validate your ideas, 
optimize your ideas and identify your business strategy.
http://p.sf.net/sfu/appsumosfdev2dev

Re: [WiX-users] Problems with the environment variable

2011-07-18 Thread Tobias S
Interesting approach even checking against a environment property in a
LaunchCondition. Didn't know Windows Installer can do that by default
with using %.

Actually the code sample gives me an
ICE03: Bad conditional string; Table: LaunchCondition, Column:
Condition, Key(s): [%testdir]  

This I could fix with removing 2 brackets:
Condition Message=Test must be set.
  ![CDATA[%testdir  ]]
/Condition

Afterwards the installer as expected. Runs when set
testdir=c:\someTestDir and aborts if launchCon is not fulfilled.

Regarding parent and child elements have a look at
http://wix.sourceforge.net/manual-wix3/wix_xsd_condition.htm



2011/7/18 Christoph Goetz christoph.go...@giepa.de:
 I tried it your way, but nothing happens.
 The installation just runs even if [%testdir] doesn´t exist.
 Where does the condition has to stay in the wix code?

 -Ursprüngliche Nachricht-
 Von: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com]
 Gesendet: Montag, 18. Juli 2011 12:18
 An: General discussion for Windows Installer XML toolset.
 Betreff: Re: [WiX-users] Problems with the environment variable

 That is what it tests. I'm not entirely sure what you're trying to do
 otherwise.

 -Original Message-
 From: Christoph Goetz [mailto:christoph.go...@giepa.de]
 Sent: 18 July 2011 11:08
 To: 'General discussion for Windows Installer XML toolset.'
 Subject: Re: [WiX-users] Problems with the environment variable

 Thanks,
 does your Condition not require that testdir exists?
 Because it does not. Only after another installation testdir exist.
 That means that only then the installation should start.
 Christoph

 -Ursprüngliche Nachricht-
 Von: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com]
 Gesendet: Montag, 18. Juli 2011 10:41
 An: General discussion for Windows Installer XML toolset.
 Betreff: Re: [WiX-users] Problems with the environment variable

 $(...) variables are evaluated at build-time by the preprocessor.
 For a run-time check, you want something like:

 Condition Message=Test must be set.![CDATA[
    [%testdir]  
 ]]/Condition

 http://msdn.microsoft.com/en-us/library/aa368012%28v=VS.85%29.aspx


 -Original Message-
 From: Christoph Goetz [mailto:christoph.go...@giepa.de]
 Sent: 18 July 2011 08:45
 To: 'General discussion for Windows Installer XML toolset.'
 Subject: [WiX-users] Problems with the environment variable

 Sorry

 -Ursprüngliche Nachricht-
 Von: Christoph Goetz [mailto:christoph.go...@giepa.de]
 Gesendet: Montag, 18. Juli 2011 09:42
 An: 'General discussion for Windows Installer XML toolset.'
 Betreff: Re: [WiX-users] DTE OutputFileName vs OutputName - possible wix
 bug?

 Hi,
 my installation should only start if an environment variable is set.
 But my installation start every time?
 I just want to check if the environment is set and not if it is set to an
 specific value.

 For example:



  ?if $(env.testdir)?

    Directory Id=TARGETDIR Name=SourceDir


     Directory Id=ProgramFiles64Folder
        Directory Id=INSTALLDIR
                   Name=Test /


  ...


                Feature Id=ProductFeature
             Title=test
             Level=1

 ...

   ?else?
    ?error Test must be set!?
   ?endif?

 Christoph



 
 --
 AppSumo Presents a FREE Video for the SourceForge Community by Eric
 Ries, the creator of the Lean Startup Methodology on Lean Startup
 Secrets Revealed. This video shows you how to validate your ideas,
 optimize your ideas and identify your business strategy.
 http://p.sf.net/sfu/appsumosfdev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users




 
 -
 -
 AppSumo Presents a FREE Video for the SourceForge Community by Eric
 Ries, the creator of the Lean Startup Methodology on Lean Startup
 Secrets Revealed. This video shows you how to validate your ideas,
 optimize your ideas and identify your business strategy.
 http://p.sf.net/sfu/appsumosfdev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users
 SDL PLC confidential, all rights reserved.
 If you are not the intended recipient of this mail SDL requests and requires
 that you delete it without acting upon or copying any of its contents, and
 we further request that you advise us.
 SDL PLC is a public limited company registered in England and Wales.
 Registered number: 02675207.
 Registered address: Globe House, Clivemont Road, Maidenhead, Berkshire SL6
 7DY, UK.


 
 --
 AppSumo Presents a FREE Video for the SourceForge Community by Eric
 Ries, the creator of the Lean Startup Methodology on Lean Startup
 Secrets Revealed. This video

Re: [WiX-users] Problems with the environment variable

2011-07-18 Thread Christoph Goetz
Oh thanks,
it was just an input error.
Damn.


-Ursprüngliche Nachricht-
Von: Tobias S [mailto:tobias.s1...@gmail.com] 
Gesendet: Montag, 18. Juli 2011 15:45
An: General discussion for Windows Installer XML toolset.
Betreff: Re: [WiX-users] Problems with the environment variable

Interesting approach even checking against a environment property in a
LaunchCondition. Didn't know Windows Installer can do that by default
with using %.

Actually the code sample gives me an
ICE03: Bad conditional string; Table: LaunchCondition, Column:
Condition, Key(s): [%testdir]  

This I could fix with removing 2 brackets:
Condition Message=Test must be set.
  ![CDATA[%testdir  ]]
/Condition

Afterwards the installer as expected. Runs when set
testdir=c:\someTestDir and aborts if launchCon is not fulfilled.

Regarding parent and child elements have a look at
http://wix.sourceforge.net/manual-wix3/wix_xsd_condition.htm



2011/7/18 Christoph Goetz christoph.go...@giepa.de:
 I tried it your way, but nothing happens.
 The installation just runs even if [%testdir] doesn´t exist.
 Where does the condition has to stay in the wix code?

 -Ursprüngliche Nachricht-
 Von: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com]
 Gesendet: Montag, 18. Juli 2011 12:18
 An: General discussion for Windows Installer XML toolset.
 Betreff: Re: [WiX-users] Problems with the environment variable

 That is what it tests. I'm not entirely sure what you're trying to do
 otherwise.

 -Original Message-
 From: Christoph Goetz [mailto:christoph.go...@giepa.de]
 Sent: 18 July 2011 11:08
 To: 'General discussion for Windows Installer XML toolset.'
 Subject: Re: [WiX-users] Problems with the environment variable

 Thanks,
 does your Condition not require that testdir exists?
 Because it does not. Only after another installation testdir exist.
 That means that only then the installation should start.
 Christoph

 -Ursprüngliche Nachricht-
 Von: Peter Shirtcliffe [mailto:pshirtcli...@sdl.com]
 Gesendet: Montag, 18. Juli 2011 10:41
 An: General discussion for Windows Installer XML toolset.
 Betreff: Re: [WiX-users] Problems with the environment variable

 $(...) variables are evaluated at build-time by the preprocessor.
 For a run-time check, you want something like:

 Condition Message=Test must be set.![CDATA[
    [%testdir]  
 ]]/Condition

 http://msdn.microsoft.com/en-us/library/aa368012%28v=VS.85%29.aspx


 -Original Message-
 From: Christoph Goetz [mailto:christoph.go...@giepa.de]
 Sent: 18 July 2011 08:45
 To: 'General discussion for Windows Installer XML toolset.'
 Subject: [WiX-users] Problems with the environment variable

 Sorry

 -Ursprüngliche Nachricht-
 Von: Christoph Goetz [mailto:christoph.go...@giepa.de]
 Gesendet: Montag, 18. Juli 2011 09:42
 An: 'General discussion for Windows Installer XML toolset.'
 Betreff: Re: [WiX-users] DTE OutputFileName vs OutputName - possible wix
 bug?

 Hi,
 my installation should only start if an environment variable is set.
 But my installation start every time?
 I just want to check if the environment is set and not if it is set to an
 specific value.

 For example:



  ?if $(env.testdir)?

    Directory Id=TARGETDIR Name=SourceDir


     Directory Id=ProgramFiles64Folder
        Directory Id=INSTALLDIR
                   Name=Test /


  ...


                Feature Id=ProductFeature
             Title=test
             Level=1

 ...

   ?else?
    ?error Test must be set!?
   ?endif?

 Christoph





 --
 AppSumo Presents a FREE Video for the SourceForge Community by Eric
 Ries, the creator of the Lean Startup Methodology on Lean Startup
 Secrets Revealed. This video shows you how to validate your ideas,
 optimize your ideas and identify your business strategy.
 http://p.sf.net/sfu/appsumosfdev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users






 -
 -
 AppSumo Presents a FREE Video for the SourceForge Community by Eric
 Ries, the creator of the Lean Startup Methodology on Lean Startup
 Secrets Revealed. This video shows you how to validate your ideas,
 optimize your ideas and identify your business strategy.
 http://p.sf.net/sfu/appsumosfdev2dev
 ___
 WiX-users mailing list
 WiX-users@lists.sourceforge.net
 https://lists.sourceforge.net/lists/listinfo/wix-users
 SDL PLC confidential, all rights reserved.
 If you are not the intended recipient of this mail SDL requests and
requires
 that you delete it without acting upon or copying any of its contents, and
 we further request that you advise us.
 SDL PLC is a public limited company registered in England and Wales.
 Registered number: 02675207.
 Registered address: Globe House, Clivemont