I'm having an issue and have not been able to find a reason or a
solution. I have included my .wxs file excerpt below. I am creating a
web app ppol, and a website that is really basic. Eventually, the plan
is to have the project able to create multi-instances of the project (ie
I want to be able to install multiple instances of the same website for
different clients on a single webserver). Currently, the project
installs fine, but when I run the installer again and "remove" the
project, under IIS, the website and application pool are not being
removed for the IIS manager.
I would appreciate any insight on whats causing this problem.
Cheers,
Shawn
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<!-- Create the location of the verson virtual directory
files for the website integration-->
<Directory Id="SHAREDCOMPONENTDIR" Name="SharedFolder">
<Directory Id="SHAREDCOMPONENTPRODUCT"
Name="ProjectShares">
<Directory Id="SHAREDCOMPONENTVERSION"
Name="v1.0">
</Directory>
</Directory>
</Directory>
<!-- Create the individual client configurations-->
<Directory Id="INSTALLLOCATION"
Name="ProjectInstallFolder">
<Directory Id="CLIENTDIRECTORY">
<Component Id="WebsiteComponent"
Guid="334eacca-4b28-4ccb-858c-2ab30cb23bfd" KeyPath="yes" >
<iis:WebSite
Description="Project_[CLIENTNAME]" Id="Website"
Directory="CLIENTDIRECTORY" DirProperties="WebProp1"
WebApplication="ADFSApplication" >
<iis:WebAddress Id="WebAddress"
Header="[HOSTHEADER].mycompany.com" Port="80" />
<iis:WebVirtualDir Id="SharedFiles"
Alias="bin" WebApplication="ProjectApplication"
Directory="SHAREDCOMPONENTVERSION" />
</iis:WebSite>
</Component>
<Component Id="DefaultPageComponent" Guid="*">
<File Id="DefaultASPXFile"
Source="C:\Perforce\MyWorkingCopy\Default.aspx" Vital="yes"/>
</Component>
<Component Id="GlobalSettingsComponent"
Guid="*">
<File Id="GlobalASAXFile"
Source="C:\Perforce\MyWorkingCopy\Global.asax" Vital="yes"/>
</Component>
<Component Id="ClientWebConfigComponent"
Guid="*">
<File Id='WebConfigFile' Name='web.config'
Source='C:\ Perforce\MyWorkingCopy \web.config' Vital='yes'
KeyPath='yes' />
<util:XmlFile
Id='XmlSettingsFederationServer' File='[CLIENTDIRECTORY]web.config'
Action='setValue'
Value='[MODIFICATIONELEMENT]'
ElementPath='//configuration/system.web/elementToBModded' Sequence='1'
/>
</Component>
<!-- Create a new Application Pool for each
client-->
<Component Id='ClientApplicationPoolComponent'
Guid='f00ebf23-cc8b-4309-8c77-57ec32d944aa' KeyPath='yes'>
<iis:WebAppPool Id='ClientApplicationPool'
Name='AppPool_[CLIENTNAME]' Identity='networkService' />
</Component>
</Directory>
</Directory>
</Directory>
</Directory>
<iis:WebDirProperties Id="WebProp1" Read="yes" Write="yes" Script="yes"
Execute="no"
AnonymousAccess="yes" LogVisits="yes"
Index="yes" DefaultDocuments="Default.aspx" />
<Feature Id="ProductFeature" Title="ProductFeat" Level="1" >
<!-- TODO: Remove the comments around this ComponentRef
element and the Component above in order to add resources to this
installer. -->
<ComponentRef Id="WebsiteComponent" />
<ComponentRef Id="ClientApplicationPoolComponent"/>
<ComponentRef Id="DefaultPageComponent" />
<ComponentRef Id="GlobalSettingsComponent" />
<ComponentRef Id="ClientWebConfigComponent" />
</Feature>
-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
WiX-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-users