wix - Test for Windows Features -
i have installer runs customaction runs embedded powershell script test installed status of various required windows features. works correctly terribly slow complete.
is there alternative method test such features? expect there along lines of registry keys each feature , sub-feature have not found documentation on subject.
in 1 of installation projects used dism.exe enable required windows features.
for example, enabling asp.net in iis 8 done following custom action:
<!-- 32-bit edition of windows knows find dism.exe --> <property id="dismexepath" value="dism.exe" /> <!-- 64-bit edition of windows requires workaround proper dism.exe version --> <setproperty id="dismexepath" value="[windowsfolder]sysnative\dism.exe" after="appsearch">versionnt64</setproperty> <!-- , ca job (with of [quiet execution ca][2]) --> <customaction id="setforenableaspnetiis8" property="enableaspnetiis8" value=""[dismexepath]" /norestart /quiet /online /enable-feature /featurename:iis-applicationdevelopment /featurename:iis-aspnet45 /featurename:iis-netfxextensibility45 /featurename:netfx4extended-aspnet45 /featurename:iis-isapiextensions /featurename:iis-isapifilter" /> <customaction id="enableaspnetiis8" binarykey="wixca" dllentry="caquietexec" execute="deferred" return="check"/>
this doesn't seem practice, worked project.
Comments
Post a Comment