TFS 2010 Team Build - Deployment - Installer Target - Deleting *.* C:\

Topics: Server Deployment
Jul 25, 2012 at 5:57 PM

We are trying to use the Deployment Framework for BizTalk (BTDF) which uses BizTalkDeploymentFramework.WiXSetup.targets, when we use the target name of "installer" the deployment from BizTalk actually does a *.* delete on all of the file from the root C:\ directory.

 

It hoses a machine as it has a UAC prompt we have to accept.

 

Here's the log file from the Wix Target's the are executing.

 

Why would using the "installer" start deleting files.

 

<Project xmlns="http://schemas.microsoft.com/developer/msbuild/2003" DefaultTargets="Installer">

<PropertyGroup>

   <ObjDir>obj\$(Configuration)</ObjDir>

   <RedistDir>$(ObjDir)\redist</RedistDir>

</PropertyGroup>

 

 

Project "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\HelloWorld.Deployment.btdfproj" (default targets):

 

Target SetWinVer:

   Running on Windows V61

   Detected IIS 7

   Detected 64-bit OS

Target GetSoftwarePaths:

   Using .NET Framework Install Path 'C:\Windows\Microsoft.NET\Framework\v2.0.50727'.

   Using BizTalk Install Path 'C:\Program Files (x86)\Microsoft BizTalk Server 2010\'.

   Using Deployment Framework Install Path 'C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\'.

   Using Deployment Framework Tools Path 'C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\DeployTools'.

