我正在使用 WiX 3.6 安装程序来创建自定义安装程序。
这是我的安装程序代码
<?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="Installer" UpgradeCode="b678de18-2e38-44d5-a686-9e923f8c565e">
<Package InstallerVersion="200" Compressed="yes" InstallScope="perMachine" />
<MajorUpgrade DowngradeErrorMessage="A newer version of [ProductName] is already installed." />
<MediaTemplate />
<Feature Id="ProductFeature" Title="Installer" Level="1">
<!--<ComponentGroupRef Id="ProductComponents" />-->
</Feature>
</Product>
<Fragment>
<!--<UIRef Id="WixUI_Mondo" />
<UIRef Id="WixUI_ErrorProgressText" />-->
<UI>
<Dialog Id="InstallDlg" Width="370" Height="270" Title="[ProductName] Setup" NoMinimize="yes">
<Control Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes">
<Text>{\DlgTitleFont}Ready to Install</Text>
</Control>
<Control Id="Install" Type="PushButton" X="304" Y="243" Width="56" Height="17"
Default="yes" Text="Install">
<Publish Event="EndDialog" Value="Return" />
</Control>
</Dialog>
<InstallUISequence>
<Show Dialog="InstallDlg" After="ExecuteAction" />
</InstallUISequence>
</UI>
</Fragment>
<Fragment>
<Directory Id="TARGETDIR" Name="SourceDir">
<Directory Id="ProgramFilesFolder">
<Directory Id="INSTALLFOLDER" Name="Installer">
</Directory>
</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"> -->
<!-- TODO: Insert files, registry keys, and other resources here. -->
<!-- </Component> -->
<ComponentGroupRef Id="ProductComponents"/>
</ComponentGroup>
</Fragment>
</Wix>
问题是安装程序没有显示至少一个对话框。
它像这样显示并在几秒钟后消失。
请告诉我我的代码哪里出错了。
谢谢,