Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • SEARCH
  • Home
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 7925537
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 3, 20262026-06-03T18:20:07+00:00 2026-06-03T18:20:07+00:00

I am using win32 console application with out having any dependency with dotnet framework.

  • 0

I am using win32 console application with out having any dependency with dotnet framework.

I am using MsiOpenPackage API from C:\Windows\System32\MSI.dll.
While executing the API, it loads MSCOREE.dll in to my process.

The following line loads mscorwks.dll in to my process.

MsiDoAction(hInstall,_T("InstallValidate"));

MsiDoAction is other API from MSI.dll.

If i am running the application in clean windows XP OS (service pack 2) which doesn’t have dot framework installed, then these DLLS are not loaded in to my process but my application is working fine.

Is anyone know why these mscorwks.dll & MSCOREE.dll are loaded in to my process if dotnet framework is installed in the system?

My process in pure win32 console application and does not have any dependency with dotnet framework. At the time of starting the process, these 2 dlls are not loaded in my process. It is getting loaded while executing the functions MsiOpenPackage, MsiDoAction from MSI.DLL.

Please help me how to stop loading these DLLs in to my process.

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-06-03T18:20:09+00:00Added an answer on June 3, 2026 at 6:20 pm

    This is probably Windows Installer readying its support for manipulating .NET assemblies (such as for installing assemblies to the GAC). I suspect the only way to prevent this is to run on a machine without the .NET framework. If you don’t want it in your main process at all, perhaps you should do your Msi work in a helper process.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I am using the Win32 API call SetForegroundWindow to set focus to another application's
I'm using Microsoft.Win32.OpenFileDialog dlg in my WPF application. Is there any way to add
string registryKey = @SOFTWARE\Microsoft\Windows\CurrentVersion\Uninstall; using (Microsoft.Win32.RegistryKey key = Microsoft.Win32.Registry.LocalMachine.OpenSubKey(registryKey)) { (from a in key.GetSubKeyNames()
Using VS2010, I created a Win32 C++ console application called TfsBuildTestTarget. This is just
Possible Duplicate: Validate HWND using Win32 API How can I determent if the window
I have developed a Win32 application using C/C++, which runs on Vista and XP.
I created win32 console application in vs2010 (without select the option of precompiled header).
I'm trying to build a simple form in a c++ win32 console application. instead
How can I set the cursor position in a Win32 Console application? Preferably, I
I am using Delphi 2010, and when I created a console application that prints

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.