code for creating context menu does not works properly - windows

when i install an application it should add an item to windows explorer context menu using system registry.
but it gives an error that "SOME OR ALL IDENTITY REFERENCES COULD NOT BE RESOLVED"
KINDLY HELP

I achieved it but not fully.......
with the help of creating keys in registry i added an item to windows explorer context menu using c#.the context menu item appears for foleders like mycomp etc but not for files say abc.txt...just as winrar does...
waiting fr reply................

You need to start your application using
"Run as Administrator"
Then this error wont come up,i think its a problem with Windows-7

Related

JetBrains IDE Error on start : The application was unable to start correctly (0xc000007b)

I have got this error, but hardly could find the solution after 2 times reinstalling my IDE and even I installed 'All in One runtimes' but it couldn't help since I think the problem originally started after I changed few settings in windows defender setting and then tried to reset them.
But sure others have reported this problem and had no idea of what had happend all of a sudden to get following error when trying to run the application:
JetBrains IDE Error on start : The application was unable to start correctly (0xc000007b)
The application was unable to start correctly (0xc000007b)
*1 - which in my case was Phpstorm64.exe running on windows 10
I just felt there is no 'easy to find' solution for this occurring problem, so I decided to post it on Stackoverflow
In my case this was helpful and worked for me:
just disable ASLR (Address space layout randomization) from windows defender
in Windows 10 you should follow these steps:
open Settings (just right-click on windows start and choose
settings)
search for 'Windows Defender Settings' or just go to 'Update & Security' > 'Windows Security'
then open 'App & browser control', in the new opened window scroll down to the end to find 'Exploit protection settings', click
that
sort of settings will be shown and you can change the default settings. to create an exception you should click "Program settings"
(which doesn't seem to be a button,but it is!)
click 'add program to customize', in the dialog enter your ide name.exe (you can easily find it by clicking 'open file location' on
shortcut of the application)
in my case the application name was 'phpstorm64.exe'
next you have to look for 'force randomization for images (Mandatory ASLR)' check the 'override system settings' and switch it off and apply settings.
I'm not sure if it's needed,but turning off 'Randomize memory allocations (Bottom-up ASLR)' stated to work for others
I would appreciate if you help to get a complete solution for this problem , thanks
The crash is probably caused by ASLR Windows feature, the relevant ticket in the JetBrains issue tracker: IDEA-184029
Please check if the following workaround:
Turn the feature off globally or for a specific executable path https://learn.microsoft.com/en-us/microsoft-365/security/defender-endpoint/customize-exploit-protection
helps

Error installing GitHub desktop "Application cannot be started, contact the application vendor."

I've recently upgraded from windows 7 to windows 10 and when installing GitHub desktop, I'm getting the following error:
"Application cannot be started, contact the application vendor."
When I click on details, there is the following error:
"Unable to install this application because an application with the same identity is already installed."
I tried several troubleshoots, such as:
running the .exe file as administrator;
deleting the 2.0 folder from Local/apps/
disabling windows defender
But none of them seems to work. I cant understand what the problem may be, since I had no trouble installing github desktop on windows 7.
EDIT This method solved my problem:
Hold Windows button + R
Type in %TEMP%
Delete the entire content of temp.
I fixed this problem by adding permissions to the UserName for the of the folder containing GitHub.exe:
Using the explorer paste "%UserProfile%\AppData\Local\Apps\2.0
In the search box write "github.exe"
In the result list right-click the file & select open file location.
Right click the folder -> Properties->Security
Click [Edit...] for "Group or user names:"
Add the account user name to the list giving it full permission.
This may not apply to your situation, but here is what fixed the problem for me:
Find this file:
C:\Users[YOUR USER NAME HERE]\AppData\Local\GitHub\TheLog.txt
In that file, search for this string:
"System.Security.SecurityException: Requested registry access is not allowed."
If you find that, look down from that line, one at a time, until you find mention of some specific application. For me it was MS Visual Studio:
"at GitHub.IO.ExternalProgramLauncher.IsVisualStudioInstalled()"
Running as an administrator, run regedit and look for keys related to the application in question. If access to reading them is denied, rectify that by right-clicking on the name of the key and choosing 'permissions'. (I decline to provide instructions on how to use the permissions interface here, but it is fairly straightforward) If you can grant yourself permission, that may fix your problem. It worked for me.
If you want to find the exact correct key, download and use a tool from MicroSoft called 'Process Monitor'. Unfortunately, even when you filter to show only registry events, you will still have at least 25,000 or so to look through, and the list is not sortable. >_< This was not exactly easy, but by scrolling up from the bottom and looking for 'ACCESS DENIED' in the unsortable 'Result' column for a while I was able to find the exact registry event where access was denied which caused GH DT to fail. In my case it was this key:
HKEY_CLASSES_ROOT\VisualStudio.DTE.14.0
I ran regedit using my admin account, and ran it 'as administrator', found the key and changed the permissions. Oddly, it only worked when I added 'Administrators' (plural). When I added 'Administrator', it still refused to allow access to the key.
Hope this is related to your problem, or someone's who reads this. :)
Simply right click on the installation file and run as admin. It will automatically adjust itself to your system settings and install without error.

Windows 7: Property Handler works in Explorer but Not FileOpenDialog?

Working on writing a custom property Handler for our custom file type in windows 7. I have installed the Windows 7 SDK and built the sample Property Handler. After registering the handler, it works great in Windows Explorer, but in the common file open dialog the custom values do not appear. Does anyone know if there is something special I need to do to get the properties to appear in common dialogs?
Explorer:
File Open Dialog:
OK, figured it out. Here is the deal. My app is 32 bit and I am on a x64 system. Because the PropertyHandler is written in x64 to support the shell out of process. But for the file open dialog it needs to run inprocess, so the x64 dll can not run. I confirmed this by creating a quick x64 app and the fileopen dialog works the same as the OS. Hope this helps someone else in my shoes later on, hate answering my own question, but don't want people wasting NRG on this one as I found the solution.

Eclipse Plugin to show Windows Explorer context menu

I am looking for a good plugin showing Windows Explorer context menu directly from editor window in Eclipse. Does anybody know such plugin?
I'm a little late to the game with this answer, however since I found this article when trying to find a solution to this i'll post it here. There's an answer over at http://www.eclipsezone.com/eclipse/forums/t77655.html that solves this simply.
under Window -> External Tools -> External Tools Configuration
(1) Create a new Program (select Program in the tree)
(2) name it shell (or whatever you want)
(3) set the location to ${env_var:SystemRoot}\explorer.exe
(4) set the arguments to /select,${resource_loc}
(5) run it
for me it appears up in the tool bar at the top in it the little external tool run (run with a toolbox)
simple, effective and doesn't require any installation especially when all i really needed was to have a file focused, and rapidly get to the windows folder that contains it.
For people who don't want to install Aptana (It's kinda huge), here are a few plugins for a windows context menu in eclipse(and more):
contextmenu
Basic
Eclipse Navigator Extension
Basic + copy path
StartExplorer
Only opens explorer, but also does it on selected text (if it's a path) and has custom commands.
Some more info on Eclipse explorer menu's after trying them:
Failed to install (Some error with osgi)
Has 2 Eclipse context menu's:
Copy path (full, file, parent)
Show Context Menu (it's the basic version though, some of the context menu items that I can see in real Explorer don't show up here)
Has 1 Eclipse context menu (StartExplorer) with submenu's:
Show in File manager
Start Shell here
Open file with default application
Copy resource path to clipboard
Custom commands, which you can set in preferences and default ones:
Edit in notepad
echo to temp file
So, although (3) StartExplorer doesn't really have a context menu and everything sits in a submenu, the custom commands dominates in my opinion. It should allow a contextmenu through it (command to be found) or achieve what you want by cloning the behavior you want from your context menu.
It also seems like the code has been updated more recently than the others (and it supports multiple platforms)
For my custom paste I am not using the Paste from eclipse , I have created a new context menu Paste Objects by adding a new command .
I have added the handler : PasteObjectsHandler for the command which extends AbstractHandler .
Command
<command
categoryId="org.eclipse.ui.category.edit"
description="%pasteobjectscommand.description_xmsg"
id="com.test.pasteobjectscommand"
name="%pasteobjectscommand.name_xtit">
</command>
Handler
<handler
class="com.test.PasteObjectsHandler"
commandId=" com.test.pasteobjectscommand ">
</handler>
public class PasteObjectsHandler extends AbstractHandler {
#Override
public Object execute(ExecutionEvent event) {
Clipboard clipBoard = new Clipboard(Display.getDefault());
LocalTransfer instance = LocalTransfer.getInstance();
IResource clipboardData = (IResource) clipBoard.getContents(instance);
}
}
And in the handler I try to access the clipboard in the execute method . And I get null here .
I have written a plug-in that can open the Windows Explorer context menu:
ContextMenuPlugin
I wrote it a long time ago, but I still maintain it.
I will add EasyShell plugin for Eclipse, it has that functionality and more.
Have a look at that:
https://anb0s.github.io/EasyShell/
Aptana, it will give you context menu.

Using "run as" with Visual Studio debugger

Is there any way to use the "Run As" option in Windows XP in conjunction with Visual Studio's debugger, to debug an issue that occurs in my application only when certain users are logged in?
I have ran the application from my machine using "run as" to pretend to be the user in question, and I got the same error as they did. I would like to debug this error and see where and what exactly is causing it. The error occurs specifically when a certain domain user is logged in, and never otherwise.
Is there any script or approach I can take to debug this error; that is too launch the application, as the problem user, and then use the debugger?
Trying to attach to the process didn't work since it was a C# managed process and VS didn't let me attach.
The first two options that come to mind are...
Log onto the machine as the user (simplest approach)
Right-click on the Visual Studio executable and run as that user.
I think that you could edit the .config file to use impoersonation, but I'm not sure if that will result in the app running truly the way it would for the user.
Although with good error handling, the error message itself should be enough to tell you where in the code the problem is... At the very worst, you could compile it in debug mode (so you have all the symbols) and add some global error hanlding and get the exact stack trace...
I use David Strattons second solution (run as Administrator) because my application requires administrator privileges (-> elevated).
Another solution could be to start the application as the user and use "Debug | Attach to process..."

Resources