Jump to content


This is a ready-only archive of the InstallSite Forum. You cannot post any new content here. / Dies ist ein Archiv des InstallSite Forums. Hier können keine neuen Beiträge veröffentlicht werden.
Photo

System Search


3 replies to this topic

JLanda

JLanda
  • Full Members
  • 3 posts

Posted 26 August 2005 - 15:05

I have a Basic MSI install project. I would like it to be installed only if 1 of 4 possible registry entries are present on the target system. If 1 of the 4 is found - the install will proceed, if one is NOT found - the install will display a dialog and abort.

Until recently my experience has been w/ InstallScript projects only, so Basic MSI is new to me. I've read numerous articles on the Microsoft and Macrovision sites about how to do this, but have not been able to get it to work properly.

I've tried the following:
  • Using the System Search Wizard in InstallShield to create the condition.
  • Followed the Microsoft article HOW TO: Use Launch conditions in a Microsoft Windows Installer Package.

In both cases, the install never detects the value.

Is what I am trying to do possible? I would appreciate any help in solving this issue.


VILEPARLE

VILEPARLE
  • Members
  • 2 posts

Posted 26 August 2005 - 16:16

Should work with System Search

Go to the System Search Wizard.
1st Dialog What Do you want to Find.
Select Registry entry
2nd Dialog What do you want to look for it.
Select Root, Key and Valuename
3rd Dialog What do you want to do with the value
Give New Property Name in CAPS.
Choose Radio button that says Store the value in the property and use as Install condition.

Save the project , Build The MSI and it should work.

JLanda

JLanda
  • Full Members
  • 3 posts

Posted 26 August 2005 - 20:03

Thanks. I got it to work as long as the search value was located in the (Default) String.

Could you tell me or point me to a resource to do the following??
  • Search for a specific String or DWORD value in the key.
  • Search for multiple values and if one is not found, abort the install.


Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 26 August 2005 - 22:13

You can use the >< operator to detecxt of a string is in a string. So you could build a condition like:
SEARCHRESULT >< "findme"
which evaluates to true if SEARCHRESULT includes "findme"

You can use that in a LaunchCondition.