簡體   English   中英

Visual Studio 2017 安裝項目錯誤 2727

[英]Visual Studio 2017 Setup Project error 2727

嘿伙計們,我正在嘗試為我的應用程序構建一個設置,但它似乎不想工作。

我使用 -l 開關運行它以獲取安裝日志,看起來它正在尋找一個名為“_8D5342EDA5924BABBF19E5682639F820”的文件夾,但該文件夾在開發環境中不存在。 這是從哪里得到的?

這是日志文件: https ://pastebin.com/Y8BRAFjA

=== Logging started: 3/22/2018  12:26:49 ===
Action 12:26:49: INSTALL. 
Action start 12:26:49: INSTALL.
Action 12:26:49: DIRCA_CheckFX. 
Action start 12:26:49: DIRCA_CheckFX.
INFO   : [03/22/2018 12:26:50:124] [CheckFX                                 ]: Custom Action is starting...
INFO   : [03/22/2018 12:26:50:124] [CheckFX                                 ]: CoInitializeEx - COM initialization Apartment Threaded...
INFO   : [03/22/2018 12:26:50:124] [CheckFX                                 ]: MsiGetPropertyW - Determine size of property 'VSDFrameworkVersion'
INFO   : [03/22/2018 12:26:50:124] [CheckFX                                 ]: Allocating space...
INFO   : [03/22/2018 12:26:50:124] [CheckFX                                 ]: MsiGetPropertyW - Getting Property 'VSDFrameworkVersion'...
INFO   : [03/22/2018 12:26:50:124] [CheckFX                                 ]: Property 'VSDFrameworkVersion'  retrieved with value 'v4.6.1'.
INFO   : [03/22/2018 12:26:50:124] [CheckFX                                 ]: MsiGetPropertyW - Determine size of property 'VSDFrameworkProfile'
INFO   : [03/22/2018 12:26:50:124] [CheckFX                                 ]: Property 'VSDFrameworkProfile'  retrieved with value ''.
INFO   : [03/22/2018 12:26:50:124] [CheckFX                                 ]: Set VSDNETMSG with the FrameworkVersion.
INFO   : [03/22/2018 12:26:50:134] [CheckFX                                 ]: MsiGetPropertyW - Determine size of property 'VSDNETMSG'
INFO   : [03/22/2018 12:26:50:134] [CheckFX                                 ]: Allocating space...
INFO   : [03/22/2018 12:26:50:134] [CheckFX                                 ]: MsiGetPropertyW - Getting Property 'VSDNETMSG'...
INFO   : [03/22/2018 12:26:50:134] [CheckFX                                 ]: Property 'VSDNETMSG'  retrieved with value 'This setup requires the .NET Framework version [1].  Please install the .NET Framework and run this setup again.'.
INFO   : [03/22/2018 12:26:50:134] [CheckFX                                 ]: MsiSetPropertyW - Setting Property Value...
INFO   : [03/22/2018 12:26:50:134] [CheckFX                                 ]: MsiSetPropertyW - Setting property 'VSDNETMSG' to 'This setup requires the .NET Framework version v4.6.1.  Please install the .NET Framework and run this setup again.'.
INFO   : [03/22/2018 12:26:50:134] [CheckFX                                 ]: MsiGetPropertyW - Determine size of property 'VSDNETURLMSG'
INFO   : [03/22/2018 12:26:50:134] [CheckFX                                 ]: Allocating space...
INFO   : [03/22/2018 12:26:50:134] [CheckFX                                 ]: MsiGetPropertyW - Getting Property 'VSDNETURLMSG'...
INFO   : [03/22/2018 12:26:50:134] [CheckFX                                 ]: Property 'VSDNETURLMSG'  retrieved with value 'This setup requires the .NET Framework version [1].  Please install the .NET Framework and run this setup again.  The .NET Framework can be obtained from the web.  Would you like to do this now?'.
INFO   : [03/22/2018 12:26:50:134] [CheckFX                                 ]: MsiSetPropertyW - Setting Property Value...
INFO   : [03/22/2018 12:26:50:134] [CheckFX                                 ]: MsiSetPropertyW - Setting property 'VSDNETURLMSG' to 'This setup requires the .NET Framework version v4.6.1.  Please install the .NET Framework and run this setup again.  The .NET Framework can be obtained from the web.  Would you like to do this now?'.
INFO   : [03/22/2018 12:26:50:134] [CheckFX                                 ]: MsiSetPropertyW - Setting Property Value...
INFO   : [03/22/2018 12:26:50:134] [CheckFX                                 ]: MsiSetPropertyW - Setting property 'VSDFXAvailable' to 'TRUE'.
INFO   : [03/22/2018 12:26:50:134] [CheckFX                                 ]: Writing config file with version: '4.0'...
INFO   : [03/22/2018 12:26:50:134] [CheckFX                                 ]: Creating Config File...
DEBUG  : [03/22/2018 12:26:50:134] [CheckFX                                 ]: Calling MsiGetActiveDatabase...
DEBUG  : [03/22/2018 12:26:50:134] [CheckFX                                 ]: Calling MsiDatabaseOpenView...
DEBUG  : [03/22/2018 12:26:50:134] [CheckFX                                 ]: Calling MsiViewExecute...
DEBUG  : [03/22/2018 12:26:50:134] [CheckFX                                 ]: Calling MsiViewFetch...
DEBUG  : [03/22/2018 12:26:50:134] [CheckFX                                 ]: Calling MsiRecordDataSize...
INFO   : [03/22/2018 12:26:50:134] [CheckFX                                 ]: MsiSetPropertyW - Setting Property Value...
INFO   : [03/22/2018 12:26:50:134] [CheckFX                                 ]: MsiSetPropertyW - Setting property 'VSDFxConfigFile' to 'C:\Users\EZEKIE~1\AppData\Local\Temp\CFG81DE.tmp'.
INFO   : [03/22/2018 12:26:50:134] [CheckFX                                 ]: Custom Action succeeded.
INFO   : [03/22/2018 12:26:50:134] [CheckFX                                 ]: Custom Action completed with return code: '0'
Action ended 12:26:50: DIRCA_CheckFX. Return value 1.
Action 12:26:50: AppSearch. Searching for installed applications Property: [1], Signature: [2]
Action start 12:26:50: AppSearch.
Action ended 12:26:50: AppSearch. Return value 1.
Action 12:26:50: VSDCA_VsdLaunchConditions. 
Action start 12:26:50: VSDCA_VsdLaunchConditions.
INFO   : [03/22/2018 12:26:50:164] [VsdLaunchConditions                     ]: Custom Action is starting...
INFO   : [03/22/2018 12:26:50:174] [VsdLaunchConditions                     ]: CoInitializeEx - COM initialization Apartment Threaded...
INFO   : [03/22/2018 12:26:50:174] [VsdLaunchConditions                     ]: Enumerating table using SQL statement: 'SELECT * FROM `_VsdLaunchCondition`'
INFO   : [03/22/2018 12:26:50:174] [VsdLaunchConditions                     ]: Calling MsiGetActiveDatabase...
INFO   : [03/22/2018 12:26:50:174] [VsdLaunchConditions                     ]: MsiDatabaseOpenViewW - Prepare Database to view table...
INFO   : [03/22/2018 12:26:50:174] [VsdLaunchConditions                     ]: TMsiViewExecute - Open Database view on table...
INFO   : [03/22/2018 12:26:50:174] [VsdLaunchConditions                     ]: Checking a launch condition...
INFO   : [03/22/2018 12:26:50:174] [VsdLaunchConditions                     ]: Getting the condition to evaluate...
INFO   : [03/22/2018 12:26:50:174] [VsdLaunchConditions                     ]: MsiRecordGetStringW - Fetching value...
INFO   : [03/22/2018 12:26:50:174] [VsdLaunchConditions                     ]: MsiRecordGetStringW - Getting value from column '1'...
INFO   : [03/22/2018 12:26:50:174] [VsdLaunchConditions                     ]: Evaluating condition 'VSDFXAvailable'...
INFO   : [03/22/2018 12:26:50:174] [VsdLaunchConditions                     ]: RESULT:  Condition is true. Nothing more to do.
INFO   : [03/22/2018 12:26:50:174] [VsdLaunchConditions                     ]: Custom Action succeeded.
INFO   : [03/22/2018 12:26:50:174] [VsdLaunchConditions                     ]: Custom Action completed with return code: '0'
Action ended 12:26:50: VSDCA_VsdLaunchConditions. Return value 1.
Action 12:26:50: LaunchConditions. Evaluating launch conditions
Action start 12:26:50: LaunchConditions.
Action ended 12:26:50: LaunchConditions. Return value 1.
Action 12:26:50: CCPSearch. Searching for qualifying products
Action start 12:26:50: CCPSearch.
Action ended 12:26:50: CCPSearch. Return value 1.
Action 12:26:50: RMCCPSearch. Searching for qualifying products
Action start 12:26:50: RMCCPSearch.
Action ended 12:26:50: RMCCPSearch. Return value 0.
Action 12:26:50: ValidateProductID. 
Action start 12:26:50: ValidateProductID.
Action ended 12:26:50: ValidateProductID. Return value 1.
Action 12:26:50: DIRCA_TARGETDIR. 
Action start 12:26:50: DIRCA_TARGETDIR.
Action ended 12:26:50: DIRCA_TARGETDIR. Return value 1.
Action 12:26:50: CostInitialize. Computing space requirements
Action start 12:26:50: CostInitialize.
Action ended 12:26:50: CostInitialize. Return value 1.
Action 12:26:50: FileCost. Computing space requirements
Action start 12:26:50: FileCost.
Action ended 12:26:50: FileCost. Return value 1.
Action 12:26:50: IsolateComponents. 
Action start 12:26:50: IsolateComponents.
Action ended 12:26:50: IsolateComponents. Return value 1.
Action 12:26:50: CostFinalize. Computing space requirements
Action start 12:26:50: CostFinalize.
DEBUG: Error 2727:  The directory entry '_8D5342EDA5924BABBF19E5682639F820' does not exist in the Directory table
Info 2898.For VSI_MS_Sans_Serif13.0_0_0 textstyle, the system created a 'MS Sans Serif' font, in 0 character set, of 24 pixels height.
DEBUG: Error 2835:  The control ErrorIcon was not found on dialog ErrorDialog
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2835. The arguments are: ErrorIcon, ErrorDialog, 
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2727. The arguments are: _8D5342EDA5924BABBF19E5682639F820, , 
MSI (c) (18:78) [12:26:51:254]: Product: Setup1 -- The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2727. The arguments are: _8D5342EDA5924BABBF19E5682639F820, , 

