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

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.

Answers

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
Answered 01/24/2008 by: spartacus
Black Belt

Please log in to comment
0
Were you really hungry when you wrote this post?
:)
Al
Answered 01/24/2008 by: AB
Purple Belt

Please log in to comment
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.
Answered 01/29/2008 by: sourav
Orange Senior Belt

Please log in to comment
0
Not really, But I am keen to learn.

Best Regards,
Ganguly.
Answered 01/29/2008 by: sourav
Orange Senior Belt

Please log in to comment
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...
Answered 01/29/2008 by: VBScab
Red Belt

Please log in to comment
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.
Answered 01/30/2008 by: sourav
Orange Senior Belt

Please log in to comment
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.
Answered 01/30/2008 by: VBScab
Red Belt

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