This website uses cookies. By clicking Accept, you consent to the use of cookies. Click Here to learn more about how we use cookies.
Turn on suggestions
Auto-suggest helps you quickly narrow down your search results by suggesting possible matches as you type.
- Revenera Community
- :
- InstallShield
- :
- InstallShield Forum
- :
- Trying to understand install conditions
Subscribe
- 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
Jan 02, 2010
12:29 PM
Trying to understand install conditions
Using IS Pro 2010 SP1 and trying to exit the install if a specific product (not mine) already exists on the target.
Added a property OTHERAPP with no value
Added a search for registry key Local_Machine \SOFTWARE\SomeCompany\Product
Added search as an install condition naming OTHERAPP
Added message
No matter what I do, the messagebox always launches, whether the regKey exists or not.
I expect that *if* the regKey exits and the condition resolves to False *then* the install will abort. So I made the condition OTHERAPP=FALSE which should be the same as if the regKey exists, abort correct?
Anyway, regardles of whether I make the condition =False or =True, or =0 or =1 or >=0 or =< 0 it always launches the message rather than just launching if the regKey exists.
What am I doing wrong?
/*tom*/
Added a property OTHERAPP with no value
Added a search for registry key Local_Machine \SOFTWARE\SomeCompany\Product
Added search as an install condition naming OTHERAPP
Added message
No matter what I do, the messagebox always launches, whether the regKey exists or not.
I expect that *if* the regKey exits and the condition resolves to False *then* the install will abort. So I made the condition OTHERAPP=FALSE which should be the same as if the regKey exists, abort correct?
Anyway, regardles of whether I make the condition =False or =True, or =0 or =1 or >=0 or =< 0 it always launches the message rather than just launching if the regKey exists.
What am I doing wrong?
/*tom*/
(4) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jan 04, 2010
08:14 AM
Try removing the property from the Property table. An AppSearch (system search) will create the property if the item (the regkey) exists, but will not create it if the item didn't exist.
In the LaunchCondition, then, if the property doesn't exist, the message box will display. (Action will take place if condition evaluates to false.) The fact that you added the property to the Property table means it always exists.
FYI, if the regkey exists, the value of your property won't be "true" or "false", it will be the value of the regkey you searched for.
Hope this helps.
In the LaunchCondition, then, if the property doesn't exist, the message box will display. (Action will take place if condition evaluates to false.) The fact that you added the property to the Property table means it always exists.
FYI, if the regkey exists, the value of your property won't be "true" or "false", it will be the value of the regkey you searched for.
Hope this helps.
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jan 04, 2010
11:47 PM
The system search adds the property in “securecustomproperties” in property manager. It retrieves the value during runtime and it won’t write the property name.
Not applicable
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jan 05, 2010
12:24 AM
Local_Machine \SOFTWARE\SomeCompany\Product is a key without name? It means you are trying for (default) value. Check the value in (default).
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
Jan 05, 2010
09:52 AM
Now I understand, thanks. I'll remove the property.
And yes, I am looking for the key name 'default' as the product I am searching for creates the key with no value.
Thanks all...
/*tom*/
And yes, I am looking for the key name 'default' as the product I am searching for creates the key with no value.
Thanks all...
/*tom*/