Add contextual menu to .config files - windows

I'm currently trying to add a contextual menu (right click menu) on a specific extension : .config
I managed to add a contextual menu to all files, unknown files, .jpg, and every other extension I've tried, except for .config, and I don't know why.
I even tried to use some external tools to do it. These tools worked for everything I tried, except .config again.
The .config register key has a master file type named config_auto_file.
I tried to create a \shell\My_command\command key on each of them (HKEY_CLASSES_ROOT\.config and HKEY_CLASSES_ROOT\config_auto_file) with no success. I'm now out of ideas.
An easy, similar test would be .jpg, which has a master file type too (jpegfile). And it works on this one while doing the exact same thing.
I'm on windows 7 and windows 10.
Thanks for your time on this.

I managed to do it thanks to another post on stackoverflow.
The "AppliesTo" on HKEY_CLASSES_ROOT* worked for me.

Related

Xcode does not allow me to specify file name when adding in SPM

I have a stand alone SPM (local) in my project. When ever I add any new files to this package Xcode does not show the prompt to specify the name. Usually when adding files in a project it requests the location which allows to specify a name. But when adding in a SPM it straight away creates a file with File.swift always.
I don't mind renaming but its just that the header is also having a generic File.swift
//
// File.swift
//
//
// Created by McDuck, Scrooge on 02/06/89.
//
Any work arounds ?
I have tried on Xcode 13.4 as well
#user5381191 I had the same problem. I did some searching and found this answer.
The file you want to edit is located in:
/Applications/Xcode.app/Contents/Developer/Library/Xcode/Templates/File Templates/Source/Package Swift File.xctemplate. Edit the TemplateInfo.plist.
As a test I just copied the TemplateInfo.plist file from the Multiplatform/Source/Swift File.xctemplate and it worked. EDIT: For some reason it worked, and then stopped working?
Copy the suggested plist text from the link above into your template file and it works!
Once I did that, I get a new file type "Package Swift File" in the New File dialog.
Instead of the standard file dialog, it gives a dialog for entering the file name. Better than before!
Make sure to save your old template file before making your changes, just in case you need to revert.
It doesn't insert the package name in the header. That might be a nice thing to try and get working, but I'm happy with this for now.
Actually it works as promised (according to Apple guidelines).
In this scenario (as shown on demo) a menu command without ellipsis (...), so no dialog expected.
Once file created Xcode enters edit-name mode, so we can specify a file name which we need.
The file hat is different question and can be edited in templates if needed, or not. Usually depends on project and might even not include file name at all, but for default template - yes we need to change it to align.
Tested with Xcode 13.4

Windows: How to associate developed software with a file type for context menu "open with"?

I'm not a Windows developer and my knowledge of the OS is very limited.
I wanted to write a very simply image viewer software for the Windows OS because such a thing doesn't seem to exist but we have such tools for Linux and they work well.
I am now at the stage where I have something working. But I have no idea how to "install the software program I have written" so that I can associate it with file types such as jpeg and other image files.
I have written this program in C++ although that probably isn't particularly important information.
The point being I am left with an executable file and no idea what to do with it.
I guess the first step to "install" it would be to create a directory in C:\Program Files\ and simply move the file there, although I'm sure I can do some research and figure out how to write an MSI installer to do that.
Where I become stuck is on other things, like how to create a start menu entry. (Desktop shortcut is easy it's just a link, moved to the users Desktop folder?) And then how to get a right click entry for file types such as PNG bmp and jpeg. (So that "open with" "my program" works)
I tried doing an internet search for this kind of thing but really didn't know what to search for. Can anyone offer me any advice on this or point me in the right direction?
Or is this perhaps the kind of thing I would just get an MSI to do everything for me?
For adding a Start Menu entry, you'd need to write a link into C:\ .ProgramData\Microsoft\Windows\Start Menu\Programs.
There you can add just the link to your application or put it in it's own folder. As for the Context Menu entries, there are two options: Adding it manually (But my guess is that you want your installer to do so) by selecting the exe or by modifying the registry.

I changed .jar to open with windows explorer, and now i can't change it to anything else

I recently changed the Default application for .jar files to be windows explorer, thinking that it would unzip them. I have since gotten a jar decompiler and would like to make windows explorer not the default application to open jar files ( as it basically crashes my computer). Nothing works, i have tried changing the default application by clicking open with, but the check box is greyed out. I have tried going Start menu -> Default Programs -> Associate a file type, but .jar doesn't even appear in the list. I have been googling for a couple hours now and can not find any response that isn't basically those two steps.
Does anyone have any idea how to fix this mess i made ?
Right click on a .jar, go to "Open With" > "Choose default program..." should do the trick. But you already did that, and "Choose default program..." was grayed out.
Edit:
Try FileTypesMan from Nirsoft
http://www.nirsoft.net/utils/file_types_manager.html
Go to .jar and select it, then you can see actions at the bottom and remove or edit them.
I Was able to fix it by messing around in the registry.
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\FileExts.jar\UserChoice
needed to be deleted. that let me choose a new default program for.jar files. Thank you for the responses.
Cheers.

Renaming namespaces in windows phone

Is it possible to rename the namespace, projectfolder, solution name in windows phone? I have a paid version and free version of app. The free version of the app has minor modification. So I tried copying the whole project folder of the paid version and tried renaming the namespace, solution name, foldernames. I landed up in a bag full of errors!!
Is there any way i can do this? or do I have to do it the hard way?, have to create a new project and files and Ctrl+C the whole content???
Could someone help me on this?
Alfah
Why do you want to rename the solution and project? If you want to change the name of the app, you just have to edit the manifest file.
If you really want to change the namespace, you can use Visual Studio's refactoring features: http://msdn.microsoft.com/en-us/library/6kxxabwd.aspx
Yes, but it's a 3-step process:
Rename all the namespaces, references, configuration etc (basically, everything you can find through full solution code search). Make sure it compiles.
Close solution. Rename files on the disk. Open the solution file in the Notepad, update the renamed folder references. Make sure that after opening the solution in VS it opens correctly.
In the project properties, select the Startup Object (http://www.jayway.com/2011/10/12/fixing-wp7-app-not-starting-after-project-rename/)
Yes definitely you can!
Please refer following steps
Open LocalizedStrings.cs and refactor namespace from it.
Rename project solution
Expand properties and open AppManifest file
Change the display name and tile title
Right click on solution file and select clean solution from contextual menu.
Here you are ready with your project with new name! Enjoy!

Why does vwd.webinfo always get automatically checked out from source control?

We have a 2008 solution that has a file system website as part of the solution. This solution is under source control with Team Foundation Server. Every time the solution is closed it either checks out a file called vwd.webinfo or attempts to and complains that someone else already has it checked out.
Removing the file from source control does not fix the issue because it gets re-added automatically for some reason.
Why does this happen and is there something we can do about it to remove this nag?
Thanks a lot!
open "source control explorer"
find vwd.webinfo in the correct path
click "delete"
chek-in the operation to solve this problem
The file will still be in your file system and solution, but not under source-control. You won't see "plus" or "v" or "lock" button
Go to Property Pages, select Build on the left, and uncheck "Build Web site as part of solution" Then you can delete the file and it won't get created automatically.
You should be able to delete this file manually and have it not reappear. This file holds some information that used to be located elsewhere in the project in earlier versions but apparently is not necessary. Close your solution before deleting the file from source control and on the disk.

Resources