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

INSTALLDIR from registry


5 replies to this topic

denisq

denisq
  • Members
  • 4 posts

Posted 24 January 2003 - 11:20

hello!

what can i do if i want the installdir depending on a registry entry. the default installpath shoud be read from the registry.

thanks,

Quentin Denis

tl0

tl0
  • Members
  • 49 posts

Posted 24 January 2003 - 22:08

This is fairly easy - You can do this with a custom action:  grab the value from the registry in installscript RegGetDBRegistryValue or some similar function and store the value in the INSTALLDIR property using MSiSetProperty.

denisq

denisq
  • Members
  • 4 posts

Posted 25 January 2003 - 11:27

and if i want the setup to quit if the entry is not present?

tl0

tl0
  • Members
  • 49 posts

Posted 21 April 2003 - 19:58

QUOTE (denisq @ 2003-01-25 10:27)
and if i want the setup to quit if the entry is not present?

Easy - if you create a Property value called "IsRegPresent" and assign it a 0 - if not present. and 1 - if it is present within the custom action that you wrote.

now that the property is set, you can check for this property in the install sequence. if 0, then quit.

meg

meg
  • Members
  • 2 posts

Posted 25 April 2003 - 09:44

How do you get the value of the INSTALLDIR into the vbscript portion of a custom action ?
is it a normal property ?



rmadassery77

rmadassery77
  • Members
  • 52 posts

Posted 27 April 2003 - 18:58

snippet :

Dim myProp
myProp = session.Property("INSTALLDIR")
Rajiv Madassery
Galway Scripting Center
Digital GlobalSoft Ltd.
(Subsidiary of Hewlett-Packard Company)