Action ended 12:26:51: CostFinalize. Return value 3.
Action 12:26:51: FatalErrorForm. 
Action start 12:26:51: FatalErrorForm.
DEBUG: Error 2826:  Control Line1 on dialog FatalErrorForm extends beyond the boundaries of the dialog to the right by 4 pixels
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: FatalErrorForm, Line1, to the right
DEBUG: Error 2826:  Control Line2 on dialog FatalErrorForm extends beyond the boundaries of the dialog to the right by 4 pixels
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: FatalErrorForm, Line2, to the right
DEBUG: Error 2826:  Control BannerBmp on dialog FatalErrorForm extends beyond the boundaries of the dialog to the right by 4 pixels
The installer has encountered an unexpected error installing this package. This may indicate a problem with this package. The error code is 2826. The arguments are: FatalErrorForm, BannerBmp, to the right
Info 2898.For VsdDefaultUIFont.524F4245_5254_5341_4C45_534153783400 textstyle, the system created a 'MS Sans Serif' font, in 0 character set, of 24 pixels height.
Info 2898.For VSI_MS_Sans_Serif16.0_1_0 textstyle, the system created a 'MS Sans Serif' font, in 0 character set, of 29 pixels height.
Action 12:26:51: FatalErrorForm. Dialog created
Action ended 12:26:52: FatalErrorForm. Return value 1.
Action ended 12:26:52: INSTALL. Return value 3.
=== Logging stopped: 3/22/2018  12:26:52 ===
MSI (c) (18:78) [12:26:52:777]: Windows Installer installed the product. Product Name: Setup1. Product Version: 1.0.0. Product Language: 1033. Manufacturer: Default Company Name. Installation success or error status: 1603.

