[wix-users] Conditional Dialog
R
ryee at pronktech.com
Thu Aug 16 16:34:52 PDT 2018
It looks like it sets the INSTALLFOLDER property after that. Is there a way
to set it before the AppSearch, or do I have to painfully hardcode the path
in?
On Wed, Aug 15, 2018 at 7:07 PM, Rob Mensching via wix-users <
wix-users at lists.wixtoolset.org> wrote:
> 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/
>
> ____________________________________________________________________
> WiX Toolset Users Mailing List provided by FireGiant
> http://www.firegiant.com/
>
--
Please reply to confirm that you have read and understand the contents of
this e-mail.
More information about the wix-users
mailing list