BTDF / DeploymentFramework

The Deployment Framework for BizTalk is the most powerful and customizable, yet easy-to-use toolkit for deploying and configuring your BizTalk solutions.
MIT License
53 stars 24 forks source link

update and delete iis artifacts in v5.7 does not seem to work. #449

Open saaffy opened 6 years ago

saaffy commented 6 years ago

I want to be able to undeploy my MSI and let the BTDF delete the virtual dir. Though the setting UndeployAction is set to Delete, undeploying does NOT remove the virtual dir (only the folder /solution1.2.3 on disk) Also, if I then install a newer version of the same solution, I would expect that the still existing virtual dir gets mapped to the new version folder /solution1.2.4). But instead the virtual dir is mapped on the old (removed) folder.

These are my settings ....

<!-- IIS AppPools-->
  <ItemGroup>
    <IISAppPool Include="BiztalkAppPool">
      <DeployAction>Create</DeployAction>
      <DotNetFrameworkVersion>v4.0</DotNetFrameworkVersion>
      <Enable32Bit>false</Enable32Bit>
      <IdentityType>ApplicationPoolIdentity</IdentityType>
      <PipelineMode>Integrated</PipelineMode>
      <UndeployAction>None</UndeployAction>
    </IISAppPool>
  </ItemGroup>

  <ItemGroup>
    <IISApp Include="XXXX.YYYYY">
      <AppPoolName>BiztalkAppPool</AppPoolName>
<Exclusions>*.csproj;Web.Debug.config;Web.Release.config;WcfServiceDescription.xml;obj;Properties</Exclusions>
      <DeployAction>CreateOrUpdate</DeployAction>
      <PhysicalPath>..\XXXX.YYY.PATH</PhysicalPath>
      <SiteName>Default Web Site</SiteName>
      <UndeployAction>Delete</UndeployAction>
      <VirtualPath>/XXXX.YYYYYYYY</VirtualPath>
    </IISApp>
  </ItemGroup>
tfabraham commented 6 years ago

"undeploy my MSI" doesn't make sense. You must execute the undeploy, then uninstall the MSI, then install the new MSI, then execute the deploy. If you are just uninstalling the MSI, then all of the artifacts will remain in BizTalk and IIS. Are you executing the undeploy process before uninstalling the MSI?