Getting InstallShield Prerequisite Conditions to Function Properly

Filed under Installations

Here’s the “Prerequisite condition editor” dialog from InstallShield 2009:

image

The first snag I ran into was determining what the difference was between a registry entry having a “specified value” and one having a “specified version value”.

It’s certainly not clear from this dialog, since both options show the same set of properties at the bottom of the screen.

It’s also not in the help file or documentation online anywhere that I could find.

Come to find out, the former performs a “stringwise” comparison, whereas the latter performs a numeric comparison. Pretty important distinction.

Then there’s that “Run this prerequisite if the specified registry value data has the following relationship to the existing data” frame. huhwha?

I had to read that one more than a few times to grok what it’s actually trying to say, and that’s never a good sign.

Top it off with the fact that a call to InstallShield support verified that the sentence logic itself is backwards. Even the developers couldn’t read it right!

End result. Let’s say you want to install your prerequisite if registry value x is non-existent or 1.

In that case, you’d need to set the condition as a “Registry entry has a specified version value” type condition, you’d set the registry key and value names appropriately, and finally you’d set a “value data” to 1 and set the relationship to “is less than”, even though that is the opposite of what the dialog reads.

435 Comments

  1. Karthikeyan says:

    Thanks a lot. I was confused about the type of condition. You mada it clear. Thanks again….

  2. Prashant says:

    Very helpful information.
    Saved a lot of time for me.
    One of the reasons Installshield sucks big time, considering switch to Installaware.

    • Darin says:

      Glad it helped. Yes, installshield is pretty awful. Maybe better now, I don’t know.

      I used to use WISE a lot, but I’m not sure it’s even still around (the Wikipedia article says it’s discontinued).

      Another good and free alternative is InnoSetup. It’s not as sophisticated, but for simple and quick installs, it’s tough to beat.

Post a Comment

Your email is never published nor shared. Required fields are marked *

*
*