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

How to set reg key with the features name?


1 reply to this topic

TAL

TAL
  • Members
  • 77 posts

Posted 25 July 2001 - 09:49

Hi All,

What I need to do is as follow:
I need to create are key, which hold the info of which features are installed.
I've tried using ADDLOCAL property, but it only works on the first time.
meaning, it is not being modified.
lets say I have 3 features, and I would like to install only feature A. the reg key with the ADDLOCAL property is set correctly with the information that feature A is installed.
but then, if I am modifying my installation, by adding another feature, the reg key remains the same. it is not being modified with the new status of installed features.

Has anyone has an idea?

Thank u.


Martin Aigner

Martin Aigner
  • Full Members
  • 133 posts

Posted 25 July 2001 - 14:53

The easiest way to do that is creating a CU (VBScript, JavaScript or InstallScript) and use Session.FeatureRequestState("A") (VBScript and JavaScript) or MsiGetFeatureState (InstallScript) to query the Feature state.

With the investigated states you can set a Property by calling Session.Property("MYPROPERTY") = strResult (VBScript or JavaScript) or MsiSetProperty (InstallScript). This Property you can write into the registry [MYPROPERTY].

I hope this will help you.