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


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.


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:)
Answered 03/13/2006 by: sikkert
Orange Senior Belt

Please log in to comment
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
Set fso = CreateObject("Scripting.FileSystemObject")
If (fso.FolderExists(filespec)) Then
msgbox "found"
End If

Answered 03/13/2006 by: Godfather
Senior Yellow Belt

Please log in to comment
Thanks buddy it works perfect now!!!
Answered 03/13/2006 by: Godfather
Senior Yellow Belt

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