I tried incorporating that into my installer and it works, just too
well. The installer errors every time, even if the condition is not met.
Any ideas on what might be causing this? The code I'm using is as
follows:
<Property Id="FILEEXISTS">
<DirectorySearch Id="CheckFileDir" Path="[INSTALLDIR]"
Depth="3">
<FileSearch Id="CheckFile" Name="Error.log" />
</DirectorySearch>
</Property>
<Condition Message="An error has occured and the installation
cannot continue, please close and retry!">FILEEXISTS</Condition>
________________________________
From: Levi Wilson [mailto:[EMAIL PROTECTED]
Sent: Monday, January 29, 2007 3:43 PM
To: Ian Couper
Cc: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Triggering a rollback
Launch Conditions have to be true in order for the install to proceed.
Therefore, if you had:
<Condition Message="Such and such file does not exist. Aborting
installation.">FILEEXISTS</Condition>
On 1/29/07, Ian Couper <[EMAIL PROTECTED]> wrote:
OK well it might need to check part of the way through the installation,
not quite sure yet. How do you stop it from proceeding if the condition
is not met? That's the part I'm interested in...
________________________________
From: Levi Wilson [mailto:[EMAIL PROTECTED]
Sent: Monday, January 29, 2007 3:31 PM
To: Ian Couper
Cc: wix-users@lists.sourceforge.net
Subject: Re: [WiX-users] Triggering a rollback
If this file needs to exist before the installation is ran, you could
have something like:
<Property Id="FILEEXISTS">
<FileSearch/>
</Property>
And if the FileSearch succeeds, FILEEXISTS would be set to true. Then
you could have a <Condition/> that won't let the install proceed if it
isn't set? I've done this with a <RegistrySearch/> before.
On 1/29/07, Ian Couper <[EMAIL PROTECTED]> wrote:
I would like to use the FileSearch property to trigger a rollback if a
particular file is not located. I know how to use the FileSearch
property, but not hot to force a rollback based on its outcome. Can
anyone help me with this one, or point me in the right direction?
Thanks
------------------------------------------------------------------------
-
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share
your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDE
V
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users
-------------------------------------------------------------------------
Take Surveys. Earn Cash. Influence the Future of IT
Join SourceForge.net's Techsay panel and you'll get the chance to share your
opinions on IT & business topics through brief surveys - and earn cash
http://www.techsay.com/default.php?page=join.php&p=sourceforge&CID=DEVDEV
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users