/build/static/layout/Breadcrumb_cap_w.png

Software Deployment Question


Installing a file in function of a folder found on the computer

12/09/2008 2703 views
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.



Alan
0 Comments   [ + ] Show comments

Comments


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

All Answers

0
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.

Regards,

Spartacus
Answered 12/09/2008 by: spartacus
Black Belt

0
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 !.



[hr]

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

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