cancel
Showing results for 
Show  only  | Search instead for 
Did you mean: 
Michael_McBrine
Level 4

Question...

I was wondering IF anyone had the reason why Installshield Defaults Components to Shared when you create new components?:confused:

Does it have to do with enforcing best practices?

--Thanks
--Mike
Labels (1)
0 Kudos
(3) Replies
TsungH
Level 12

If yo look at Attributes column of Component Table, If this bit (msidbComponentAttributesSharedDllRefCount) is set, the installer increments the reference count in the shared DLL registry of the component's key file. If this bit is not set, the installer increments the reference count only if the reference count already exists. To ensure proper reference count, it is set to Yes by default.
0 Kudos
Michael_McBrine
Level 4

Tsung,
Thanks for the reply, that is sort of inline with what I was thinking. Do you know if there is anyway to set this to "Not Shared" as the default action?
0 Kudos
TsungH
Level 12

Unfortunately, I don't. I remember seeing others asking for the same thing on the forums, but I don't remember seeing a solution. Someone did recommend having a script to automate the process of changing it from Yes to No on all components. It may be something to consider if you have more than a handful of components.
0 Kudos