Discussion:
[WiX-users] Using pkgmgr to install IIS 7
kim
2011-02-03 22:09:36 UTC
Permalink
Hello,

I am using following custom action to install IIS 7 using .msi if its not
already installed on targeted system. I am getting following errror and my
installation fails. I have used quite a few CA in my msi and all work well.
However for this one I am not able to figure out what the problem could be?
Executing this command directly on cmd prompt works perfect.
Can anyone provide any suggestions as to what am i doing wrong?

Targeted OS: Windows 7 -32 bit

CustomAction Code:
<Property Id="INSTALLIISPROP" Value="[SystemFolder]"></Property>
<CustomAction Id="InstallIISCA" Return="check"
Property="INSTALLIISPROP" Execute="deferred" ExeCommand=" start /w pkgmgr
/iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;
IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HttpRedirect;IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;
IIS-ASP;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-Security;IIS-WindowsAuthentication;
IIS-RequestFiltering;IIS-IPSecurity;IIS-Performance;IIS-HttpCompressionStatic;IIS-WebServerManagementTools;
IIS-ManagementConsole;IIS-ManagementScriptingTools;IIS-ManagementService;WAS-WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI;NetFx3"
</CustomAction>
<InstallExecuteSequence>
<Custom Action="InstallIISCA" Before="InstallFinalize"><![CDATA[NOT
Installed AND IISMAJORVERSION]]> </Custom>
</InstallExecuteSequence>


Error from my log file:
Error 1721. There is a problem with this Windows Installer package. A
program required for this install to complete could not be run. Contact your
support personnel or package vendor. Action: InstallIISCA, location:
[SystemFolder], command: start /w pkgmgr
/iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;

IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HttpRedirect;IIS-ApplicationDevelopment;

IIS-ASPNET;IIS-NetFxExtensibility;IIS-ASP;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-HealthAndDiagnostics;IIS-HttpLogging;

IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-Security;IIS-WindowsAuthentication;

IIS-RequestFiltering;IIS-IPSecurity;IIS-Performance;IIS-HttpCompressionStatic;IIS-WebServerManagementTools;

IIS-ManagementConsole;IIS-ManagementScriptingTools;IIS-ManagementService;WAS-WindowsActivationService;

WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI;NetFx3
--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Using-pkgmgr-to-install-IIS-7-tp5990722p5990722.html
Sent from the wix-users mailing list archive at Nabble.com.
John Robbins
2011-02-03 23:06:49 UTC
Permalink
Hello,

Here's a completely wild and uneducated guest, but I think you might need the ExeCommand attribute to be ExeCommand="cmd /c start /w..."

John
Wintellect
http://www.wintellect.com
+1-877-968-5528


-----Original Message-----
From: kim [mailto:***@gmail.com]
Sent: Thursday, February 03, 2011 2:10 PM
To: wix-***@lists.sourceforge.net
Subject: [WiX-users] Using pkgmgr to install IIS 7


Hello,

I am using following custom action to install IIS 7 using .msi if its not already installed on targeted system. I am getting following errror and my installation fails. I have used quite a few CA in my msi and all work well.
However for this one I am not able to figure out what the problem could be?
Executing this command directly on cmd prompt works perfect.
Can anyone provide any suggestions as to what am i doing wrong?

Targeted OS: Windows 7 -32 bit

CustomAction Code:
<Property Id="INSTALLIISPROP" Value="[SystemFolder]"></Property>
<CustomAction Id="InstallIISCA" Return="check"
Property="INSTALLIISPROP" Execute="deferred" ExeCommand=" start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;
IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HttpRedirect;IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;
IIS-ASP;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-Security;IIS-WindowsAuthentication;
IIS-RequestFiltering;IIS-IPSecurity;IIS-Performance;IIS-HttpCompressionStatic;IIS-WebServerManagementTools;
IIS-ManagementConsole;IIS-ManagementScriptingTools;IIS-ManagementService;WAS-WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI;NetFx3"
</CustomAction>
<InstallExecuteSequence>
<Custom Action="InstallIISCA" Before="InstallFinalize"><![CDATA[NOT
Installed AND IISMAJORVERSION]]> </Custom> </InstallExecuteSequence>


