2016-05-31 2 views
1

저는 Wix에 익숙하지 않습니다. 제 질문은 실제로 어떻게이 문제를 해결할 수있는 방법이 아닌지 어떻게 근본 원인을 설명합니까? 이 단계를 "디버그"하기 위해 취할 조치는 무엇입니까? 나는 시도하고 부트 스트 래퍼 내가 얻을 내장되어 내 MSI를 열 때마다Wix Bootstrapper가 "유효하지 않은"MSI를 빌드 한 이유를 알아보십시오

:

enter image description here

가 어떻게 루트이 원인이 가야합니까 염두에두고

이 내 현재의 문제 ??

빌드의 출력은 다음과 같습니다

Build started 31/05/2016 14:00:50. 
Project "C:\MyProj\MyProj\src\MyProj.Net\MyProjClientInstaller\setup.build" on node 1 (Bundle target(s)). 
Bundle: 
    TEST: ClientInstaller.wxs;WebSiteContent.wxs;IISConfiguration.wxs 
    "C:\Program Files (x86)\WiX Toolset v3.10\bin\candle" -ext WixBalExtension -ext WixNetFxExtension -ext WixUtilExtension "..\MyProjBootStrapper\Bundle.wxs" -dpub 
    lishDir=..\Setup\publish\ 
    Windows Installer XML Toolset Compiler version 3.10.3.2924 
    Copyright (c) .NET Foundation and contributors. All rights reserved. 

    Bundle.wxs 
C:\MyProj\MyProj\src\MyProj.Net\MyProjBootStrapper\Bundle.wxs(31): warning CNDL1136: The ExePackage/@RepairCommand attribute value '' should contain '/q' when the ExePacka ge/@Protocol attribute is set to 'netfx4'. [C:\MyProj\MyProj\src\MyProj.Net\MyProjClientInstaller\setup.build] 
C:\MyProj\MyProj\src\MyProj.Net\MyProjBootStrapper\Bundle.wxs(31): warning CNDL1136: The ExePackage/@UninstallCommand attribute value '' should contain '/q' when the ExePa ckage/@Protocol attribute is set to 'netfx4'. [C:\MyProj\MyProj\src\MyProj.Net\MyProjClientInstaller\setup.build] 
C:\MyProj\MyProj\src\MyProj.Net\MyProjBootStrapper\Bundle.wxs(31): warning CNDL1136: The ExePackage/@RepairCommand attribute value '' should contain '/norestart' when the 
ExePackage/@Protocol attribute is set to 'netfx4'. [C:\MyProj\MyProj\src\MyProj.Net\MyProjClientInstaller\setup.build] 
C:\MyProj\MyProj\src\MyProj.Net\MyProjBootStrapper\Bundle.wxs(31): warning CNDL1136: The ExePackage/@UninstallCommand attribute value '' should contain '/norestart' when t he ExePackage/@Protocol attribute is set to 'netfx4'. [C:\MyProj\MyProj\src\MyProj.Net\MyProjClientInstaller\setup.build] 
C:\MyProj\MyProj\src\MyProj.Net\MyProjBootStrapper\Bundle.wxs(31): warning CNDL1136: The ExePackage/@RepairCommand attribute value '' should contain '/chainingpackage' whe n the ExePackage/@Protocol attribute is set to 'netfx4'. [C:\MyProj\MyProj\src\MyProj.Net\MyProjClientInstaller\setup.build] 
C:\MyProj\MyProj\src\MyProj.Net\MyProjBootStrapper\Bundle.wxs(31): warning CNDL1136: The ExePackage/@UninstallCommand attribute value '' should contain '/chainingpackage' 
when the ExePackage/@Protocol attribute is set to 'netfx4'. [C:\MyProj\MyProj\src\MyProj.Net\MyProjClientInstaller\setup.build] 
    "C:\Program Files (x86)\WiX Toolset v3.10\bin\light" "Bundle.wixobj" -ext WixBalExtension -ext WixNetFxExtension -ext WixUtilExtension -out bin\Release\Setup. 
    msi 
    Windows Installer XML Toolset Linker version 3.10.3.2924 
    Copyright (c) .NET Foundation and contributors. All rights reserved. 

