- 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
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?
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
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
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).