Error from my log file:
Error 1721. There is a problem with this Windows Installer package. A program required for this install to complete could not be run. Contact your support personnel or package vendor. Action: InstallIISCA, location:
[SystemFolder], command: start /w pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;

IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HttpRedirect;IIS-ApplicationDevelopment;

IIS-ASPNET;IIS-NetFxExtensibility;IIS-ASP;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-HealthAndDiagnostics;IIS-HttpLogging;

IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-Security;IIS-WindowsAuthentication;

IIS-RequestFiltering;IIS-IPSecurity;IIS-Performance;IIS-HttpCompressionStatic;IIS-WebServerManagementTools;

IIS-ManagementConsole;IIS-ManagementScriptingTools;IIS-ManagementService;WAS-WindowsActivationService;

WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI;NetFx3
--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Using-pkgmgr-to-install-IIS-7-tp5990722p5990722.html
Sent from the wix-users mailing list archive at Nabble.com.

------------------------------------------------------------------------------
The modern datacenter depends on network connectivity to access resources and provide services. The best practices for maximizing a physical server's connectivity to a physical network are well understood - see how these rules translate into the virtual world?
http://p.sf.net/sfu/oracle-sfdevnlfb
_______________________________________________
WiX-users mailing list
WiX-***@lists.sourceforge.net
ht
kim
2011-02-03 23:45:46 UTC
Permalink
Thanks for you reply John.

I did changed the ExeCommand as you mentioned but still the same errror: Any
more suggestions as how to achieve this. Almost spent a day trying to make
this work!

<Property Id="INSTALLIISPROP" Value="[SystemFolder]"></Property>
<CustomAction Id="InstallIISCA" Return="check"
Property="INSTALLIISPROP" Execute="deferred" ExeCommand="cmd /c start /w
pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;
IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HttpRedirect;IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;IIS-ASP;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-Security;IIS-WindowsAuthentication;IIS-RequestFiltering;IIS-IPSecurity;IIS-Performance;IIS-HttpCompressionStatic;IIS-WebServerManagementTools;IIS-ManagementConsole;IIS-ManagementScriptingTools;IIS-ManagementService;WAS-WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI;NetFx3"></CustomAction>

LOG File error:

Error 1721. There is a problem with this Windows Installer package. A
program required for this install to complete could not be run. Contact your
support personnel or package vendor. Action: InstallIISCA, location:
[SystemFolder], command: cmd /c start /w pkgmgr
/iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HttpRedirect;IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;IIS-ASP;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-Security;IIS-WindowsAuthentication;
IIS-RequestFiltering;IIS-IPSecurity;IIS-Performance;IIS-HttpCompressionStatic;IIS-WebServerManagementTools;IIS-ManagementConsole;IIS-ManagementScriptingTools;IIS-ManagementService;WAS-WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI;NetFx3
MSI (s) (48:94) [16:41:40:565]:
Action ended 16:41:40: InstallFinalize. Return value 3.
--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Using-pkgmgr-to-install-IIS-7-tp5990722p5991007.html
Sent from the wix-users mailing list archive at Nabble.com.
m***@emc.com
2011-02-04 06:48:50 UTC
Permalink
Try to set full paths for cmd and pkgmgr. You can also try to use WiX Quiet Execution Custom Action, it will show output of the command line in the log (to see verbose log from WiX ca set LOGVERBOSE=1 on command line).

Maksim

-----Original Message-----
From: kim [mailto:***@gmail.com]
Sent: Friday, February 04, 2011 2:46 AM
To: wix-***@lists.sourceforge.net
Subject: Re: [WiX-users] Using pkgmgr to install IIS 7


Thanks for you reply John.

