Re: [WiX-users] Setting property values based on Visual Studio build configurations.

2015-04-15 Thread Nir Bar
In your project file add property value:
lt;PropertyGroupgt;
lt;DefineConstants
Condition='$(Configuration)'=='Debug'gt;$(DefineConstants);MyConfig=MyDebugValuelt;/DefineConstantsgt;
lt;DefineConstants
Condition='$(Configuration)'=='Release'gt;$(DefineConstants);MyConfig=MyReleaseValuelt;/DefineConstantsgt;
lt;/PropertyGroupgt;



-
Nir Bar 
Freelance Developer 
Mail: nir@panel-sw.com 
Web: www.panel-sw.com 
   - C++ On Windows, Linux and Embedded Platforms 
   - WiX  InstallShield 
--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Setting-property-values-based-on-Visual-Studio-build-configurations-tp7599969p7599971.html
Sent from the wix-users mailing list archive at Nabble.com.

--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Setting property values based on Visual Studio build configurations.

2015-04-15 Thread Joseph L. Casale
 In your project file add property value:
 lt;PropertyGroupgt;
 lt;DefineConstants
 Condition='$(Configuration)'=='Debug'gt;$(DefineConstants);MyConfig=MyDebugValuelt;/DefineConstantsgt;
 lt;DefineConstants
 Condition='$(Configuration)'=='Release'gt;$(DefineConstants);MyConfig=MyReleaseValuelt;/DefineConstantsgt;
 lt;/PropertyGroupgt;

Hi Nir,
Thanks for the pointer. I gather there is no way within a wxs or wxi file?

Appreciate the help!
jlc
--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Setting property values based on Visual Studio build configurations.

2015-04-15 Thread Nir Bar
Sure there is:
?if $(var.Configuration)==Debug?
?define MyVar=MyDebugVal?
?else?
?define MyVar=MyReleaseVal?
?endif?

See  Using Project References and Variables
http://wixtoolset.org/documentation/manual/v3/votive/votive_project_references.html
  
for more preprocessor variables, and  Preprocessor
http://wixtoolset.org/documentation/manual/v3/overview/preprocessor.html  
on how to use them.



-
Nir Bar 
Freelance Developer 
Mail: nir@panel-sw.com 
Web: www.panel-sw.com 
   - C++ On Windows, Linux and Embedded Platforms 
   - WiX  InstallShield 
--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Setting-property-values-based-on-Visual-Studio-build-configurations-tp7599969p7599984.html
Sent from the wix-users mailing list archive at Nabble.com.

--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


Re: [WiX-users] Setting property values based on Visual Studio build configurations.

2015-04-15 Thread Joseph L. Casale
 Sure there is:
 ?if $(var.Configuration)==Debug?
 ?define MyVar=MyDebugVal?
 ?else?
 ?define MyVar=MyReleaseVal?
 ?endif?

 See  Using Project References and Variables
 http://wixtoolset.org/documentation/manual/v3/votive/votive_project_references.html
   
 for more preprocessor variables, and  Preprocessor
 http://wixtoolset.org/documentation/manual/v3/overview/preprocessor.html  
 on how to use them.

Ugh,
I totally missed the boat on that, much appreciated Nir.
jlc

--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users


[WiX-users] Setting property values based on Visual Studio build configurations.

2015-04-14 Thread Joseph L. Casale
I want to build an msi under debug with a specific set of values (that make 
sense in my dev env)
versus release (which make sense in a prod env). As they are all public, users 
can modify them
via the command line however they all populate default values used in various 
dialogs and it
would be tidier to have them set appropriately for users.

How does one accomplish this?

Thanks,
jlc

--
BPM Camp - Free Virtual Workshop May 6th at 10am PDT/1PM EDT
Develop your own process in accordance with the BPMN 2 standard
Learn Process modeling best practices with Bonita BPM through live exercises
http://www.bonitasoft.com/be-part-of-it/events/bpm-camp-virtual- event?utm_
source=Sourceforge_BPM_Camp_5_6_15utm_medium=emailutm_campaign=VA_SF
___
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users