我有完全相同的問題。 最后,我發現它是由我的項目依賴項的附屬程序集引起的。 不知道為什么:-(

在我將以下行添加到安裝程序使用其已發布文件的項目的.csproj文件中后,問題得到解決:

<SatelliteResourceLanguages>en</SatelliteResourceLanguages>

添加后, bin中將沒有名稱為fr-FRzh-Hans等的特定語言文件夾,並且安裝項目將生成不再引發 2727 錯誤的 MSI。

如果有人知道對此的解釋以及如果您希望附屬程序集成為安裝程序的一部分,您會怎么做,那就太好了。

我有一個類似的問題。 我創建配置項目(在 VS 中創建為“空”項目類型)並在安裝程序中包含該項目的“內容”。 二進制文件作為合並模塊包含在內。

在我的配置項目中,有一個名為“Policies”的子目錄,其中包含多個文件。 我在這個目錄中的所有“內容”文件都顯示了相對路徑“策略\文件名”,除了一個......它顯示了“策略\文件名”。 注意小寫的“p”。 我刪除並重新添加了該文件,然后顯示相對路徑“ Policies \ filename ”,這修復了 2727 錯誤。

很奇怪,但它奏效了。

我剛剛遇到了同樣的問題 - 對於后代 - 我將把解決方案留在這里:

可能來自 VS 的文件定義是錯誤的。 因此,首先您可以通過以下方式檢查輸出文件:

  1. 輸出組的屬性
  2. 輸出字段並單擊“...”
  3. 它將向您顯示結果,將被復制的文件
  4. 因此,您必須驗證列表是否正常並且沒有像\\這樣的雙斜杠

VDProj 編輯輸出

這對我來說是個問題。 我編輯了 Visual Studio 項目以強制它通過以下方式將 Web 文件從父目錄復制到項目中:

  <ItemGroup>
    <ContentWithTargetPath Include="..\web-app\build\**">
      <CopyToOutputDirectory>PreserveNewest</CopyToOutputDirectory>
      <TargetPath>wwwroot%(RecursiveDir)\%(Filename)%(Extension)</TargetPath>
    </ContentWithTargetPath>
  </ItemGroup>

並且有\被解析為\\並導致了這個問題。

我也遇到了完全相同的錯誤,但原因與其他答案略有不同。 我有一個設置項目,其中只有我的主要項目的發布項目。 這是我在設置項目中檢查我的發布項目輸出時看到的

問題是安裝程序試圖將與一個 nuget 包(CefGlue.Common)相關的所有文件復制到以\開頭的路徑。 我查看了包的存儲庫,發現它試圖將這些文件復制到$(OutputDirectory)\這樣的路徑。 我的解決方法是在我的主項目的 .csproj 中定義屬性,如下所示: <OutputDirectory>.</OutputDirectory>

進行該更改后,發布項目輸出現在看起來像這樣

暫無
暫無

聲明:本站的技術帖子網頁,遵循CC BY-SA 4.0協議,如果您需要轉載,請注明本站網址或者原文地址。任何問題請咨詢:yoyou2525@163.com.

 
粵ICP備18138465號  © 2020-2024 STACKOOM.COM