Thank You Phill, but i now i have a security problem or something like that.
I have made a testinstaller, which installs a simple WPF-application with a 
single mask.
In that installer i implemented the customaction like that:

    <Product Id="*"
             Name="IisActivation"
             Language="1033"
             Version="1.0.0.0"
             Manufacturer="MyManufacturer"
             UpgradeCode="77657357-67b1-48e2-8457-5e4d8fad9155">

       [...]

        <!--<Property Id="INSTALLIISPROP"
                  Value="C:\Windows\System32\dism.exe"></Property>-->
        <Property Id="INSTALLIISPROP"
                  Value="C:\Windows\SysWOW64\dism.exe"></Property>
        <CustomAction Id="InstallIISCA"
                      Return="check"
                      Property="INSTALLIISPROP"
                      Execute="deferred"
                      HideTarget="no"
                      Impersonate="no"
                      ExeCommand="/Online /Enable-Feature 
/featurename:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent"></CustomAction>

        <InstallExecuteSequence>
            <Custom Action="InstallIISCA"
                    After="InstallFiles"/>
        </InstallExecuteSequence>

        <Feature Id="ProductFeature"
                 Title="TestIisActivation"
                 Level="1">
            <ComponentGroupRef Id="ProductComponents" />
        </Feature>
    </Product>

Because i'm testing on a virtual PC with a 64-Bit OS i'm using the dism.exe 
from SysWOW64.
But each time i get that error message in the log:

Error 1722. There is a problem with this Windows Installer package. A program 
run as part of the setup did not finish as expected. Contact your support 
personnel or package vendor.  Action InstallIISCA, location: 
C:\Windows\SysWOW64\dism.exe, command: /Online /Enable-Feature 
/featurename:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent
=== Logging stopped: 21.01.2015  09:26:53 ===

Normally error 1722 means, that i have used the wrong dism.exe.
So i tried it with the dism.exe from System32 but it's the same old song and 
dance.

What's going wrong?
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-tp7598913p7598927.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