/build/static/layout/Breadcrumb_cap_w.png

How to implement lunch conditions or system search to check folder

How to implement lunch conditions or system search to check folder, if the folder is present in the base system, it should go for install the specified package. please any one favour me on this .
system search am not understanding how actually options work like property, search depth.

Thanks in advance.

Ganguly.

0 Comments   [ + ] Show comments

Answers (7)

Posted by: spartacus 16 years ago
Black Belt
0
Most of the major commercial packaging toolsets have wizards to guide you through setting up a system search for a folder.

For example, in AdminStudio's InstallShield Editor tool you would click on System Search then Add.. then in the drop down list click one of

(i) "Folder Path, by seaching all drives"
(ii) "Folder Path, by searching in a specific folder"

depending on where you wish to search. If you take option (ii), then specify the folder name you wish to search for, supply the full path to the parent folder and then set the number of subfolder levels to search to 0. On the next screen you can enter your own property name and take the option to use this property in an Install Condition

If you don't have access to this wizard-driven approach, then to do this from "first principles" would involve the following :

(this example assumes you are looking for a folder named C:\Program Files\Acme)

1) using ORCA or similar table editor, add a row to the DrLocator Table with the following values

Signature : AppDir
Parent : <Leave Blank>
Path : C:\Progra~1\Acme
Depth : 0

2) using ORCA or similar table editor, add a row to the AppSearch Table with the following values :

Property : MYDIR
Signature : AppDir

3) using ORCA or similar table editor, add a row to the LaunchCondition Table with the following values :

Condition : MYDIR <> ""
Description : The product cannot be installed because the ACME folder was not found on the system

- obviously you should alter the above Description field to meet your own particular needs (e.g. localized text)

Note that because the system search is for a folder and not a file, you do not need to add anything to the Signature table.

Hope this helps,

Regards,
Spartacus
Posted by: AB 16 years ago
Purple Belt
0
Were you really hungry when you wrote this post?
:)
Al
Posted by: sourav 16 years ago
Orange Senior Belt
0
[font="arial unicode ms"]Spartacus Before posting my query, I would like to say thanks .
[font="arial unicode ms"]
[font="arial unicode ms"]I did in the same way what u mentioned, regardless of the folder is present or not, the application is not installing, popping up the description field.
[font="arial unicode ms"]
[font="arial unicode ms"]please help me further.
[font="arial unicode ms"]
[font="arial unicode ms"]Best Regards,
[font="arial unicode ms"]Ganguly.
Posted by: sourav 16 years ago
Orange Senior Belt
0
Not really, But I am keen to learn.

Best Regards,
Ganguly.
Posted by: anonymous_9363 16 years ago
Red Belt
0
ORIGINAL: sourav
Not really, But I am keen to learn.
LOL...the allusion was to your (mistaken) use of the word 'lunch' instead of 'launch', not to your hunger for knowledge! :) Ah, the joys of the English language...
Posted by: sourav 16 years ago
Orange Senior Belt
0
ORIGINAL: VBScab

ORIGINAL: sourav
Not really, But I am keen to learn.
LOL...the allusion was to your (mistaken) use of the word 'lunch' instead of 'launch', not to your hunger for knowledge! :) Ah, the joys of the English language...



Yes, you did great.
VBscab help me further to implement launch condition.
Posted by: anonymous_9363 16 years ago
Red Belt
0
ORIGINAL: sourav
VBscab help me further to implement launch condition.
Spartacus already showed you how. Use this post, together with your authoring tool's help and/or MSI.CHM, the Windows Installer help file which will almost without question have been installed with the tool you're using.
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