C:\MyProj\MyProj\src\MyProj.Net\MyProjClientInstaller\Bundle.wixobj : warning LGHT1109: Found mismatched entry point <Bundle>. Expected <Product> for specified output pack age type .msi. [C:\MyProj\MyProj\src\MyProj.Net\MyProjClientInstaller\setup.build] 
    Install package has been created. 
Done Building Project "C:\MyProj\MyProj\src\MyProj.Net\MyProjClientInstaller\setup.build" (Bundle target(s)). 


Build succeeded. 

"C:\MyProj\MyProj\src\MyProj.Net\MyProjClientInstaller\setup.build" (Bundle target) (1) -> 
(Bundle target) -> 
    C:\MyProj\MyProj\src\MyProj.Net\MyProjBootStrapper\Bundle.wxs(31): warning CNDL1136: The ExePackage/@RepairCommand attribute value '' should contain '/q' when the ExePac kage/@Protocol attribute is set to 'netfx4'. [C:\MyProj\MyProj\src\MyProj.Net\MyProjClientInstaller\setup.build] 
    C:\MyProj\MyProj\src\MyProj.Net\MyProjBootStrapper\Bundle.wxs(31): warning CNDL1136: The ExePackage/@UninstallCommand attribute value '' should contain '/q' when the Exe Package/@Protocol attribute is set to 'netfx4'. [C:\MyProj\MyProj\src\MyProj.Net\MyProjClientInstaller\setup.build] 
    C:\MyProj\MyProj\src\MyProj.Net\MyProjBootStrapper\Bundle.wxs(31): warning CNDL1136: The ExePackage/@RepairCommand attribute value '' should contain '/norestart' when th e ExePackage/@Protocol attribute is set to 'netfx4'. [C:\MyProj\MyProj\src\MyProj.Net\MyProjClientInstaller\setup.build] 
    C:\MyProj\MyProj\src\MyProj.Net\MyProjBootStrapper\Bundle.wxs(31): warning CNDL1136: The ExePackage/@UninstallCommand attribute value '' should contain '/norestart' when the ExePackage/@Protocol attribute is set to 'netfx4'. [C:\MyProj\MyProj\src\MyProj.Net\MyProjClientInstaller\setup.build] 
    C:\MyProj\MyProj\src\MyProj.Net\MyProjBootStrapper\Bundle.wxs(31): warning CNDL1136: The ExePackage/@RepairCommand attribute value '' should contain '/chainingpackage' w hen the ExePackage/@Protocol attribute is set to 'netfx4'. [C:\MyProj\MyProj\src\MyProj.Net\MyProjClientInstaller\setup.build] 
    C:\MyProj\MyProj\src\MyProj.Net\MyProjBootStrapper\Bundle.wxs(31): warning CNDL1136: The ExePackage/@UninstallCommand attribute value '' should contain '/chainingpackage ' when the ExePackage/@Protocol attribute is set to 'netfx4'. [C:\MyProj\MyProj\src\MyProj.Net\MyProjClientInstaller\setup.build] 
    C:\MyProj\MyProj\src\MyProj.Net\MyProjClientInstaller\Bundle.wixobj : warning LGHT1109: Found mismatched entry point <Bundle>. Expected <Product> for specified output pa ckage type .msi. [C:\MyProj\MyProj\src\MyProj.Net\MyProjClientInstaller\setup.build] 

    7 Warning(s) 
    0 Error(s) 

Time Elapsed 00:00:02.32 

그래서 경고, 아무것도하지만 나쁜 설치를 나타 내기 위해 보인다? 내가 지금은 그물 물건을 찍은 특히 같이

