📎 AI Summary:
The forum thread discusses an issue with registering a shell context menu DLL in Windows 7, which causes the default system tray and quick launch icons to disappear upon restarting Explorer. The original poster resolves the problem by implementing a file-based check tied to a system service to ensure the context menu appears only when the application is active. Contributors express support and curiosity about the application, with the original poster confirming they're developing a tool to enhance Windows Explorer with custom context menu options and file status overlays. Overall, the thread reflects a helpful exchange troubleshooting Explorer restart issues related to custom shell extensions.

ashar

New Member
Joined
Oct 7, 2010
Messages
6
Thread Author #1
Hi,

I am trying to register a shell context menu dll in Windows7. For that it needed explorer to be restarted. I use inno setup(installer script) and in that script I tried to restart the explorer as an Administrator.

1. Stop Explorer
2. Register the DLL
3. Start Explorer.

When the explorer is restarted the default systray icons and quick launch icons are disappeared.

I have face the same issue if I try the explorer restart in Administrator command prompt.

If I stop the explorer in task manager and then restart via task manager all the icons come back without any issue.

but the context menu option (Right click context menu option created by me) has not been listed.

Has any one face this issue.?? is there any way to fix this.

Thanks in Advance..
 

Solution
Context Menu not showing issue has been fixed. I will only show the contextmenu if the application is running. Since my app is installed as a system service, it can't be find
by DLL. That is the issue..

I have fixed this by creating a file whenever the service get started and delete that when service stopped. By checking the existence of the file, I show the context menu..

k.. thanks.

ashar

New Member
Joined
Oct 7, 2010
Messages
6
Thread Author #2
Context Menu not showing issue has been fixed. I will only show the contextmenu if the application is running. Since my app is installed as a system service, it can't be find
by DLL. That is the issue..

I have fixed this by creating a file whenever the service get started and delete that when service stopped. By checking the existence of the file, I show the context menu..

k.. thanks.
 

Solution

Mike

Windows Forum Admin
Staff member
Premium Supporter
Joined
Jul 22, 2005
Messages
9,260
Welcome to the forums, ashar! Might I ask what program you are developing? I'm glad that (in this case) you found the solution to your own problem and reported it here.

Best,
Mike
 

ashar

New Member
Joined
Oct 7, 2010
Messages
6
Thread Author #4
I am currently working on showing context menu option of my application in Windows Explorer. Also setting icon overlay on files, that shows the file status to users (for eg, Modified, Uptodate....)like wise..

Thanks,