Feature Requests item #1978744, was opened at 2008-05-29 23:53
Message generated for change (Tracker Item Submitted) made by Item Submitter
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642717&aid=1978744&group_id=105970

Please note that this message will contain a full copy of the comment thread,
including the initial issue submission, for this request,
not just the latest update.
Category: compiler
Group: None
Status: Open
Priority: 5
Private: No
Submitted By: Rob (rmacfadyen)
Assigned to: Nobody/Anonymous (nobody)
Summary: Class element additional attributes 

Initial Comment:
It would be handy if the Class element supported the following attributes:
MiscStatus
ToolboxBitmap32

It would also improve the syntax of the Class element if it supported:
ProgId
VersionIndependentProgID

In combination these would allow for a Class element to handle a broader
range of COM objects (eg. typical GUI components created using ATL).

Instead of:
<Class Id="{someguid}" Context="InprocServer32" Description="Description of
control" ThreadingModel="apartment" Version="1.0" Control="yes"
Programmable="yes" Insertable="yes">
<ProgId Id="Prog.Object.1" Description="Description of control">
<ProgId Id="Prog.Object" Description="Description of control" />
</ProgId>
</Class>
<RegistryValue Root="HKCR" Key="CLSID\{someguid}\MiscStatus\1"
Value="12312" Type="string" Action="write" />
<RegistryValue Root="HKCR" Key="CLSID\{someguid}\ToolboxBitmap32"
Value="[!myobject.dll], 1" Type="string" Action="write" />

You could use:
<Class 
Id="{someguid}" 
Context="InprocServer32" 
Description="Description of control"
ThreadingModel="apartment"
Version="1.0" 
Control="yes" 
Programmable="yes" 
Insertable="yes"
ProgId="Prog.Object.1"
VersionIndependentProgId="Prog.Object"
MiscStatus="12312"
ToolboxBitmap32="[!myobject.dll], 1"
/>

These changes are more than mere cosmetics. The goal is to allow a COM
object's registration to be centralized into a single location in the .wxs
file (ie. the Class element). 

Along those lines perhaps a more general solution would be better. Some
sort of <Registeration> child element. This element would work like
RegistryValue and/or RegistryKey. Then whatever registry values required
for a COM object would appear directly beneath its Class element.

Note: If these changes are made then corresponding changes will be needed
for the COM harvestor in heat.


----------------------------------------------------------------------

You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642717&aid=1978744&group_id=105970

-------------------------------------------------------------------------
This SF.net email is sponsored by: Microsoft
Defy all challenges. Microsoft(R) Visual Studio 2008.
http://clk.atdmt.com/MRT/go/vse0120000070mrt/direct/01/
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to