簡體   English   中英

Wix MSI無法啟動

[英]Wix MSI Doesn't Launch

該項目已成功構建,但是當我運行生成的MSI時,它會進行檢查並收集信息,然后關閉,安裝程序不會出現。 在任務管理器中,我可以看到msiexec.exe正在運行。 怎么了? 這是我的代碼。

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
<Product Id="*" Name="Installer" Language="1033" Version="1.0.0.0" Manufacturer="Microsoft" UpgradeCode="d52283dd-2703-42a4-b3ef-73726d5e4ec6">
    <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />

    <MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
    <MediaTemplate EmbedCab="yes"/>

    <Feature Id="ProductFeature" Title="Installer" Level="1">
        <ComponentGroupRef Id="ProductComponents" />
    </Feature>
</Product>

<Fragment>
    <Directory Id="TARGETDIR" Name="SourceDir">
        <Directory Id="ProgramFilesFolder">
            <Directory Id="INSTALLFOLDER" Name="Installer" />
        </Directory>
    </Directory>
</Fragment>

<Fragment>
    <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
        <!-- TODO: Remove the comments around this Component element and the ComponentRef below in order to add resources to this installer. -->
        <Component Id="ProductComponent" Guid="{CB56C523-A71F-41C2-8C67-30A864FF253F}">
      <File Source="$(var.EJMS.TargetPath)" KeyPath="yes"/>
        </Component>
    </ComponentGroup>
</Fragment>
</Wix>

從命令行嘗試運行

msiexec / i installerName.msi / l * v log.txt

並查看安裝程序日志,看看它是否被某個地方趕上了。 安裝可能會無聲地失敗,甚至成功。 您沒有UI設置,因此它將以靜默方式完成安裝。 檢查返回值3,因為它通常表示故障

暫無
暫無

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

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