簡體   English   中英

具有WPF UI的Wix安裝程序未運行MSI

[英]Wix Installer with WPF UI not running MSI

我目前正在構建一個WiX項目,該項目應充當其他安裝程序的交付包裝器-這樣,我可以為任何項目創建一個msi,將其包裝在此項目中,並擁有一個新的安裝程序。

目前,我正在嘗試一對非常基本的安裝程序-安裝它們時,他們應該創建一個文件夾,並將四個空的文本文件放置在該文件夾中。 頂級wxs文件在下面。

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi" xmlns:util="http://schemas.microsoft.com/wix/UtilExtension" xmlns:bal="http://schemas.microsoft.com/wix/BalExtension">
    <Bundle Name="Jeremiah's Test Installer" Version="1.0.0.0" Manufacturer="Starkey" UpgradeCode="5a714642-7857-4582-8bae-80fd6d8ec77a">
    <BootstrapperApplicationRef Id="ManagedBootstrapperApplicationHost">
      <Payload SourceFile="..\TestWPF003\BootstrapperCore.config"/>
      <Payload SourceFile="..\TestWPF003\bin\Release\TestWPF003.dll"/>
      <Payload SourceFile="C:\Program Files (x86)\WiX Toolset v3.9\SDK\Microsoft.Deployment.WindowsInstaller.dll"/>
    </BootstrapperApplicationRef>

        <Chain>
            <!-- TODO: Define the list of chained packages. -->
            <!-- <MsiPackage SourceFile="path\to\your.msi" /> -->
      <PackageGroupRef Id='Netfx4Full' />      
      <MsiPackage SourceFile="..\beta\bin\Release\beta.msi"  Id="BetaInstallId" Cache="yes" Visible="yes"/>
      <MsiPackage SourceFile="..\alpha\bin\Release\alpha.msi"  Id="AlphaInstallId" Cache="yes" Visible="yes"/>
        </Chain>
    </Bundle>

  <Fragment>

    <WixVariable Id="WixMbaPrereqPackageId" Value="Netfx4Full" />
    <WixVariable Id="WixMbaPrereqLicenseUrl" Value="NetfxLicense.rtf" />

    <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" Win64="yes" />

    <PackageGroup Id="Netfx4Full">
      <ExePackage Id="Netfx4Full" Cache="no" Compressed="yes" PerMachine="yes" Permanent="yes" Vital="yes"
                  SourceFile="C:\Program Files (x86)\Microsoft SDKs\Windows\v7.0A\Bootstrapper\Packages\DotNetFX40\dotNetFx40_Full_x86_x64.exe"
                  DetectCondition="Netfx4FullVersion AND (NOT VersionNT64 OR Netfx4x64FullVersion)" />
    </PackageGroup>
  </Fragment>

</Wix>

我要面對的問題是,將出現UI,按鈕將被觸發,並且Windows注冊表中將出現一個條目,表明該程序已安裝。 但是,當我去尋找文件時,將什么也沒有。 我可以在系統中掃描文件和文件夾的名稱,但是它們不會出現在任何地方。 如果我自己運行安裝程序,則會創建文件夾並顯示文件。

編輯:安裝日志-http : //pastebin.com/cMFei9cr

根據日志,該捆綁軟件認為軟件包已經安裝,因此不再嘗試再次安裝它們( execute:None )。

Planned package: BetaInstallId, state: Present, default requested: Present, ba requested: Present, execute: None, rollback: None, cache: No, uncache: No, dependency: Register
Planned package: AlphaInstallId, state: Present, default requested: Present, ba requested: Present, execute: None, rollback: None, cache: No, uncache: No, dependency: Register

我不知道為什么會有這么多相關的捆綁包:

Detected related bundle: {005cc4d6-ddbb-40e6-9b55-1e75c3fd93f7}, type: Upgrade, scope: PerMachine, version: 1.0.0.0, operation: None
Detected related bundle: {062482ea-7e51-4d0d-bfdb-4da66a31c8d7}, type: Upgrade, scope: PerMachine, version: 1.0.0.0, operation: None
Detected related bundle: {1c6dc0b9-8d20-4fcc-ba0f-88278407bfd7}, type: Upgrade, scope: PerMachine, version: 1.0.0.0, operation: None
Detected related bundle: {27a27a66-9612-475b-b4c1-4b0154f2ffc1}, type: Upgrade, scope: PerMachine, version: 1.0.0.0, operation: None
Detected related bundle: {284b58db-4377-4d3f-81f6-8683960062a8}, type: Upgrade, scope: PerMachine, version: 1.0.0.0, operation: None
Detected related bundle: {4508d6e7-0b9d-44b5-8270-f5b2e4a9f1eb}, type: Upgrade, scope: PerMachine, version: 1.0.0.0, operation: None
Detected related bundle: {616c17bc-349a-4fa4-a96d-44089a199e3d}, type: Upgrade, scope: PerMachine, version: 1.0.0.0, operation: None
Detected related bundle: {85fd546d-8c91-44e1-9fcb-1a84e3727773}, type: Upgrade, scope: PerMachine, version: 1.0.0.0, operation: None
Detected related bundle: {b48ca10f-ec2e-417e-91e2-d60a85cf08a3}, type: Upgrade, scope: PerMachine, version: 1.0.0.0, operation: None
Detected related bundle: {c6450493-7e9e-4341-ab20-fece27d7f706}, type: Upgrade, scope: PerMachine, version: 1.0.0.0, operation: None
Detected related bundle: {daefbdf5-330d-4ab7-b504-629c6d474142}, type: Upgrade, scope: PerMachine, version: 1.0.0.0, operation: None
Detected related bundle: {e3eb09bd-6c1e-4969-8298-450e0041d424}, type: Upgrade, scope: PerMachine, version: 1.0.0.0, operation: None

我敢打賭它會在干凈的機器上工作。

暫無
暫無

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

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