2012-11-05 88 views
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一个对话框。

它显示像这样并在几秒钟后消失。

enter image description here

请告诉我哪里是错在我的代码。

感谢,

回答

0

我的产品标签关闭之前错过

<UIRef Id="WixUI_Mondo"/>。现在它工作了