Hi Jacob,

I think using XSLT we can skip unwanted elements while running HEAT.EXE
command in that case we will need to build project for each of the
Environment by giving XSLT Template as parameter to Heat.exe. If I am wrong
please correct me. In that case we will need to create four MSI one for each
Environment.

But I want all the elements to be part of MSI package and once we have
"project.MSI" package ,we would like give on command line statement as
Project.MSI -I ENVPROPERTY="DEV". 

I have come across some conditional examples on search like below please let
me know if this is possible.

  <?if $(env.WIXENV) = TEST ?>
            <Component Id="cmp500007960E1EF7499A48186BC46688BF"
Directory="dir572C565E70B3AEE6F0C29D3EE9056E9B"
Guid="{DE230102-74DE-4184-827A-F3044D293FFC}">
                <File Id="fil5C02599F3F58049858209DAC8CDD2935" KeyPath="yes"
Source="C:\Workspaces\Chatra\Website\CopyConfigFile\App_Config\Deployment.TestBuild.config.xml"
/>
            </Component>
          <?endif ?>

Creating some variable or Property like WIXENV in WIX project and passing
some value(TEST,PROD,UAT,DEV)  to it  through command line ? if condition is
TRUE that Element will be part of deployed folder else it will skipped.
Please let me know this can be done or not .If possible can you throw some
light on it.



--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/one-MSI-Installer-for-all-Environments-as-single-a-package-tp7584156p7584189.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
Symantec Endpoint Protection 12 positioned as A LEADER in The Forrester  
Wave(TM): Endpoint Security, Q1 2013 and "remains a good choice" in the  
endpoint security space. For insight on selecting the right partner to 
tackle endpoint security challenges, access the full report. 
http://p.sf.net/sfu/symantec-dev2dev
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to