/build/static/layout/Breadcrumb_cap_w.png

App search

Hi,
Iam trying to do a app serach where i need to cheack for "c:\orant" if this folder does not exists i need to abort installation.

please guide me for the above issue.

0 Comments   [ + ] Show comments

Answers (3)

Posted by: sikkert 18 years ago
Orange Senior Belt
0
Since you don't say if you gonna use Wise or the likes, I'll just use the basic version:

- AppSearch table:
Signature_: just a signature for this search, use for example "orant_dir"
Property: the name of the public (captial letters only) property to set. If the search is successful, this will be set to true, otherwise it is false.

- DrLocator table:
Signature_: same name as in AppSearch
Parent: null
Path: "c:\orant"
Depth: 0

Then just mak a Custom Action to exit if the dir does not exist:

CustomAction table:
Action: findOrantDir (or something)
Type: 19 (gives an errormessage, and terminate installation)
Source: null
Target: <the error message to display>

Finally, make an entry in the InstallExecuteSequence/InstallUISequence to run the CA, for example:

Action: findOrantDir (or whatever u named your CA)
Condition: NOT <propertyname spesified in the AppSearch table>
Sequence: a number AFTER the "AppSearch" standard action (which default is 400, I belive)

Hope that helps:)
Posted by: Godfather 18 years ago
Senior Yellow Belt
0
iam using wise...........
i did try this option but yet facing the same issue...........
i have created a CA which chks for the folder and i did mention the type 19
the custom action is as follows
On Error Resume Next
Dim fso, filespec,Destination
Destination="C:\"
filespec="C:\orant"
Set fso = CreateObject("Scripting.FileSystemObject")
If (fso.FolderExists(filespec)) Then
msgbox "found"
End If

thanks
Posted by: Godfather 18 years ago
Senior Yellow Belt
0
Thanks buddy it works perfect now!!!
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