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

condition on a dialog


2 replies to this topic

bernadettefearon

bernadettefearon
  • Members
  • 94 posts

Posted 03 September 2001 - 14:11

Hello All
I wondered if someone could confirm if this is the right way to set a condition on a dialog which will start a custom action to install mdac if the user does not already have it on their machine
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\DataAccess=false
thanks
Berni

kris

kris
  • Members
  • 77 posts

Posted 06 September 2001 - 22:11

You can use the Property/AppSearch/RegLocator tables to search for this registry path....then if the registry key exists, it will set the value of your property to this value.....so, for example, I do:

Property Manager:  Name = JREINSTALLED
                                  Value =  (nothing)

(In Power Editor)
AppSearch:             Property = JREINSTALLED
                                 Signature = REGJRE
RegLocator:           Signature = REGJRE
                                 Root = 2
                                 Key = SOFTWARE......Java Runtime Environment/1.3.1(path to key)
                                 Name = JavaHome (keyname)

If my user already has jre installed, it sets the JREINSTALLED property to the value of "JavaHome"....if it's not installed, it gives JREINSTALLED no value....so the condition on my CA is "Not JREINSTALLED", so it will run the jre install if the user doesn't have it installed already.  

If I am unclear, let me know!!  Thanks!
kris