[wix-users] Already Installed Error not showing

Habib Salim habib at hsalim.com
Tue Jan 30 11:55:33 PST 2018

I could be wrong but your installer is jumping to the last screen because
there is nothing to do.  the installed version is the same as the
installer version.
When you recompile, the product id changes or the version changes - (if
you are doing that) so it raises the error.

Are you looking for it to reinstall/repair the installation when you
re-run it?  or are you just looking for a confirmation/error that this
version has been installed previously?

-----Original Message-----
From: wix-users [mailto:wix-users-bounces at lists.wixtoolset.org] On Behalf
Of Ven H via wix-users
Sent: Tuesday, January 30, 2018 12:08 PM
To: WiX Toolset Users Mailing List <wix-users at lists.wixtoolset.org>
Cc: Ven H <venh.123 at gmail.com>
Subject: [wix-users] Already Installed Error not showing

I am building an MSI with custom dialogs, but I am not customizing the
Welcome Dialog. I have a valid Product ID and Upgrade ID and
AllowSameVersionUpgrades is also not there. The following is the UI code,
which is being referenced in my Product.wxs.

<?xml version="1.0" encoding="UTF-8"?>
<Wix xmlns="http://schemas.microsoft.com/wix/2006/wi">
    <WixVariable Id="WixUIBannerBmp" Value="Images\Banner.bmp" />
    <WixVariable Id="WixUIDialogBmp" Value="Images\dialog.bmp" />

    <UI Id="CustomUI">
      <TextStyle Id="WixUI_Font_Normal" FaceName="Tahoma" Size="8" />
      <TextStyle Id="WixUI_Font_Bigger" FaceName="Tahoma" Size="12" />
      <TextStyle Id="WixUI_Font_Title" FaceName="Tahoma" Size="9"
Bold="yes" />

      <Property Id="DefaultUIFont" Value="WixUI_Font_Normal" />

      <!--Standard Dialog References needed to compile-Starts-->
      <DialogRef Id="WelcomeDlg" />
      <DialogRef Id="DiskCostDlg" />
      <DialogRef Id="ErrorDlg" />
      <DialogRef Id="FatalError" />
      <DialogRef Id="FilesInUse" />
      <DialogRef Id="UserExit" />
      <!--Standard Dialog References needed to compile-Ends-->
      <DialogRef Id="CustLicenseAgmtDlg"/>
      <DialogRef Id="InstallDlg"/>

      <Publish Dialog="ExitDialog" Control="Finish" Event="EndDialog"
Value="Return" Order="999">1</Publish>
      <Publish Dialog="WelcomeDlg" Control="Next" Event="NewDialog"
Value="CustLicenseAgmtDlg">NOT Installed AND NOT PATCH</Publish>
      <Publish Dialog="CustLicenseAgmtDlg" Control="Back"
      <Publish Dialog="CustLicenseAgmtDlg" Control="Next"
      <Publish Dialog="BrowsePathDlg" Control="Back" Event="NewDialog"
      <Publish Dialog="BrowsePathDlg" Control="Next" Event="NewDialog"
      <Publish Dialog="InstallDlg" Control="Back" Event="NewDialog"
      <Show Dialog="WelcomeDlg" Before="ProgressDlg">NOT Installed OR
    <UIRef Id="WixUI_Common" />
    <UIRef Id="WixUI_ErrorProgressText" /> </Fragment> </Wix>

First time, the installer runs fine and installs the files. But from the
next time, it is not showing the error that, it is already installed.
Rather it jumps from the first to the last screen in a flash. But if I
rebuild this MSI project in VS and run the new installer, it shows the
error. I am not sure what am I doing wrong. Can anyone please help?


WiX Toolset Users Mailing List provided by FireGiant

More information about the wix-users mailing list