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

ConfigureFeature: how to use it?


2 replies to this topic

Andy Nguyen

Andy Nguyen
  • Members
  • 1 posts

Posted 24 August 2001 - 17:33

Hi,
I need to set some features' state to INSTALLSTATE_ABSENT/INSTALLSTATE_LOCAL depending on a checkbox selection, using VBScript in a custom action. Here is what I did,
---
Dim objInst
Set objInst = Session.Installer
objInst.ConfigureFeature( "{MyProductGUID}", "MyFeatueName", msiInstallStateAbsent )
---
I got Internal Error 2740 at runtime. Please help me out what I need to do to accomplish this. Thank you in advance.
P.S., I suspected it has something to do with msiInstallStateAbsent parameter, but could not find any documentation about it.

--Andy


David Bajgar

David Bajgar
  • Members
  • 33 posts

Posted 28 August 2001 - 09:27

Hi,
Try the MsiSetFeatureState function. Have a look to MSI Help Library.