2016-03-06 21 views
0

我想在平行於建立一個對WiX的補丁項目(該修補程序創建者..)。但是我的64位配置一個總是失敗,PatchWiz錯誤:如何在並行構建WiX PCP修補目標時解決此「發生內部PatchWiz錯誤無法創建文件夾」錯誤?

INFO: Passed all of the main control parameter validation to PatchWiz, now calling the next 5 phases. 
    INFO: Phase I: Entered validation and processing phase. 
    ERROR: Internal PatchWiz Error occurred. 
    ERROR: The Last Error Received is: 0x20 (32) 
    INFO: Temporary folder is about to be cleaned out and deleted: C:\Users\TestUser\AppData\Local\Temp\~pcw_tmp.tmp 
    ERROR: Internal PatchWiz Error occurred. 
    ERROR: The Last Error Received is: 0x91 (145) 
    ERROR: During cleanup, could not delete the temporary folder: C:\Users\TestUser\AppData\Local\Temp\~pcw_tmp.tmp. 
    ERROR: The Last Error Received is: 0x91 (145) 

我想:

  • 運行前清理臨時文件夾。
  • 切換配置順序。
  • 添加睡眠/執行之間

沒有運氣超時。

這裏是我的build.proj我執行:

<?xml version="1.0" encoding="utf-8"?> 
<Project ToolsVersion="12.0" DefaultTargets="Build" xmlns="http://schemas.microsoft.com/developer/msbuild/2003"> 

    <Import Project="packages\MSBuild.Extension.Pack.1.8.0\build\net40\MSBuild.Extension.Pack.targets" Condition="Exists('packages\MSBuild.Extension.Pack.1.8.0\build\net40\MSBuild.Extension.Pack.targets')" /> 

    <PropertyGroup> 
    <ProductVersion>1.1.2</ProductVersion> 
    </PropertyGroup> 

    <Target Name="Compile32"> 
    <MSBuild Targets="Build" Projects="Hotfix_Patch.wixproj" 
      Properties="Configuration=Debug;Platform=x86;ProductVersion=$(ProductVersion)" /> 
    </Target> 

    <Target Name="Compile64"> 
    <MSBuild Targets="Build" Projects="Hotfix_Patch.wixproj" 
     Properties="Configuration=Debug;Platform=x64;ProductVersion=$(ProductVersion)" /> 
    </Target> 

    <Target Name="Build" > 
    <MSBuild.ExtensionPack.Framework.Parallel TaskAction="BuildTargetsInParallel" Targets="Compile64;Compile32"/> 
    </Target> 

</Project> 

難道我PatchWiz擺佈?還是有什麼我可能做錯了?任何黑客想法? (並且不要說我首先通過Patching/MSP做錯了!我意識到這一點!除此之外,我是主要升級MSI類型的人)。

回答

0

第二個修補程序的創建過程正在嘗試快速移動第一個臨時文件C:\ Users \ TestUser \ AppData \ Local \ Temp \〜〜pcw_tmp.tmp。只是一個默認設置。您可以指定其他buildarch特定的臨時文件夾: -

如果使用直接使用patchwiz您的CMD線 see msimsp.exe docs here

如果MSIMSP.exe使用/ F,它的UICreatePatchPackage see PatchWiz docs here的參數

附:當我發現這是一個美好的一天:)

相關問題