1

I'm creating a bundle for my installer, but I keep getting the following error message:

"This installation package could not be opened. Contact the application vendor to verify that this is a valid Windows Installer package."

My installer works fine when I start it manually. Is there anything wrong with my bundle? I'm using WiX 3.7. Also, does the upgrade code in the bundle and the installer have to be the same?

<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
    <Bundle Name="Bootstrapper1" Version="$(var.Version)" 
            Manufacturer="$(var.CompanyName)"
            UpgradeCode="$(var.ProductUpgradeCode)"
            Copyright="Copyright© 2013"
            Condition="((VersionNT >= v5.1) AND (ServicePackLevel >= 3)) OR
              ((VersionNT >= v5.2) AND (ServicePackLevel >= 2)) OR (VersionNT >= v6.0)"> 

        <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" />
        <Chain>
            <MsiPackage Id="Setup" Compressed="yes" SourceFile="$(var.Installer.TargetPath)"
                        Vital="yes">
                <MsiProperty Name="INSTALLLOCATION" Value="[InstallFolder]" />
            </MsiPackage>
        </Chain>
    </Bundle>
</Wix>
4

1 回答 1

3

Bundle元素的输出是可执行文件。您不能将该可执行文件传递给 Windows 安装程序。只需双击它,它就会运行。如果没有,请查看%TEMP%文件夹,您应该会看到一个带有您的名称Bundle或文件名的日志Setup_*.log文件。该日志文件应该包含有关可执行文件无法启动的原因的更多详细信息。

其次,UpgradeCodeaBundle完全独立于UpgradeCode您的 .msi 文件。

于 2013-04-29T13:01:05.527 回答