I have made a bootstrapper project with WiX 3.9.
In this project i install IIS Express and then i activate the IIS features.
Until now i added the Dism.exe from my computer as a resource and activated
the features like that:
<ExePackage Id='IIS_WebserverRole'
DisplayName='Installing IIS: IIS-WebServerRole'
PerMachine='yes'
SourceFile='.\Resources\Dism.exe'
InstallCondition='SetupType="1" OR SetupType="3"'
InstallCommand='/Online /Enable-Feature
/FeatureName:IIS-WebServerRole'>
</ExePackage>
This works fine, but i think it would be better to use the Dism.exe which we
can find in C:\Windows\System32\ on the computer to be installed and not a
resource file from my own computer.
So i tried this:
<ExePackage Id='IIS_WebserverRole'
DisplayName='Installing IIS: IIS-WebServerRole'
PerMachine='yes'
SourceFile='[SystemFolder]Dism.exe'
InstallCondition='SetupType="1" OR SetupType="3"'
InstallCommand='/Online /Enable-Feature
/FeatureName:IIS-WebServerRole'>
</ExePackage>
[SystemFolder] is a Burn standard variable which returns per example
"C:\Windows\System32\".
But this doesn't work.
So i tried the following one.
You can find it in the first answer of this Stackoverflow-article:
Install IIS if not installed yet
<http://stackoverflow.com/questions/24439602/wix-burn-install-iis-if-not-yet-installed>
<ExePackage Id='IIS_WebserverRole'
DisplayName='Installing IIS: IIS-WebServerRole'
PerMachine='yes'
SourceFile='.\Resources\run.bat'
InstallCondition='SetupType="1" OR SetupType="3"'
InstallCommand='Dism.exe /Online /Enable-Feature
/FeatureName:IIS-WebServerRole'>
</ExePackage>
run.bat is a simple batch file which only contains "%*".
But even this doesn't work.
I always get an error in the log file, that the executable file cannot be
executed
What's going wrong?
Can anybody give me a hint, what to do?
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-tp7598913.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
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users