- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- chained msi non-standard removal condition
- Mark Topic as New
- Mark Topic as Read
- Float this Topic for Current User
- Subscribe
- Mute
- Printer Friendly Page
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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?
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
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).
![](/skins/images/D60DF682EA37BF37032955CE10F3F0BB/responsive_peak/images/icon_anonymous_message.png)