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.
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)
Please log in to answer
Posted by:
sikkert
18 years ago
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:)
- 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
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
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
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.
so that the conversation will remain readable.