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 change the install state of a feature


1 reply to this topic

the][owl

the][owl
  • Members
  • 1 posts

Posted 15 July 2002 - 11:02

Hi there,
does someone know, how I can change the install state of features using InstallScript?
I want to detect language of OS where the product should be installed at. Depending on the language, i want to install an additional DLL. If you know chose the "typical" menu, then the DLL (e.g. German language DLL) should be installed. If you chose the "custom" setup, then the german-dll-feature should be selected as default.

custom setup menu looks like this:

- Main Application
- bla1
- Languages
- Dutch
x German
- English
- Russian
(the x is standing for the language which should be installed as default, cuz of being detect by previous routine)

If you can help me, please post! Thank you in advance.
Cheers, OWL
###
If it happens once, it's a bug. If it happens twice, it's a feature. If it happens more than twice, it's a design philosophy.
###

mgrove

mgrove
  • Members
  • 14 posts

Posted 15 July 2002 - 17:21

Look at MsiSetFeatureState() in the MSI documentation.  You have access to all the MSI calls (and constants) via Installscript.
:D