UsageCount - Advanced Installer Community

We’re moving our forums to a new platform.

You can still browse and search existing topics, but you can no longer create new topics or post replies.

For questions, technical issues, or feature requests, please don’t hesitate to contact our support team at support@advancedinstaller.com.

Thank you for your understanding!

Lee Bornstein
Posts: 23
Joined: Sat Feb 11, 2006 5:44 am
Location: Las Vegas, NV
Contact: Website

UsageCount

Can you explain how UsageCount is used in the Registry?

I assume that each install that registers a DLL will increment the Usage Count and on Uninstall the count is decremented till Zero then at that point the file is removed.

I have an ODBC Driver with entries in HKLM\Software\odbc\odbcinst.ini\DriverName that contains a UsageCount.
Image

Can I simply import the registry from a working system with UsageCount of 1 or what procedure do you suggest for proper install/uninstall?

Lee Bornstein
gigi
Posts: 2103
Joined: Tue Apr 11, 2006 9:55 am
Contact: Website

Hi Lee,
I assume that each install that registers a DLL will increment the Usage Count and on Uninstall the count is decremented till Zero then at that point the file is removed.
This does not have any connection with the Shared DLL reference count. The Shared DLL reference count is stored in the "\\SOFTWARE\\Microsoft\\Windows\\CurrentVersion\\SharedDLLs" registry key.

The UsageCount registry key represents how many open connections are made with that driver. It's ok to import it with the value of 1 or you can just ignore it (not import it at all).

Regards,
Gigi
______________
Gheorghe Rada
Advanced Installer Team
http://www.advancedinstaller.com
Lee Bornstein
Posts: 23
Joined: Sat Feb 11, 2006 5:44 am
Location: Las Vegas, NV
Contact: Website

Thanks GiGi.

I will leave things as they are then.

Regards,

Lee

Return to “Common Problems”