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 feature/component


3 replies to this topic

Codename Anger

Codename Anger
  • Members
  • 1 posts

Posted 01 August 2001 - 11:39

I want to disable (+not visible) a feature/component
in the Installscript. I tried MsiSetFeatureState()...but it didn´t work...Please help me!


Kelly Russell

Kelly Russell
  • Members
  • 72 posts

Posted 01 August 2001 - 19:08

disable/not visible based on what? And why in InstallScript?

David Bajgar

David Bajgar
  • Members
  • 33 posts

Posted 14 August 2001 - 08:00

I tried it and it worked.
I used the function MsiSetFeatureState(hMSI, "TestFeature", INSTALLSTATE_ABSENT) and I inserted this action into the Execute sequence after the InstallValidate action. This feature was not installed.

David


pRabbit

pRabbit
  • Members
  • 2 posts

Posted 27 February 2002 - 21:46

David,

why did you add the MsiSetFeatureState after InstallValidate ? Which is the first sequence after that I may add MsiSetFeatureState actions ?