wix工具集bootsrap exe在启动时挂起

时间:2015-11-15 17:16:54

标签: c# wix wix3.5

尝试使安装程序具有多语言支持,我知道我必须使用boostrapper。但是当我想制作一个测试文件时,它会冻结。

我的主要是一个简单的表单,它将显示一个“hello world”文本。 SetupProject也是基本的XML。

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
    <Product Id="*" Name="SetupProject" Language="1033" Version="1.0.0.0" Manufacturer="Microsoft" UpgradeCode="cbb7c280-e909-4a3c-9aab-76f6a4cc75e5">
        <Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />

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

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

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

    <Fragment>
        <ComponentGroup Id="ProductComponents" Directory="INSTALLFOLDER">
            <Component Id="ProductComponent">
                <File Source="$(var.cs_tt10_bundle.TargetPath)" />
            </Component>
        </ComponentGroup>
    </Fragment>
</Wix>

Bootsrapper文件是

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
    <Bundle Name="Bootstrapper" Version="1.0.0.0" Manufacturer="Microsoft" UpgradeCode="e7d3169f-9d31-4849-b75d-567c796b19f8">
        <BootstrapperApplicationRef Id="WixStandardBootstrapperApplication.RtfLicense" />

        <Chain>
            <MsiPackage Compressed="yes" Vital="yes" SourceFile="$(var.SetupProject.TargetPath)" />
        </Chain>
    </Bundle>
</Wix>

当我编译所有内容时,我得到.exe但是当我尝试运行它时,它会挂起。 没有进程资源管理器可以关闭它。它锁定文件,唯一的方法(我知道)“杀死”程序正在重启机器。

我不知道如何调试bootstrapper ......

0 个答案:

没有答案
相关问题