Classification: Public Amit, Your component " MIMPAMPortalIISConfig " on util:User; Take out the following: CreateUser="no" FailIfExists="no" RemoveOnUninstall="no"
For web app pool add these two properties somewhere...: <Property Id="DOT_NET_VERSION" Secure="yes" Value="v4.0" /> <Property Id="MANAGEDPIPELINEMODE" Secure="yes" Value="Integrated" /> Then add this to your <iis:WebAppPool ManagedPipelineMode="[MANAGEDPIPELINEMODE]" ManagedRuntimeVersion="[DOT_NET_VERSION]" i.e.: <iis:WebAppPool Id="AdminConsoleAppPoolId" Identity="other" ManagedPipelineMode="[MANAGEDPIPELINEMODE]" ManagedRuntimeVersion="[DOT_NET_VERSION]" Name="[WEB_SITE_NAME]" User="WebAppPoolID_User" /> For Website, put this property somewhere: <iis:WebDirProperties Id="WebDirProperties" AnonymousAccess="no" BasicAuthentication="no" WindowsAuthentication="yes" AccessSSL="no" Execute="yes" Read="yes" Script="yes" /> Add this to your iis:WebSite DirProperties="WebDirProperties" I.e.: <iis:WebSite Id="AdminConsoleWebSiteId" AutoStart="yes" DirProperties="WebDirProperties" StartOnInstall="yes" Directory="DIRECTORY_PATH_SERVER" Description="[WEB_SITE_NAME]"> <iis:WebAddress Id="AllUnassigned" Port="[WEB_SITE_PORT]" /> <iis:WebApplication Id="AdminConsoleWebAppId" Name="MYWebApp" WebAppPool="AdminConsoleAppPoolId"> <iis:WebApplicationExtension CheckPath="no" Extension="mvc" Executable="[FXDIR]aspnet_isapi.dll"/> <iis:WebApplicationExtension CheckPath="no" Extension="aspx" Executable="[FXDIR]aspnet_isapi.dll"/> </iis:WebApplication> </iis:WebSite> All together mine looks like this: (don't forget to add a reference to the WIX IIsExtension/UtilExtension DLL's During my install I ask for the webapppool password/username website port/websitename <Property Id="WEB_SITE_NAME" Secure="yes" Value="MYCOMPANY Web Administration"> <Property Id="WEB_SITE_PORT" Secure="yes" Value="12345"> <Property Id="WEBAPPPOOL_PASSWORD" Hidden="yes" Secure="yes"/> <Property Id="WEBAPPPOOL_USERNAME" Secure="yes"> <Property Id="DOT_NET_VERSION" Secure="yes" Value="v4.0" /> <Property Id="MANAGEDPIPELINEMODE" Secure="yes" Value="Integrated" /> <util:User Id="WebAppPoolID_User" Name="[WEBAPPPOOL_USERNAME]" Password="[WEBAPPPOOL_PASSWORD]" /> <Property Id="FXDIR" Value="0"> <RegistrySearch Id="FxInstallPathRegistry" Key="SOFTWARE\Microsoft\NET Framework Setup\NDP\v4\Full" Name="InstallPath" Root="HKLM" Type="raw"/> </Property> <iis:WebDirProperties Id="WebDirProperties" AnonymousAccess="no" BasicAuthentication="no" WindowsAuthentication="yes" AccessSSL="no" Execute="yes" Read="yes" Script="yes" /> <!--Set up the web site for Administrator Console--> <Component Id="cmp_IISConfiguration" Guid="some guid" KeyPath="yes"> <iis:WebAppPool Id="AdminConsoleAppPoolId" Identity="other" ManagedPipelineMode="[MANAGEDPIPELINEMODE]" ManagedRuntimeVersion="[DOT_NET_VERSION]" Name="[WEB_SITE_NAME]" User="WebAppPoolID_User" /> <iis:WebSite Id="AdminConsoleWebSiteId" AutoStart="yes" DirProperties="WebDirProperties" StartOnInstall="yes" Directory="DIRECTORY_PATH_SERVER" Description="[WEB_SITE_NAME]"> <iis:WebAddress Id="AllUnassigned" Port="[WEB_SITE_PORT]" /> <iis:WebApplication Id="AdminConsoleWebAppId" Name="MYWebApp" WebAppPool="AdminConsoleAppPoolId"> <iis:WebApplicationExtension CheckPath="no" Extension="mvc" Executable="[FXDIR]aspnet_isapi.dll"/> <iis:WebApplicationExtension CheckPath="no" Extension="aspx" Executable="[FXDIR]aspnet_isapi.dll"/> </iis:WebApplication> </iis:WebSite> <iis:WebServiceExtension Id="EnableASPNet4Extension" Allow="yes" File="[FXDIR]aspnet_isapi.dll" Group="ASP.NET v4.0.30319" Description="ASP.NET v4.0.30319" UIDeletable="no"/> <iis:WebDir Id="WebDirId" Path="WebDir" DirProperties="WebDirProperties" WebSite="AdminConsoleWebSiteId"/> <RemoveFolder Id="RemoveParentWebFolder" Directory="DIRECTORY_PATH_SERVER" On="uninstall"/> </Component> -----Original Message----- From: Amit Saar [mailto:amits...@microsoft.com] Sent: August-05-14 12:57 PM To: wix-users@lists.sourceforge.net Subject: [WiX-users] Deploying a website with IIS Extension Hi there! Could really use some help on the following, been at it for some time now. I'm extending an existing installer that was built years ago in our product, to deploy a new Asp.Net portal on IIS. I have succeeded in deploying the files using the installer but the component that is supposed to configure IIS runs but has no effect on IIS. Let me emphasize that I'm currently only trying to build an initial installer, which will work on a very specific environment (detailed below). The code section for configuring IIS: <DirectoryRef Id="PAMPortalDir"> <Component Id="MIMPAMPortalIISConfig" Guid="E7A4EF52-69A7-4123-8D6D-B74428D2739B" Win64="yes"> <CreateFolder /> <util:User Id="MIMPAM_AppPool_Account" Domain="[MIMPAM_ACCOUNT_DOMAIN]" Name="[MIMPAM_ACCOUNT_NAME]" Password="[MIMPAM_ACCOUNT_PASSWORD]" CreateUser="no" FailIfExists="no" RemoveOnUninstall="no"> </util:User> <iis:WebAppPool Id="MIMPAM.Web.AppPool" Identity="other" Name="[PAMPortalAppPool]" User="MIMPAM_AppPool_Account"/> <iis:WebSite Id="MIMPAM.Site" Description="[MIMPAMSiteName]" AutoStart="yes" ConfigureIfExists="yes" Directory="PAMPortalDir" StartOnInstall="yes"> <iis:WebAddress Id="MIMPAM.Web.Address" Port="[MIMPAM_PORTAL_PORT]" Header="[MIMPAM_HOSTNAME]"/> <iis:WebApplication Id="PAMPORTAL.Application" Name="MIM Privileged Access Management" WebAppPool="MIMPAM.Web.AppPool" /> </iis:WebSite> </Component> </DirectoryRef> The user in util:User is currently hard coded to the server's admin. Log file includes the following regarding the PAMPortalDir component : MSI (s) (94:80) [09:26:39:887]: Executing op: ComponentRegister(ComponentId={E7A4EF52-69A7-4123-8D6D-B74428D2739B},KeyPath=C:\Program Files\Microsoft Forefront Identity Manager\2010\Privileged Access Management Portal\,State=3,,Disk=1,SharedDllRefCount=0,BinaryType=1) 1: {8EB24D93-91BA-435D-BF88-9339C1C46362} 2: {E7A4EF52-69A7-4123-8D6D-B74428D2739B} 3: C:\Program Files\Microsoft Forefront Identity Manager\2010\Privileged Access Management Portal\ The environment I'm trying to install on includes: Win Server 2008 R2, IIS 7.5 The dev environment includes: Wix 3.5.2519.0 Main questions are: - How can I view what the IIS Extension tried to do? Can I view any log file or see details in the event viewer? - Found this property in the log file: 'Property(C): SKIPCONFIGUREIIS = 1', is It relevant for what I'm trying to do? Changed it to 0 and it had no effect. - Last resort: Can you recommend a guide to compile the IIS Extension source code and debug it? I couldn't find anything useful but running the MSI with logging which doesn't tell me what really happened... Any other tip on understanding what happened and debugging the IIS extension will be great. Huge thanks! Amit. This message has been marked as Public by Steven Ogilvie on August-05-14 2:20:47 PM. The above classification labels were added to the message by TITUS Message Classification. For more information visit www.titus.com. ------------------------------------------------------------------------------ Infragistics Professional Build stunning WinForms apps today! Reboot your WinForms applications with our WinForms controls. Build a bridge from your legacy apps to the future. http://pubads.g.doubleclick.net/gampad/clk?id=153845071&iu=/4140/ostg.clktrk _______________________________________________ WiX-users mailing list WiX-users@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/wix-users