As an aside, what you're doing isn't a Custom Action, but it should work 
anyway.  I think maybe 
you've got the condition wrong.  I think you need it so that the package 
continues when the 
condition is successful, which is what's happening now.  If the condition is 
false then the error is 
shown.

Rob

Craig0ss wrote:
> hi thanks for your reply
> 
> Im doing a registry search at the moment, its basicaly the same however i
> cant get my code working, here is my reg search code
> 
> <Property Id="OLDVERSIONDETECTED">
>       <RegistrySearch Id="OldOpti" Type="raw" Root="HKLM"
> Key="SOFTWARE\Optisoft\Settings\SetupType.reg" Name="RegSearch" />
>     </Property>
> 
> and here is my custom action 
> 
> <Condition Message="Older version of Optisoft found. Please uninstall this
> before preoceeding.">OLDVERSIONDETECTED  </Condition>
>     
> im not quite sure how to call the custom action if the reg search returns
> false
> 
> could you help me with my above code
> 
> Thanks for your input
> 
> Craig
> 
> 
> 
> Rob Hamflett wrote:
>> You can do the same thing with an Error Custom Action.  Get AppSearch to
>> look for your file, and if 
>> it doesn't find it, call your Custom Action to show the error.
>>
>> Rob
>>
>> Craig0ss wrote:
>>> Hi 
>>>
>>> I need to search for a txt file that is installed with a certain app that
>>> my
>>> app needs to run, so im looking for a launch condition that looks on the
>>> computer (C:\Windows\System32\vbruntme.txt), if this is found the
>>> installer
>>> installs as normal and if it doesnt find the file on the computer then it
>>> displays a msg. 
>>>
>>> I have this in the boostrapper for my exe but i need it for my msi as a
>>> launch condition???
>>>
>>> Thanks
>>
>> -------------------------------------------------------------------------
>> This SF.net email is sponsored by: Microsoft
>> Defy all challenges. Microsoft(R) Visual Studio 2005.
>> http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
>> _______________________________________________
>> WiX-users mailing list
>> WiX-users@lists.sourceforge.net
>> https://lists.sourceforge.net/lists/listinfo/wix-users
>>
>>
> 


-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2005.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-users mailing list
WiX-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/wix-users

Reply via email to