Product GUIDs and component GUIDs
Posted: Fri Dec 03, 2010 1:34 am
Our products are using a logger service (=Windows Service). This logger is used by several(all) of our products.
Currently each product installer is installing it's own logger (in it's own folder) and as a consequence uninstalling that product will lead to the removal of the service (or at least the reference in the Windows Services Console). This is not nice for other products relying on the logger.
Obviously this needs to be improved. I know that MSI is using component GUIDs to handle this.
From "What's New in Windows Installer 4.5: Overview" (http://blogs.msdn.com/b/heaths/archive/ ... rview.aspx)
Quote:
Shared components prevent files from being uninstalled when another product is referencing those files. When components in different products have the same component GUID, those components are ref-counted.
My problem is that I can't find the equivelant for component GUID in InstallAware. I'm not sure how to proceed. I'd like a 'plan of attack'.
- What do I need?
- Can I set component GUIDs?
- Where do I set them?
- I found something called 'Light Setup mode', is it relevant?
- I believe I need to create a MSI for the logger and include this MSI in the MSI of the product. If I do that will that work? Will that use the component GUID references count?
Currently each product installer is installing it's own logger (in it's own folder) and as a consequence uninstalling that product will lead to the removal of the service (or at least the reference in the Windows Services Console). This is not nice for other products relying on the logger.
Obviously this needs to be improved. I know that MSI is using component GUIDs to handle this.
From "What's New in Windows Installer 4.5: Overview" (http://blogs.msdn.com/b/heaths/archive/ ... rview.aspx)
Quote:
Shared components prevent files from being uninstalled when another product is referencing those files. When components in different products have the same component GUID, those components are ref-counted.
My problem is that I can't find the equivelant for component GUID in InstallAware. I'm not sure how to proceed. I'd like a 'plan of attack'.
- What do I need?
- Can I set component GUIDs?
- Where do I set them?
- I found something called 'Light Setup mode', is it relevant?
- I believe I need to create a MSI for the logger and include this MSI in the MSI of the product. If I do that will that work? Will that use the component GUID references count?