[wix-users] Simple UI to install on demand Packages.

Carlos Sosa carlos.sosa.us at outlook.com
Thu Jun 15 09:42:02 PDT 2017

Hello, I need to create a simple installer that allows me to install chrome with a button.
I have a custom UI, when I click the button Chrome doesn't install.
It should be pretty simple, any help is appreciated.

Thank you.

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">


    <UI Id="Custom_UI">

      <Property Id="DefaultUIFont">DlgFont8</Property>
      <TextStyle Id="DlgFont8" FaceName="Tahoma" Size="8" />
      <TextStyle Id="DlgTitleFont" FaceName="Tahoma" Size="8" Bold="yes" />

      <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 Id="Title" Type="Text" X="15" Y="6" Width="200" Height="15" Transparent="yes" NoPrefix="yes"
            Text="{\DlgTitleFont}Ready to Install"/>

        <Control Id="Install" Type="PushButton" X="304" Y="243" Width="56" Height="17" Default="yes" Text="[ButtonText_Install]">
          <Publish Event="InstallChrome" Value="Check"> </Publish>


      <Show Dialog="InstallDlg" After="CostFinalize" />



Which I'm calling on my Product.wmx

<UIRef Id="Custom_UI" />
<Property Id='CHROME'>Chrome.msi</Property>


    <CustomAction Id='LaunchFile' Property='CHROME' ExeCommand="$(var.ProjectDir)\Chrome.msi" Return='asyncNoWait' />


More information about the wix-users mailing list