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

Disable a feature - accept user input


2 replies to this topic

vkj

vkj
  • Members
  • 15 posts

Posted 07 October 2002 - 12:25

How can I disable a feature in the custom setup dialog box initially? The user should be able to change the install state of the feature.
 The function MsiSetFeatureState in install script fails, when I try to do this. But when I use the same funciton in a VC++ dll, it works. Is there some way to make this work without using a VC++ dll?
  When I use the install shield REMOVE property, it disables all the features in the custom setup dialog box.

Stefan Krueger

Stefan Krueger

    InstallSite.org

  • Administrators
  • 13,269 posts

Posted 07 October 2002 - 13:02

Make sure the feature's install level is above the package's INSTALLLEVEL property

vkj

vkj
  • Members
  • 15 posts

Posted 08 October 2002 - 12:30

It worked when I set ADDLOCAL=ALL, along with REMOVE=<feature name>.

If you want the feature to be conditionally unchecked, you can set REMOVE="" using MsiSetProperty.