Target InitializeAppName:

   BizTalk Application Name is HelloWorld Target Redist:

   Directory "obj\Server\redist" doesn't exist. Skipping.

   Creating directory "obj\Server\redist".

   Creating directory "obj\Server\redist\Deployment\Framework".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\BizTalkDeploymentFramework.targets" to "obj\Server\redist\Deployment\Framework\BizTalkDeploymentFramework.targets".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\BizTalkDeploymentFramework.WiXSetup.targets" to "obj\Server\redist\Deployment\Framework\BizTalkDeploymentFramework.WiXSetup.targets".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\CopyDeployResults.msbuild" to "obj\Server\redist\Deployment\Framework\CopyDeployResults.msbuild".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\DeploymentFramework.BuildTasks.dll" to "obj\Server\redist\Deployment\Framework\DeploymentFramework.BuildTasks.dll".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\Microsoft.Sdc.Common.tasks" to "obj\Server\redist\Deployment\Framework\Microsoft.Sdc.Common.tasks".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\Microsoft.Sdc.Tasks.dll" to "obj\Server\redist\Deployment\Framework\Microsoft.Sdc.Tasks.dll".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\ServerDeploy.bat" to "obj\Server\redist\Deployment\Framework\ServerDeploy.bat".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\ServerDeployWizard.bat" to "obj\Server\redist\Deployment\Framework\ServerDeployWizard.bat".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\ServerDeployWizardMSI.bat" to "obj\Server\redist\Deployment\Framework\ServerDeployWizardMSI.bat".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\ServerRedeploy.bat" to "obj\Server\redist\Deployment\Framework\ServerRedeploy.bat".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\ServerRedeployWizard.bat" to "obj\Server\redist\Deployment\Framework\ServerRedeployWizard.bat".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\ServerUnDeploy.bat" to "obj\Server\redist\Deployment\Framework\ServerUnDeploy.bat".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\ServerUnDeployWizard.bat" to "obj\Server\redist\Deployment\Framework\ServerUnDeployWizard.bat".

   Creating directory "obj\Server\redist\Deployment\Framework\DeployTools".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\DeployTools\adapterXPaths.txt" to "obj\Server\redist\Deployment\Framework\DeployTools\adapterXPaths.txt".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\DeployTools\BounceBizTalkHost.vbs" to "obj\Server\redist\Deployment\Framework\DeployTools\BounceBizTalkHost.vbs".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\DeployTools\cscript64.exe" to "obj\Server\redist\Deployment\Framework\DeployTools\cscript64.exe".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\DeployTools\DeployBTRules.exe" to "obj\Server\redist\Deployment\Framework\DeployTools\DeployBTRules.exe".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\DeployTools\DeployBTRules.exe.config" to "obj\Server\redist\Deployment\Framework\DeployTools\DeployBTRules.exe.config".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\DeployTools\ElementTunnel.exe" to "obj\Server\redist\Deployment\Framework\DeployTools\ElementTunnel.exe".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\DeployTools\EnvironmentSettingsExporter.exe" to "obj\Server\redist\Deployment\Framework\DeployTools\EnvironmentSettingsExporter.exe".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\DeployTools\ExportBamDefinitionXml.exe" to "obj\Server\redist\Deployment\Framework\DeployTools\ExportBamDefinitionXml.exe".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\DeployTools\GacUtil.exe" to "obj\Server\redist\Deployment\Framework\DeployTools\GacUtil.exe".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\DeployTools\GacUtil.exe.config" to "obj\Server\redist\Deployment\Framework\DeployTools\GacUtil.exe.config".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\DeployTools\GacUtlRC.dll" to "obj\Server\redist\Deployment\Framework\DeployTools\GacUtlRC.dll".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\DeployTools\log4net.dll" to "obj\Server\redist\Deployment\Framework\DeployTools\log4net.dll".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\DeployTools\log4net.Ext.Serializable.dll" to "obj\Server\redist\Deployment\Framework\DeployTools\log4net.Ext.Serializable.dll".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\DeployTools\SetEnvUI.exe" to "obj\Server\redist\Deployment\Framework\DeployTools\SetEnvUI.exe".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\DeployTools\SetEnvUIConfig.xsd" to "obj\Server\redist\Deployment\Framework\DeployTools\SetEnvUIConfig.xsd".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\DeployTools\SetPackageIdentity.vbs" to "obj\Server\redist\Deployment\Framework\DeployTools\SetPackageIdentity.vbs".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\DeployTools\SSOSettingsEditor.exe" to "obj\Server\redist\Deployment\Framework\DeployTools\SSOSettingsEditor.exe".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\DeployTools\SSOSettingsFileImport.exe" to "obj\Server\redist\Deployment\Framework\DeployTools\SSOSettingsFileImport.exe".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\DeployTools\SSOSettingsFileReader.dll" to "obj\Server\redist\Deployment\Framework\DeployTools\SSOSettingsFileReader.dll".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\DeployTools\StopBizTalkHost.vbs" to "obj\Server\redist\Deployment\Framework\DeployTools\StopBizTalkHost.vbs".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\DeployTools\UacElevate.exe" to "obj\Server\redist\Deployment\Framework\DeployTools\UacElevate.exe".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\DeployTools\WriteRegValue.vbs" to "obj\Server\redist\Deployment\Framework\DeployTools\WriteRegValue.vbs".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\DeployTools\XmlPreprocess.exe" to "obj\Server\redist\Deployment\Framework\DeployTools\XmlPreprocess.exe".

   Copying file from "Framework\BizTalkDeploymentFramework.targets" to "obj\Server\redist\Deployment\Framework\BizTalkDeploymentFramework.targets".

   Copying file from "Framework\BizTalkDeploymentFramework.WiXSetup.targets" to "obj\Server\redist\Deployment\Framework\BizTalkDeploymentFramework.WiXSetup.targets".

   Copying file from "Framework\CopyDeployResults.msbuild" to "obj\Server\redist\Deployment\Framework\CopyDeployResults.msbuild".

   Copying file from "Framework\DeploymentFramework.BuildTasks.dll" to "obj\Server\redist\Deployment\Framework\DeploymentFramework.BuildTasks.dll".

   Copying file from "Framework\Microsoft.Sdc.Common.tasks" to "obj\Server\redist\Deployment\Framework\Microsoft.Sdc.Common.tasks".

   Copying file from "Framework\Microsoft.Sdc.Tasks.dll" to "obj\Server\redist\Deployment\Framework\Microsoft.Sdc.Tasks.dll".

   Copying file from "Framework\ServerDeploy.bat" to "obj\Server\redist\Deployment\Framework\ServerDeploy.bat".

   Copying file from "Framework\ServerDeployWizard.bat" to "obj\Server\redist\Deployment\Framework\ServerDeployWizard.bat".

   Copying file from "Framework\ServerDeployWizardMSI.bat" to "obj\Server\redist\Deployment\Framework\ServerDeployWizardMSI.bat".

   Copying file from "Framework\ServerRedeploy.bat" to "obj\Server\redist\Deployment\Framework\ServerRedeploy.bat".

   Copying file from "Framework\ServerRedeployWizard.bat" to "obj\Server\redist\Deployment\Framework\ServerRedeployWizard.bat".

   Copying file from "Framework\ServerUnDeploy.bat" to "obj\Server\redist\Deployment\Framework\ServerUnDeploy.bat".

   Copying file from "Framework\ServerUnDeployWizard.bat" to "obj\Server\redist\Deployment\Framework\ServerUnDeployWizard.bat".

   Creating directory "obj\Server\redist\DeployResults".

   Copying file from "InstallWizard.xml" to "obj\Server\redist\Deployment\InstallWizard.xml".

   Copying file from "UninstallWizard.xml" to "obj\Server\redist\Deployment\UninstallWizard.xml".

   Copying file from "C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\PortBindings.xml" to "obj\Server\redist\Deployment\PortBindings.xml".

   Copying file from "HelloWorld.Deployment.btdfproj" to "obj\Server\redist\Deployment\HelloWorld.Deployment.btdfproj".

   Copying file from "..\HelloWorld.dll" to "obj\Server\redist\HelloWorld.dll".

   Target CustomRedist:

       Creating directory "obj\Server\redist\TestFiles".

       Copying file from "..\TestFiles\SamplePOInput.xml" to "obj\Server\redist\TestFiles\SamplePOInput.xml".