<?xml version="1.0" encoding="UTF-8"?> 
<!-- Copyright (c) .NET Foundation and contributors. All rights reserved. Licensed under the Microsoft Reciprocal License. See LICENSE.TXT file in the project root for full license information. --> 


<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" 
    xmlns:util="http://schemas.microsoft.com/wix/UtilExtension" 
    xmlns:netfx="http://schemas.microsoft.com/wix/NetFxExtension"> 
    <Bundle Name="MyBootStrapper" Version="1.0.0.0" Manufacturer="Microsoft" UpgradeCode="71d3e0df-abd8-450e-a8e0-ade54891fc4f"> 
     <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" /> 

     <Chain> 
      <!-- TODO: Define the list of chained packages. --> 
      <!-- <MsiPackage SourceFile="path\to\your.msi" /> --> 
     <!--<PackageGroupRef Id="Netfx4Full"/>--> 
     <MsiPackage Id="ClientInstaller" SourceFile="..\MyClientInstaller\bin\Release\ClientSetup.msi" /> 
     </Chain> 
    </Bundle> 
    <Fragment> 
    <!-- Check for .NET 4.0-->  
    <util:RegistrySearch Root="HKLM" 
         Key="SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full" 
         Value="Version" 
         Variable="Netfx4FullVersion" 
        /> 
    <util:RegistrySearch Root="HKLM" 
         Key="SOFTWARE\Microsoft\Net Framework Setup\NDP\v4\Full" 
         Value="Version" 
         Variable="Netfx4x64FullVersion" 
        /> 
    <PackageGroup Id ="Netfx4Full"> 
     <ExePackage Id="Netfx4Full" 
        DisplayName="Microsoft .Net Framework" 
        Cache="yes" 
        Compressed="yes" 
        PerMachine="yes" 
        Permanent="yes" 
        Protocol="netfx4" 
        Vital="yes" 
        SourceFile="redist\dotNetFx40_Full_x86_x64.exe" 
        InstallCommand="/passive /norestart /q /chainingpackage" 
        DetectCondition="Netfx4FullVersion AND (NOT VersionNT64 OR Netfx4x64FullVersion)" 
        /> 


    </PackageGroup> 
    </Fragment> 
</Wix> 

내가이 명령은 MSBuild에서 건물입니다 : 나는 "굽기"계속 생각

<Target Name="Bundle"> 
    <!--  At last create install bundle--> 
    <Message Text="TEST: @(WixCode)"/> 
    <Exec 
     Command='"$(WixPath)candle" -ext WixBalExtension -ext WixNetFxExtension -ext WixUtilExtension "$(BootStrapperPath)Bundle.wxs" -dpublishDir=$(Publish)' 
     ContinueOnError="false" 
     WorkingDirectory="." /> 
    <Exec 
     Command='"$(WixPath)light" "Bundle.wixobj" -ext WixBalExtension -ext WixNetFxExtension -ext WixUtilExtension -out $(BundleOut)' 
     ContinueOnError="false" 
     WorkingDirectory="." /> 


    <!-- A message at the end --> 
    <Message Text="Install package has been created." /> 
</Target> 

어딘가에 거기에 할 필요가 있지만, 내가 지금까지 발견 튜토리얼가 나는 또한 비주얼 스튜디오 내에서이 구축 시도 ...하지

을 제안 할 것으로 보인다 내가 같은 결과를 얻을 수 (그것이 부트 스트 래퍼 템플릿)

---- 업데이트 ----

.exe로 빌드하면 괜찮습니다!

답변

3

이 경고는 문제가

warning LGHT1109: Found mismatched entry point <Bundle>. 
        Expected <Product> for specified output package type .msi. 

번들은, MSI exe를 설치하지 않은 정확히 알려줍니다.

+0

MSI 번들을 사용할 수 없습니까? 템플릿의 기본 대상이 .msi라는 것이 얼마나 혼란 스럽습니까! 고맙습니다 :) – chrispepper1989

관련 문제