I am executing a cmd file from a Installshield Installscript custom action (this is a Basic MSi installer, not a Suite installer). The cmd file sets 23 windows features, and takes 15\18 minutes. How to speed things up? Here is an example of two of the lines...
%Windir%\system32\Dism /online /Enable-Feature /NoRestart /FeatureName:IIS-WebServerRole
%Windir%\system32\Dism /online /Enable-Feature /NoRestart /FeatureName:IIS-HttpRedirect
Is powershell faster (and are the feature names the same in powershell)?
In either case, cmd\dism or Powershell, will it speed things up if I determine if the feature is already enabled, and thus do not execute the command to enable that feature? If so, how to do this, please give exact example. Thanks.