Bugs item #1631288, was opened at 2007-01-09 01:17
Message generated for change (Comment added) made by robmen
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1631288&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: heat
Group: v3.0
>Status: Pending
>Resolution: Fixed
Priority: 5
Private: No
Submitted By: appel (appel__)
Assigned to: pmarcu (pmarcu)
Summary: Heat skips empty keys
Initial Comment:
In RegistryHarvester.cs line 203 the value names of a key is enumerated. But if
the key is empty nothing is done.
This means that keys like HKCR\CLSID\{GUID}\Implemented Categories\{GUID} are
skipped.
----------------------------------------------------------------------
>Comment By: Rob Mensching (robmen)
Date: 2008-02-21 22:28
Message:
Logged In: YES
user_id=991639
Originator: NO
Should be fixed in next build.
----------------------------------------------------------------------
Comment By: appel (appel__)
Date: 2007-01-09 03:06
Message:
Logged In: YES
user_id=893425
Originator: YES
To get around this I changed the return type of
RegistryHarvester.HarvestRegistry and all methods that depend on it to
ISchemaElement and added the following before the enumeration on line 203:
if (1 < parts.Length && registryKey.SubKeyCount == 0 &&
registryKey.ValueCount == 0)
{
Wix.RegistryKey emptyKey = new Wix.RegistryKey();
emptyKey.Action = Wix.RegistryKey.ActionType.create;
emptyKey.Root = root;
emptyKey.Key = parts[1];
registryValues.Add(emptyKey);
}
Maybe not the cleanest solution and I don't have a CVS client installed
here so I can't create a patch. I did a local build of Wix and it looks
like this solved my issue at least.
----------------------------------------------------------------------
You can respond by visiting:
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1631288&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