Sorry Phill, i was a little bit misleaded by that answer from Harbinder Singh 
in Stackoverflow:

http://stackoverflow.com/questions/24439602/wix-burn-install-iis-if-not-yet-installed/24491306#24491306

Now i found it out.
The ExeCommand of my CustomAction must look like that:

        <CustomAction Id="InstallIISCA"
                      Return="check"
                      Property="INSTALLIISPROP"
                      Execute="deferred"
                      HideTarget="no"
                      Impersonate="no"
                      ExeCommand="/Online /Enable-Feature 
/featurename:IIS-WebServerRole /featurename:IIS-WebServer 
/featurename:IIS-CommonHttpFeatures 
/featurename:IIS-StaticContent"></CustomAction>

One question left:
When i make different MSI packages for the different OS- and OS-Bit-versions is 
it possible to create a MSI package which install no files and just executes 
the CustomAction?
Thanks in advance!





--
View this message in context: 
http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/How-to-use-dism-exe-in-WiX-ExePackage-for-IIS-feature-activation-tp7598913p7598928.html
Sent from the wix-users mailing list archive at Nabble.com.
------------------------------------------------------------------------------
New Year. New Location. New Benefits. New Data Center in Ashburn, VA.
GigeNET is offering a free month of service with a new server in Ashburn.
Choose from 2 high performing configs, both with 100TB of bandwidth.
Higher redundancy.Lower latency.Increased capacity.Completely compliant.
http://p.sf.net/sfu/gigenet
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to