I have been given an ini file to incorporate into my Sybase 12.5.2 package I recently built. A specific directory must exist in order for this file to be copied. My idea was to compress the ini file into the msi (in it's own component), create a separate feature for the component and then create a custom action based on whether the property (which I set as the filepath) exists (install feature) or doesn't (no feature). The only problem is I'm not really too sure how to phrase the install condition for the existence of this property. If anyone can provide some assistance I would appreciate it. Thank you.
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
Hello.
I will do this way:
1. I create a property which value should have that directory. Default value is empty.
2. In App search Table I add a line which checks or search for that folder and in case the folder exists fills previously created property.
3. Under Condition attribute of component I write a condition that property created under point 1. must not be empty

Example using ORCA:
1.
Property table: Property: SRCHFOLDER, Value: <leave empty (not 0!)>
2.
AppSearch table: Property: SRCHFOLDER, Signature: NewSignatureX
DrLocator table: Signature: NewSignatureX, Parent: <parent of searched folder (should be empty in case of exact search)>, Path: <searched folder>, Depth: 1 (1 is for exact search, otherwise add more levels)
Signature table: Signature: NewSignatureX, Filename: empty (searching for folder)
3.
Component table: in a line with desired component put SRCHFOLDER<>"" in a Condition column.
Answered 09/24/2007 by: jamsek19
Orange Senior Belt

Please log in to comment
0
Thank you for your reply. But I cannot have null values in either the value column of the property table nor the Filename column of the signature table.
Answered 09/25/2007 by: danr29
Purple Belt

Please log in to comment
0
Hi ,

I am in the same line with one of the application.

The condition is i have a set of files to be installed if the files (old version) are already exist in the machine.

I tried to use SYSTEMSEARCH for a file with a property and set the component-condition with the property as (TEST = 1).

this works when the file is not present on the build.

But is fails to overrite the old file if it is present.

Could somebody pls suggest on this to get rid of the problem.

thanks in advance.
Answered 03/31/2011 by: sreedharko
Orange Belt

Please log in to comment
0
The problem got solved after trying for one hour.

Mistake: i am trying with TEST = 1 but actually Need to give the property name TEST in component - condition.

sorry for the post.
Answered 03/31/2011 by: sreedharko
Orange Belt

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