[wix-users] Conditional Dialog

Rob Mensching rob at firegiant.com
Wed Aug 15 22:07:42 PDT 2018


The XxxSearch elements are executed during AppSearch so what is the value of INSTALLFOLDER before AppSearch?
_____________________________________________________________
 Short replies here. Complete answers over there: http://www.firegiant.com/


-----Original Message-----
From: wix-users <wix-users-bounces at lists.wixtoolset.org> On Behalf Of R via wix-users
Sent: Wednesday, August 15, 2018 9:17 PM
To: Wix Community <wix-users at lists.wixtoolset.org>
Cc: R <ryee at pronktech.com>
Subject: [wix-users] Conditional Dialog

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.

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



More information about the wix-users mailing list