Bugs item #1350404, was opened at 2005-11-07 07:30
Message generated for change (Settings changed) made by justinrockwood
You can respond by visiting: 
https://sourceforge.net/tracker/?func=detail&atid=642714&aid=1350404&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: votive
Group: v2.0
>Status: Pending
Resolution: None
Priority: 5
Submitted By: shirata (shirata)
Assigned to: Justin Rockwood (justinrockwood)
Summary: Deleting Wix Reference deletes the underlining Wixlib file

Initial Comment:
Bug:

When one right clicks on the Wixlib reference file and 
choose the "Delete" option, the option  remove the wixlib 
reference and *delete* the underlining wixlib file.  One 
will now have to repair the installation in order to add the 
wixlib reference again.  The proper option should 
be "Remove".  "Open" and "Open With" option also 
does not seem to be a valid option.

Fix:

WixLibraryFileHierarchyNode in 
WixLibraryFileHierarchyNode.cs needs the following 
methods overwritten:

public override CommandStatus 
QueryStandard97CommandStatus(VsCommand 
command)
                {
                        CommandStatus 
status = CommandStatus.Unhandled;

                        switch (command)
                        {
                                case 
VsCommand.Remove:
                                
        status = 
CommandStatus.SupportedAndEnabled;
                                
        break;

                                case 
VsCommand.Delete:
                                case 
VsCommand.Open:
                                case 
VsCommand.OpenWith:
                                
        status = 
CommandStatus.NotSupportedOrEnabled;
                                
        break;

                                default:
                                
        status = 
base.QueryStandard97CommandStatus(command);
                                
        break;
                        }

                        return status;
                }

                public override bool 
ExecuteStandard97Command(VsCommand command)
                {
                        bool supported = true;
                        switch (command)
                        {
                                case 
VsCommand.Delete:
                                case 
VsCommand.Remove:
                                
        this.RemoveFromProject();
                                
        break;

                                default:
                                
        supported = 
base.ExecuteStandard97Command(command);
                                
        break;
                        }

                        return supported;
                }


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

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


-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
WiX-devs mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/wix-devs

Reply via email to