I did changed the ExeCommand as you mentioned but still the same errror: Any
more suggestions as how to achieve this. Almost spent a day trying to make
this work!

<Property Id="INSTALLIISPROP" Value="[SystemFolder]"></Property>
<CustomAction Id="InstallIISCA" Return="check"
Property="INSTALLIISPROP" Execute="deferred" ExeCommand="cmd /c start /w
pkgmgr /iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;
IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HttpRedirect;IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;IIS-ASP;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-Security;IIS-WindowsAuthentication;IIS-RequestFiltering;IIS-IPSecurity;IIS-Performance;IIS-HttpCompressionStatic;IIS-WebServerManagementTools;IIS-ManagementConsole;IIS-ManagementScriptingTools;IIS-ManagementService;WAS-WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI;NetFx3"></CustomAction>

LOG File error:

Error 1721. There is a problem with this Windows Installer package. A
program required for this install to complete could not be run. Contact your
support personnel or package vendor. Action: InstallIISCA, location:
[SystemFolder], command: cmd /c start /w pkgmgr
/iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;IIS-HttpRedirect;IIS-ApplicationDevelopment;IIS-ASPNET;IIS-NetFxExtensibility;IIS-ASP;IIS-ISAPIExtensions;IIS-ISAPIFilter;IIS-HealthAndDiagnostics;IIS-HttpLogging;IIS-LoggingLibraries;IIS-RequestMonitor;IIS-HttpTracing;IIS-CustomLogging;IIS-Security;IIS-WindowsAuthentication;
IIS-RequestFiltering;IIS-IPSecurity;IIS-Performance;IIS-HttpCompressionStatic;IIS-WebServerManagementTools;IIS-ManagementConsole;IIS-ManagementScriptingTools;IIS-ManagementService;WAS-WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI;NetFx3
MSI (s) (48:94) [16:41:40:565]:
Action ended 16:41:40: InstallFinalize. Return value 3.
--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Using-pkgmgr-to-install-IIS-7-tp5990722p5991007.html
Sent from the wix-users mailing list archive at Nabble.com.
kim
2011-02-04 20:29:17 UTC
Permalink
Thanks for the reply Maksim. Can you please give me an example of how to
provide full path?

I changed the value for INSTALLIISPROP from [SystemFolder] to
"C:\Windows\System32\pkgmgr.exe".

But it gives error: Operation Failed. A parameter is incorrect.

<Property Id="INSTALLIISPROP"
Value="C:\Windows\System32\pkgmgr.exe"></Property>
<CustomAction Id="InstallIISCA" Return="check" Property="INSTALLIISPROP"
Execute="deferred" Impersonate="yes" ExeCommand="CMD /C start /w pkgmgr
/iu:IIS-WebServerRole;IIS-WebServer;IIS-CommonHttpFeatures;
IIS-StaticContent;IIS-DefaultDocument;IIS-DirectoryBrowsing;IIS-HttpErrors;WAS-WindowsActivationService;WAS-ProcessModel;WAS-NetFxEnvironment;WAS-ConfigurationAPI;NetFx3"></CustomAction>

Please advice.
--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Using-pkgmgr-to-install-IIS-7-tp5990722p5993921.html
Sent from the wix-users mailing list archive at Nabble.com.
kim
2011-02-04 21:35:14 UTC
Permalink
I figured it out!!

Posting the solution in case anyone else needs the same :-)


<Property Id="INSTALLIISPROP"
Value="C:\Windows\System32\dism.exe"></Property>
<CustomAction Id="InstallIISCA" Return="check"
Property="INSTALLIISPROP" Execute="deferred" HideTarget="yes"
Impersonate="yes"
ExeCommand="/Online /Enable-Feature /FeatureName:IIS-WebServerRole
.....(all remaining parameters) />
--
View this message in context: http://windows-installer-xml-wix-toolset.687559.n2.nabble.com/Using-pkgmgr-to-install-IIS-7-tp5990722p5994092.html
Sent from the wix-users mailing list archive at Nabble.com.
Loading...