In your project file add property value:
lt;PropertyGroupgt;
lt;DefineConstants
Condition='$(Configuration)'=='Debug'gt;$(DefineConstants);MyConfig=MyDebugValuelt;/DefineConstantsgt;
lt;DefineConstants
You posted:
lt;Variable Name=MyVariable Value=MyValue /
I set bal:Overridable='yes' on any variable I create in the Bundle and
interact with in the bafunctions.dll or mba.
lt;Variable Name=MyVariable Value=MyValue bal:Overridable='yes'/
And since I also read threads about Burn's functionality to
Thanks for the tip, Phil. A couple questions about that:
I assume without bal:Overridable=“yes”, my Variable’s are really constants?
In this particular case, I just need constants. I have to declare them in my
bundle.wxs so I can use them in my .wxl’s that localize my theme.
For example, I
In your project file add property value:
lt;PropertyGroupgt;
lt;DefineConstants
Condition='$(Configuration)'=='Debug'gt;$(DefineConstants);MyConfig=MyDebugValuelt;/DefineConstantsgt;
lt;DefineConstants
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
Can you post the complete code for the extension?
-
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:
My comment about using persisted variables is based on this thread
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Burn-Resume-Installation-Plan-td7579146.html#a7579182
, and posibly others that I may have stumbled across.
I transitioned from using a bafunctions.dll (with Wix 3.7
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
8 matches
Mail list logo