cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
tbomgardner
Level 4

chained msi non-standard removal condition

Jump to solution

I have a chained msi installer that installs with a condition of Not Installed.

Uninstall should only occur if a particular unrelated file is not present.

I have created appropriate entries in the Signature, AppSearch, and DrLocation tables.  If the file in question is present, LOCATION_OF_GWA will contain the full path to the file; if the file is not located, this property will be undefined.

For the chained msi Removal condition, I need something like

REMOVE="ALL" And StrLengthChars(LOCATION_OF_GWA )=0

or

REMOVE="ALL" And Not Defined(LOCATION_OF_GWA )

How can I correctly specify this condition?

Labels (1)
0 Kudos
(1) Solution
Jenifer
Flexera Alumni

Hi @tbomgardner ,

In general AppSearch will fill the property if it could find the file from the entry of DrLocation else it would be undefined(Empty).You can add condition like:

REMOVE="ALL" AND LOCATION_OF_GWA <>""

 

Thanks,

Jenifer

View solution in original post

0 Kudos

(2) Replies
Jenifer
Flexera Alumni

Hi @tbomgardner ,

In general AppSearch will fill the property if it could find the file from the entry of DrLocation else it would be undefined(Empty).You can add condition like:

REMOVE="ALL" AND LOCATION_OF_GWA <>""

 

Thanks,

Jenifer

0 Kudos

Instead of LOCATION_OF_GWA <>"",  it would be simpler to use LOCATION_OF_GWA, as in 

REMOVE="ALL" AND LOCATION_OF_GWA

Simply using the name of a property in a condition evaluates to True if the property is defined (has any value) and False if the property is undefined (has no value).

0 Kudos