/bundles/itninjaweb/img/Breadcrumb_cap_w.png
Hi

I have a custom action that sets the permissions for a folder. But i need it to run if the folder exists. What is the syntax in Installshield 2009 to make sure the folder exists before running the ca?

thx
0 Comments   [ - ] Hide Comments

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.
Answer this question or Comment on this question for clarity

Answers

0
you can use system search to search for the folder if it exists then execute your CA
Answered 07/02/2009 by: cygan
Fifth Degree Brown Belt

Please log in to comment
0
To explain more fully, a search would be used to populate a property which you would then use as a condition for the CA. So, created a property called, say, FOLDER_PRESENT and set it to 0. Then set up your search to populate FOLDER_PRESENT. You then condition the CA as 'FOLDER_PRESENT<>0'.
Answered 07/02/2009 by: VBScab
Red Belt

Please log in to comment
0
As an intro to AppSearch, this may be helpful:
http://itninja.com/blog/view/appdeploy.com->-training-videos->-windows-installer-appsearch-(wise-system-search)
Answered 07/02/2009 by: bkelly
Red Belt

Please log in to comment
0
Hi and thanks VBscab, for the fast response. After i posted i figured out how to make it work. Basically the same thing you described, but instead of using the folder name i check for the Feature, because the folder is only installed if my feature is selected for installation. It works like a charm.

thx
aBE
Answered 07/02/2009 by: aBE1305
Yellow Belt

Please log in to comment