Repost: problem uninstalling local msvcr71.dll

  • Thread starter Thread starter Sebastian Bargmann
  • Start date Start date
S

Sebastian Bargmann

Hi,

I'm installing a Windows service that use msvcr71.dll.

Microsoft
recommends that I install the file to my Program Files dir, which I have
done (I have pulled the file from the merge module and verified that the
module doesn't do anything special with the file). The file resides in its
own component.

I have no problem installing and my service runs just fine.

But when I uninstall while running MSDN Lib or Visual Studio 2003, MSI
complains that both of these processes have msvcr71.dll loaded (which they
have, but they're using the one in the System32 dir). I've verified that my
service uses the the one in my Program Files directory.

What's happening and how do I fix this??

Thanks :)
Sebastian Bargmann
 
Hi Stefan,

No, the component GUID is new. I pulled it from the original merge module to
keep my own setup as simple as possible.

Thanks :)
 
Hi again,

I just tried using the merge module instead - same problem :(

The thing that really bothers me is that it doesn't happen on all systems. I
have a more or less identical system setup on another computer, which
doesn't have this problem. I don't get it...
 
Relevant log entries:

Info 1603. The file C:\Program Files\MyApp\msvcr71.dll is being held in use
by the following process: Name: spoolsv, Id: 1316, Window Title: '(not
determined yet)'. Close that application and retry.
Info 1603. The file C:\Program Files\MyApp\msvcr71.dll is being held in use
by the following process: Name: mdm, Id: 1144, Window Title: '(not
determined yet)'. Close that application and retry.
Info 1603. The file C:\Program Files\MyApp\msvcr71.dll is being held in use
by the following process: Name: sqlmangr, Id: 2076, Window Title: '(not
determined yet)'. Close that application and retry.
Info 1603. The file C:\Program Files\MyApp\msvcr71.dll is being held in use
by the following process: Name: devenv, Id: 3636, Window Title: '(not
determined yet)'. Close that application and retry.
Info 1603. The file C:\Program Files\MyApp\msvcr71.dll is being held in use
by the following process: Name: dexplore, Id: 1324, Window Title: '(not
determined yet)'. Close that application and retry.

I have verified with SysIntenals Process Explorer, that none of the above
processes have loaded the DLL in my directory.
 
So it looks like Windows Installer only sees that "msvcr71.dll" is in use,
but doesn't notice that it's a different copy. I'm not exactly sure if
that's expected behaviour. But I wonder why this doesn't happen on other
machines. What's the difference between those machines? Maybe the MSI
version (version of msi.dll), or the version of VS or MSDN?

--
Stefan Krueger
Microsoft Windows Installer MVP

Please post your questions in the newsgroup or vist one of these web sites:

Windows Installer FAQ
http://www.msifaq.com - http://www.msifaq.de

InstallSite - Resources for Setup Developers
http://www.installsite.org
http://www.installsite.de (GERMAN)
 
Back
Top