Custom Action for existing Folder


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?


0 Comments   [ + ] Show comments

Answers (4)

Posted by: cygan 11 years ago
Fifth Degree Brown Belt
you can use system search to search for the folder if it exists then execute your CA
Posted by: anonymous_9363 11 years ago
Red Belt
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'.
Posted by: bkelly 11 years ago
Red Belt
As an intro to AppSearch, this may be helpful:
Posted by: aBE1305 11 years ago
Yellow Belt
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.

Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
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