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

Tyler Gustafson tgustafson at solacom.com
Thu Jun 15 10:37:27 PDT 2017


I don't think you can run an msi from within another msi. You want to look at creating a bootstrapper.

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf Of Carlos Sosa
Sent: June-15-17 12:42 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Subject: [wix-users] Simple UI to install on demand Packages.


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">

       <Fragment>

    <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>-->
        <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>
        </Control>

      </Dialog>
    </UI>

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

       </Fragment>
</Wix>

****************************************************

Which I'm calling on my Product.wmx

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

  <Fragment>

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

  </Fragment>




____________________________________________________________________
WiX Toolset Users Mailing List provided by FireGiant http://www.firegiant.com/



More information about the wix-users mailing list