Target Installer:

   Deleting file "\OpsMgrBackupKey.bin".

   Deleting file "\pagefile.sys".

   C:\Program Files (x86)\Deployment Framework for BizTalk - HelloWorld\1.0\Deployment\Framework\BizTalkDeploymentFramework.WiXSetup.targets(187,5): error MSB3061: Unable to delete file "\pagefile.sys". The process cannot access the file 'C:\pagefile.sys' because it is being used by another process.

   Deleting file "\$Recycle.Bin\S-1-5-21-2127521184-1604012920-1887927527-6677370\desktop.ini".

   Deleting file "\$Recycle.Bin\S-1-5-21-3465329803-2319021463-2854421151-1133\$I3PSRIQ.lnk".

   Deleting file "\$Recycle.Bin\S-1-5-21-3465329803-2319021463-2854421151-1133\$R3PSRIQ.lnk".

   Deleting file "\$Recycle.Bin\S-1-5-21-3465329803-2319021463-2854421151-1133\desktop.ini".

   Deleting file "\$Recycle.Bin\S-1-5-21-3465329803-2319021463-2854421151-500\desktop.ini".

   Deleting file "\BizTalk2010Labs\ReadMe.doc".

   Deleting file "\BizTalk2010Labs\Labs\Dashboard\PerformanceOptimizationGuide\BizTalkServer2009.snk".

   Deleting file "\BizTalk2010Labs\Labs\Dashboard\PerformanceOptimizationGuide\LocalTestRun.testrunconfig".

   Deleting file "\BizTalk2010Labs\Labs\Dashboard\PerformanceOptimizationGuide\PerformanceOptimizationGuide.sln".

   Deleting file "\BizTalk2010Labs\Labs\Dashboard\PerformanceOptimizationGuide\PerformanceOptimizationGuide.sln.cache".

   Deleting file "\BizTalk2010Labs\Labs\Dashboard\PerformanceOptimizationGuide\PerformanceOptimizationGuide.suo".

   Deleting file "\BizTalk2010Labs\Labs\Dashboard\PerformanceOptimizationGuide\PerformanceOptimizationGuide.vsmdi".

   Deleting file "\BizTalk2010Labs\Labs\Dashboard\PerformanceOptimizationGuide\BusinessLogic\BusinessLogic.csproj".

   Deleting file "\BizTalk2010Labs\Labs\Dashboard\PerformanceOptimizationGuide\BusinessLogic\BusinessLogic.csproj.user".

   Deleting file "\BizTalk2010Labs\Labs\Dashboard\PerformanceOptimizationGuide\BusinessLogic\CalculatorRequest.cs".

Coordinator
Jul 25, 2012 at 6:49 PM

The delete is based on the MSBuild property OutputPath, which is evidently not being set in your case.  The OutputPath property is part of the default Debug and Release PropertyGroup's in the .btdfproj.  A piece of the default is shown below:

  <PropertyGroup Condition="'$(Configuration)' == 'Debug'">
    <DeploymentFrameworkTargetsPath>$(MSBuildExtensionsPath)\DeploymentFrameworkForBizTalk\5.0\</DeploymentFrameworkTargetsPath>
    <OutputPath>bin\Debug\</OutputPath>
    <!-- Get our PDBs into the GAC so we get file/line number information in stack traces. -->
    <DeployPDBsToGac>false</DeployPDBsToGac>
  </PropertyGroup>

You should be passing in either a Debug or Release configuration and calling the Installer target.

Thanks,
Tom