/build/static/layout/Breadcrumb_cap_w.png

Leave .dll and .ocx when Uninstall?

Hi,

Quick question.
Is it allways prefered to leave .dll and .ocx files when uninstall a software?

0 Comments   [ + ] Show comments

Answers (7)

Posted by: Inabus 15 years ago
Second Degree Green Belt
0
No, you want to leave the machine in the same state you found it before you installed your software.

P
Posted by: gmorgan618 15 years ago
Blue Belt
0
If you are absolutely positive the file is not used by anyother program.

The components that install dll or ocx files are typically set to shared - which is done by setting the 8 bit in the component attribute. During installation, a shared component will increment its file's reference counter by 1, and during removal it will substract by 1- whichever installer sets the counter to 0 removes the file.

Reference counter location:
HKLM\Software\Microsoft\Windows\CurrentVersion\Shareddlls

If you just delete the dll and ocx you risk the chance of orphaning their respective registration in the registry, which may not matter - it's just not clean.

Not sure if I answered your question directly - hope it helps...

-Grant
Posted by: anonymous_9363 15 years ago
Red Belt
0
ORIGINAL: gmorgan618
The components that install dll or ocx files are typically set to shared - which is done by setting the 8 bit in the component attribute. During installation, a shared component will increment its file's reference counter by 1, and during removal it will substract by 1- whichever installer sets the counter to 0 removes the file.

Reference counter location:
HKLM\Software\Microsoft\Windows\CurrentVersion\Shareddlls
Spot on, G.

aXz, please don't take the reference to the registry entry above as an invitation to mess with that entry: DON'T! As Grant says, if the component attribute is set, the Windows Installer engine will take care of whether or not the file can be removed.
Posted by: aXz 15 years ago
Blue Belt
0
Ok.... So what I could do is to check my package in the Software Manager repository and write down the .dll's and .ocx's that is in used in other application we use and dont uninstall them? So I dont uninstall files that other softwares using...
Posted by: spartacus 15 years ago
Black Belt
0
I assume these are MSI based packages we are talking about here (?)

If you have access to a Conflict Manager tool (and you mention that you have a Software Manager repository, so it sounds like you have) then this should be able to show you conflicting applications competing for the same resource (DLL,OCX &c)

In that case, there's no need to "write them down". The conflict management tools from the major players such as WISE or InstallShield have the option to automatically resolve the conflicts by synchronising the GUIDS of conflicting components - or you can do it manually if you have the time and/or interest.

Regards,

Spartacus
Posted by: aXz 15 years ago
Blue Belt
0
Thanks.... I will do that.
Posted by: jmcfadyen 15 years ago
5th Degree Black Belt
0
have a read of these they are all related to your current issues and many of your recent posts.

Reference counting
http://johnmcfadyen.spaces.live.com/blog/cns!9DD01136FC094724!136.entry

Packagers guide to windows registry
http://johnmcfadyen.spaces.live.com/blog/cns!9DD01136FC094724!151.entry

Wise Software manager in depthhttp://johnmcfadyen.spaces.live.com/blog/cns!9DD01136FC094724!189.entry
Rating comments in this legacy AppDeploy message board thread won't reorder them,
so that the conversation will remain readable.

Don't be a Stranger!

Sign up today to participate, stay informed, earn points and establish a reputation for yourself!

Sign up! or login

Share

 
This website uses cookies. By continuing to use this site and/or clicking the "Accept" button you are providing consent Quest Software and its affiliates do NOT sell the Personal Data you provide to us either when you register on our websites or when you do business with us. For more information about our Privacy Policy and our data protection efforts, please visit GDPR-HQ