Requesting a Feature
There are several functions an application must call to request features. Before requesting a feature, the application must ensure that the feature is installed. If the application calls MsiUseFeature before the application accesses a feature, the application can use the information returned to maintain usage metrics.
To request a feature
- Call the MsiEnumFeatures or the MsiQueryFeatureState function if you want to determine the availability of a feature without incrementing the usage count.
- Indicate your application's intent to use a feature by calling the MsiUseFeature function.
- Determine file locations by calling the MsiGetComponentPath function.
- Configure the feature by calling the MsiConfigureFeature function.
- Obtain usage metrics that your application can use by calling the MsiGetFeatureUsage function.
The following diagram illustrates the feature request model.
Opinia
https://aka.ms/ContentUserFeedback.
Dostępne już wkrótce: W 2024 r. będziemy stopniowo wycofywać zgłoszenia z serwisu GitHub jako mechanizm przesyłania opinii na temat zawartości i zastępować go nowym systemem opinii. Aby uzyskać więcej informacji, sprawdź:Prześlij i wyświetl opinię dla