[wix-users] Already Installed Error not showing

Ven H venh.123 at gmail.com
Tue Jan 30 09:08:10 PST 2018


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">
<Fragment>
    <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" Event="NewDialog"
Value="WelcomeDlg">1</Publish>
      <Publish Dialog="CustLicenseAgmtDlg" Control="Next" Event="NewDialog"
Value="BrowsePathDlg">1</Publish>
      <Publish Dialog="BrowsePathDlg" Control="Back" Event="NewDialog"
Value="CustLicenseAgmtDlg">1</Publish>
      <Publish Dialog="BrowsePathDlg" Control="Next" Event="NewDialog"
Value="InstallDlg">1</Publish>
      <Publish Dialog="InstallDlg" Control="Back" Event="NewDialog"
Value="BrowsePathDlg">1</Publish>
    </UI>
    <InstallUISequence>
      <Show Dialog="WelcomeDlg" Before="ProgressDlg">NOT Installed OR
PATCH</Show>
    </InstallUISequence>
    <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?


Regards,
Venkatesh


More information about the wix-users mailing list