Hi all,

I have a configuration file that I would like to distribute in function of folder path encountered during installation on the computer.
If I found PATHTOFLODER_A then I install my conf file here, if I find PATHTOFOLDER_B it would go there.
I know I could build to msi or use a batch or vbscript and I'd be doing something else already, but I believe the msi technologie should handled that kind of action natively and I willing to learn.
I have struggled quit a while on that one and cannot manage to make it work. In despair I turn to you.
I have used the APPSEARCH action but I do not know how to handle it all the way through.
Any help would be gratefully appreciated. Thanks.

0 Comments   [ + ] Show Comments


Please log in to comment

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.


Hello Alan,

Firstly create two system searches to look for the first and second folder paths respectively.

For the first system search set the property PATHTOFOLDER_A when the first folder is found. If it isn't found then PATHTOFOLDER_A will be null.

For the second system search, set the property PATHTOFOLDER_B when the second folder is found. If it isn't found then PATHTOFOLDER_B will be null.

Next, create two components in your package both of which contain the same configuration file. Set the destination of the first component as [PATHTOFOLDER_A] and the destination of the second component as [PATHTOFOLDER_B]

Next apply a condition on the first component that PATHTOFOLDER_A <> "" and apply a condition on the second component that PATHTOFOLDER_B <> "".

That should do it.

If you are unsure about setting the system searches, please reply with which packaging tool you are using and either myself or another member can give some guidance.


Answered 12/09/2008 by: spartacus
Fifth Degree Brown Belt

Please log in to comment
Hi Spartacus,

Nice to ear from you again.
I use Installer Design Studio.
Works fine ! but I had to put the APPSEARCH action before LaunchConditions in the two execute sequences.

Thanks alot !.


People say that French is difficult but what about English !
Français : 'Trois sorcières regardent trois montres Swatch. Quelle sorcière regarde quelle montre Swatch ?'
English : 'Three witches watch three Swatch watches. Which witch watch which Swatch watch??
Answered 12/09/2008 by: alansch64
Orange Belt

Please log in to comment
Answer this question or Comment on this question for clarity