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:contactme...@gmail.com] 
Sent: Thursday, February 03, 2011 2:10 PM
To: wix-users@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-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

------------------------------------------------------------------------------
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-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to