473,839 Members | 1,594 Online
Bytes | Software Development & Data Engineering Community
+ Post

Home Posts Topics Members FAQ

Edanmo Shell Extension: How to Install it?

Hi,

I'm trying to use the Edanmo Shell Extension Library
(http://www.mvps.org/emorcillo/en/cod...tensions.shtml) to make
a Context Menu in the Windows Explorer with VB.NET 2005. It seems realy easy
to use this library:
- I inherited from ContextMenuHand lerBase
- I made the assembly COM-visible
- Registered for COM interop

But I don't always get what I want:
- When I debug it, it nicely opens a Windows Explorer, and I can use my
Shell Extension in that window. But when I debug again, I can't because the
files in the bin-directory are write enabled!
- I added a Setup project to it, installed it, and soemtimes it works,
sometimes it doesn't. When I des-installed it, and isntalled it again, it
didn't work anymore...

I searched for it the whole day yesterday, and it really drives me crazy :-/
What am I missing? Should I add something to the isntaller? Custom Actions
after isntalling? Add and remove some registry-keys myself?

Any help would be really apreciated!!!

Thanks a lot in advance,

Pieter
Feb 16 '06 #1
6 1613
I'm trying to use the Edanmo Shell Extension Library
(http://www.mvps.org/emorcillo/en/cod...tensions.shtml) to make
a Context Menu in the Windows Explorer with VB.NET 2005.
Before you spend more time on this, you should think twice if you
really want to do this in VB.NET. There are good reasons not to write
shell extensions in managed code. See

http://blogs.msdn.com/junfeng/archiv...18/494572.aspx

- When I debug it, it nicely opens a Windows Explorer, and I can use my
Shell Extension in that window. But when I debug again, I can't because the
files in the bin-directory are write enabled!


You should configure Explorer to launce each window in a separate
process so you can simply close the window to release any loaded
libraries.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Feb 16 '06 #2
Hi,

Thanks for the answer.
It's alreaddy the second time that you warn me not to use VB.NET for a shell
extension. This time with a reason why I shouldn't do it.
I understand the problem, but what are the other options? 'm not a C++
expert, so actually, the only solution you give me is not developing a shell
extension...

Is there somewhere out there an easy (and free!) shell extension library
that can be easily adapted to my needs?
And can I call in my shell extension a .NET class library once the users
clicks the option without running the mentioned risk?

Thanks,

Pieter

"Mattias Sjögren" <ma************ ********@mvps.o rg> wrote in message
news:Ol******** ******@TK2MSFTN GP11.phx.gbl...
I'm trying to use the Edanmo Shell Extension Library
(http://www.mvps.org/emorcillo/en/cod...tensions.shtml) to
make
a Context Menu in the Windows Explorer with VB.NET 2005.


Before you spend more time on this, you should think twice if you
really want to do this in VB.NET. There are good reasons not to write
shell extensions in managed code. See

http://blogs.msdn.com/junfeng/archiv...18/494572.aspx

- When I debug it, it nicely opens a Windows Explorer, and I can use my
Shell Extension in that window. But when I debug again, I can't because
the
files in the bin-directory are write enabled!


You should configure Explorer to launce each window in a separate
process so you can simply close the window to release any loaded
libraries.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Feb 17 '06 #3
Pieter,

I am not sure of this, however Net is a from Win32 and WinFX independend OS
layer.
(Before the discussion starts, it uses parts of that, however know itself
what parts).

Using yourself expliciet parts of one of those which does maybe not exist in
a version, makes it in my idea less easy to move in future.

Just my thought,

Cor
Feb 17 '06 #4
Pieter wrote:
I understand the problem, but what are the other options? 'm not a C++
expert, so actually, the only solution you give me is not developing
a shell extension...
I think you will have to learn some C++ or get somebody else to write it for you.
Is there somewhere out there an easy (and free!) shell extension
library that can be easily adapted to my needs?
I'm sure you will find some useful articles on CodeProject.
And can I call in my shell extension a .NET class library once the
users clicks the option without running the mentioned risk?


No, all you can really do is launch a new .NET application.

--
Jim Barry, MVP (Windows SDK)
Feb 17 '06 #5
>It's alreaddy the second time that you warn me not to use VB.NET for a shell
extension.


Sorry, didn't mean to nag about it. It's just a recommendation I post
whenever I see people attempting this, hopefully to prevent them to
shoot themselves in the foot.

I think Jim answered your other questions.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.
Feb 18 '06 #6
No problems. Sorry myelf too, I was just getting a little bit frustrated not
finding any solutions, hehe.

Although, do you think that it could be a problem in my situation:
- only for inside the company
- only 2.0 .NET framework-applications

"Mattias Sjögren" <ma************ ********@mvps.o rg> wrote in message
news:%2******** ********@TK2MSF TNGP12.phx.gbl. ..
It's alreaddy the second time that you warn me not to use VB.NET for a
shell
extension.


Sorry, didn't mean to nag about it. It's just a recommendation I post
whenever I see people attempting this, hopefully to prevent them to
shoot themselves in the foot.

I think Jim answered your other questions.
Mattias

--
Mattias Sjögren [C# MVP] mattias @ mvps.org
http://www.msjogren.net/dotnet/ | http://www.dotnetinterop.com
Please reply only to the newsgroup.

Feb 20 '06 #7

This thread has been closed and replies have been disabled. Please start a new discussion.

Similar topics

2
4180
by: Sin | last post by:
Hello everyone, I'm totally stumped at how little info I can find in MSDN or on the web concerning this. It's almost as if only microsoft personel hold the key to these secrets or something!!! I'm currently writting a program in which there is a file/folder list which mimics part of Explorer's list. I've got it pretty much cornered, but I still have a couple of problems :
4
2724
by: yxq | last post by:
Hello Can anyone tell me Context Menu shell extension? It is better that provide some samples or links. Thanks
5
4614
by: gjuro kladaric | last post by:
it was not possible to make a shell extension from within VB2003, I believe has anything changed since then, can I (easily) write a VB code that would function as a shell extension thank you gjuro
6
1687
by: Pieter | last post by:
Hi, I'm trying to use the Edanmo Shell Extension Library (http://www.mvps.org/emorcillo/en/code/shell/shellextensions.shtml) to make a Context Menu in the Windows Explorer with VB.NET 2005. It seems realy easy to use this library: - I inherited from ContextMenuHandlerBase - I made the assembly COM-visible - Registered for COM interop
0
4095
by: lushdog | last post by:
Hi, i'm writing a shell extension in c# that will add two menu's to the right-click menu of explorer if any file is selected, i.e. it's registered in the * section of Classes in the registry. Here is the problem. If i select one file and use the standard OPEN context menu, for a .txt file let's say, all is well, but if i select two or more files and use the standard OPEN context menu it seems to want to run through the code snippet for...
1
2213
by: James Maeding | last post by:
I was looking for the easiest way to add an item to explorer's right click menus, and I found what looks to be a goldmine. There is a vb.net project available on: http://www.mvps.org/emorcillo/en/code/shell/shellextensions.shtml that encapsulates the ugly stuff and gives an easy way to make the dll explorer will look for as the extension handler. Only problem is, I don't see how it "runs". All the other progs to do shell extensions are...
3
2586
by: Shafiq | last post by:
Hi, I am trying to insert a new toolbar button to the windows explorer menu. I an able to locate the correct ToolbarWindow32, and inserted a button using the code snippet shown below. However the toolbar button text is coming in jung characters. Any help will be greatly appreciated. Int32 iBitmap = 0;
2
1934
by: Jeff Gaines | last post by:
I am in the process of upgrading to XP 64. VS2008 is running fine but one of my apps, which adds functionality to the Explorer context menu, just won't work under XP 64. Googling resulted in my finding an article saying that MSFT recommends against writing shell extensions in managed code and does not consider them a supported scenario. So, can anybody point me to any articles relating to writing shell extensions in non managed code...
5
2908
by: AGP | last post by:
I have been looking far and wide for an easy to implement shell extension. My needs are basic...for two file extensions .YYY and .ZZZ I would like the context menu in explorer to simply show my app icon and "Open with MyCooolApp". Are there any recommendations for a shell extension code base? I am trying to look for one that is easily changed and compiled and will run as a unique extension to my app. Rgds AGP
0
9856
marktang
by: marktang | last post by:
ONU (Optical Network Unit) is one of the key components for providing high-speed Internet services. Its primary function is to act as an endpoint device located at the user's premises. However, people are often confused as to whether an ONU can Work As a Router. In this blog post, we’ll explore What is ONU, What Is Router, ONU & Router’s main usage, and What is the difference between ONU and Router. Let’s take a closer look ! Part I. Meaning of...
0
9698
by: Hystou | last post by:
Most computers default to English, but sometimes we require a different language, especially when relocating. Forgot to request a specific language before your computer shipped? No problem! You can effortlessly switch the default language on Windows 10 without reinstalling. I'll walk you through it. First, let's disable language synchronization. With a Microsoft account, language settings sync across devices. To prevent any complications,...
1
10654
by: Hystou | last post by:
Overview: Windows 11 and 10 have less user interface control over operating system update behaviour than previous versions of Windows. In Windows 11 and 10, there is no way to turn off the Windows Update option using the Control Panel or Settings app; it automatically checks for updates and installs any it finds, whether you like it or not. For most users, this new feature is actually very convenient. If you want to control the update process,...
0
10297
tracyyun
by: tracyyun | last post by:
Dear forum friends, With the development of smart home technology, a variety of wireless communication protocols have appeared on the market, such as Zigbee, Z-Wave, Wi-Fi, Bluetooth, etc. Each protocol has its own unique characteristics and advantages, but as a user who is planning to build a smart home system, I am a bit confused by the choice of these technologies. I'm particularly interested in Zigbee because I've heard it does some...
0
9426
agi2029
by: agi2029 | last post by:
Let's talk about the concept of autonomous AI software engineers and no-code agents. These AIs are designed to manage the entire lifecycle of a software development project—planning, coding, testing, and deployment—without human intervention. Imagine an AI that can take a project description, break it down, write the code, debug it, and then launch it, all on its own.... Now, this would greatly impact the work of software developers. The idea...
1
7833
isladogs
by: isladogs | last post by:
The next Access Europe User Group meeting will be on Wednesday 1 May 2024 starting at 18:00 UK time (6PM UTC+1) and finishing by 19:30 (7.30PM). In this session, we are pleased to welcome a new presenter, Adolph Dupré who will be discussing some powerful techniques for using class modules. He will explain when you may want to use classes instead of User Defined Types (UDT). For example, to manage the data in unbound forms. Adolph will...
0
5867
by: adsilva | last post by:
A Windows Forms form does not have the event Unload, like VB6. What one acts like?
1
4493
by: 6302768590 | last post by:
Hai team i want code for transfer the data from one system to another through IP address by using C# our system has to for every 5mins then we have to update the data what the data is updated we have to send another system
2
4066
muto222
by: muto222 | last post by:
How can i add a mobile payment intergratation into php mysql website.

By using Bytes.com and it's services, you agree to our Privacy Policy and Terms of Use.

To disable or enable advertisements and analytics tracking please visit the manage ads & tracking page.