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
- :
- Re: Problem with custom software condition...
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
‎Aug 17, 2009
04:50 PM
Problem with custom software condition...
I need to check a registry value to see if it is set to a specific version and refuse install if it is the incorrect version. Is there a way to do this with the custom software conditions?
Jim
Jim
(3) Replies
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 18, 2009
11:06 AM
Sure, you can do this with a System Search with an associated Install Condition. Well, mostly--there's no built-in support for treating version strings as version comparisons here, so you'd have to settle for a string comparison.
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 18, 2009
03:06 PM
Text comparison is fine. The problem with a Version comparison is that the way versions are expressed are wide open. You would either have to define the format would allow for a range comparison or would have to have a complicated why of letting the user specify the numerical information in the string. I think that comparing a string will suffice for me.
One thing that would be nice is if the user could invoke a script passing the value in to it and it return a bool to say condition met or not met. Then he could tailor it to whatever he would want.
Just a thought for brainstorming of future features to add.
Thanks,
Jim
One thing that would be nice is if the user could invoke a script passing the value in to it and it return a bool to say condition met or not met. Then he could tailor it to whatever he would want.
Just a thought for brainstorming of future features to add.
Thanks,
Jim
- Mark as New
- Subscribe
- Mute
- Permalink
- Report Inappropriate Content
‎Aug 19, 2009
05:01 PM
That's already available by inserting a custom action between the two steps, and probably changing the condition on the launch condition (or type 19 error action). I say that because generally you would want your custom action to modify a different property, although it is certainly possible to make a custom action that normalizes the string representation of the version in its original property.