Re: [WiX-users] Search for file as pre-requesit

2007-09-27 Thread Rob Hamflett
I'd give your property an initial value of something like "notfound" and use a condition of OLDVERSIONDETECTED = "notfound". The condition will fail if AppSearch found something and updated the property. Rob Craig0ss wrote: > HI > > Yeah sorry i see what ya mean now, ive decided to look fo

Re: [WiX-users] Search for file as pre-requesit

2007-09-27 Thread Craig0ss
HI Yeah sorry i see what ya mean now, ive decided to look for a registry of an earlier installed version of my software, not a txt file anymore. so my registry search is ok? how do i call the "condition" if the registry search returns false? thanks Rob Hamflett wrote: > > As an aside, what

Re: [WiX-users] Search for file as pre-requesit

2007-09-27 Thread Rob Hamflett
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 show

Re: [WiX-users] Search for file as pre-requesit

2007-09-27 Thread Craig0ss
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 and here is my custom action OLDVERSIONDETECTED im not quite sure how to call the custom action if the reg search returns

Re: [WiX-users] Search for file as pre-requesit

2007-09-25 Thread Rob Hamflett
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 i

[WiX-users] Search for file as pre-requesit

2007-09-25 Thread Craig0ss
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 t