0
我正在使用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>
代碼的問題是,安裝程序沒有顯示出來ATLEAST一個對話框。
它顯示像這樣並在幾秒鐘後消失。
請告訴我哪裏是錯在我的代碼。
感謝,