[wix-users] Conditional Dialog

R ryee at pronktech.com
Wed Aug 15 21:17:28 PDT 2018


I can't seem to get this to work properly. I'm trying to see if the
database exists and then show a custom dialog if it isn't. Right now, I put
the file manually in the [INSTALLFOLDER], but the custom dialog still shows
up.

I checked the log files, and it keeps setting DATADETECTED as 0. I'm pretty
sure the file is in the correct location and is spelled correctly.

This Property is under a button Control.

          <!-- Check if there is already a database. Properties must be
assigned before Publish tags. -->
          <Property Id="DATADETECTED" Value="0">
            <DirectorySearch Id="Database" Path="[INSTALLFOLDER]">
              <FileSearch Name="db_rev1.sqlite"/>
            </DirectorySearch>
          </Property>

          <!-- Database not detected. -->
          <Publish Event="NewDialog" Value="DataDetectDlg">DATADETECTED =
"0"</Publish>

The documentation claims that the "0" will be overwritten during any type
of search.


More information about the wix-users mailing list