Sign in to follow this  

Windows Installer SDK woes

This topic is 4857 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Recommended Posts

Hi, I am trying to make an application that will uninstall Outlook automatically (upon user confirmation, of course) for an automated configuration of client computers. I'm not sure how to proceed about this. I've looked at MsiConfigureFeature, which seems to be what I should be using. I can find the Product GUID for Office, but I don't know how to get the Feature ID of Outlook. If I just put L"Outlook" in the szFeature argument, it fails - just as I would expect - with MSI claiming an "Error 2711. An internal error has occured. (Outlook)". If I try to enumerate features with MsiEnumerateFeatures as follows:
Quote:
LPWSTR feature[MAX_FEATURE_CHARS + 1], parent[MAX_FEATURE_CHARS + 1]; DWORD fi = 0; while ( MsiEnumFeatures( L"{90110409-6000-11D3-8CFE-0150048383C9}", fi, ( LPWSTR )feature, ( LPWSTR )parent ) != ERROR_NO_MORE_ITEMS ) { wcout << fi << " - " << feature << " - " << parent << endl; ++fi; }
I get 300 Features all with a feature ID of 0012FE3C and a parent ID of 0012FD98. So I'm not really sure what to do at the moment. Any help would be greatly appreciated. jflanglois. [edit] MsiEnumFeatures actually does nothing with the feature and parent variables, since they initialize with those values. So I imagine I am using MsiEnumFeatures incorrectly. [edit2] MsiEnumFeatures returns ERROR_SUCCESS though...

Share this post


Link to post
Share on other sites

This topic is 4857 days old which is more than the 365 day threshold we allow for new replies. Please post a new topic.

If you intended to correct an error in the post then please contact us.

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this