shortcut

Correct way to create shortcuts in user start menu CSIDL_STARTMENU

試著忘記壹切 提交于 2019-12-13 02:59:18
问题 I'm making a non-elevated software installer for Windows 10. The installer saves the application into C:\Users\USER_NAME\AppData\Local\MY_APP_NAME folder. It also creates a shortcut in C:\Users\USER_NAME\AppData\Roaming\Microsoft\Windows\Start Menu\Programs\ folder. The shortcut correctly appears in Start Menu, but it never appears in search results. I tried rebuilding the search index and ran Start Menu troubleshooter with no luck. I'm from Poland and thus Cortana is disabled on my machine.

VIM 7 and cscope: Using “cscope find f” inside a keyboard mapping for switching between files

蹲街弑〆低调 提交于 2019-12-12 18:22:05
问题 I usually hop between files on my cscope-indexed codebase by using :cscope find f <filename> I'm trying to define a keyboard shortcut to prevent me having to type ":cscope find f" everytime. Pressing this shortcut would bring up an input prompt, to which I'll enter part of a filename in the cscope database. If there are multiple files, it would show up the list of files, from which I can select the file I want to go to. I've got to this much so far, but since I'm not at all proficient with

I have made an installer for MyProgram but the uninstall shortcut that it creates leaves behind empty folders

半城伤御伤魂 提交于 2019-12-12 18:17:20
问题 I have created an installer for MyProgram using the Visual Studio Installer (Visual Studio Setup Project). It is called "MyProgram Setup.msi". It installs the program fine and if it is uninstalled using the Add/Remove Programs control panel then everything gets removed as it should. The problem is that I want to add a shortcut to the "User's Programs Menu" under the program shortcut called "Uninstall MyProgram". I have tried doing this in 3 different ways and in all 3 ways if MyProgram is

How can Windows file and folder shortcuts be created via C#.NET code?

喜欢而已 提交于 2019-12-12 17:06:56
问题 I'm building a repository folder and file structure with many dependencies in version control using .NET for our data warehouse. Currently I have code to create dummy files and folders with C# code (see below). However, there are objects being shared. So I'd like to create shortcuts to Windows files and shortcuts to Windows folders as well as files. What would the code look like in C# to accomplish this? Create Folder via C#.NET code: string activeDir = @"C:\Source\EDW\dw-objects\trunk\table

How to show underscore (shortcut) without holding Alt?

送分小仙女□ 提交于 2019-12-12 16:09:44
问题 I've created a form with ContextMenuStrip. I set its shortcut using Text field in following way: "&File". However, when I open this context menu by right mouse button click, underscore is shown only when I simultaneously hold Alt button. Is there a way to show underscore on a mouse click without holding Alt button? 回答1: You can modify the text rendering behaviour ( HidePrefix ) via a custom ToolStripSystemRenderer : namespace WindowsFormsApplication1 { public partial class Form1 : Form {

When should I not use the Java Shortcut Operator &

女生的网名这么多〃 提交于 2019-12-12 12:14:45
问题 My understanding is that when using && as an mathematical operation in Java, if the LHS (Left Hand Side) of an evaluation fails, the right hand side will not be checked, so. false && getName(); getName() would never be called as the LHS has already failed. false & getName(); When would I ever want to check the RHS if I know the LHS has failed? Surely any dependency on the RHS evaluation being ran would be bad coding practice? Thank you 回答1: Well the reason for & and && is not, that one

C# How to add my program to context menu?

烂漫一生 提交于 2019-12-12 11:14:59
问题 I have a c# executable file (created from a windows form application) and I would like to be able to add this file to the context menu. Furthermore, I should point out that I need to be able to add it to Windows XP, Vista, and 7. Thank you for any help, 回答1: It is not that difficult and it is called context menu. Check this out Add a context menu to the Windows Explorer Basically you will need to add item to the Registry.ClassesRoot.CreateSubKey registry. 回答2: Yeah add context menu using

Install optional desktop shortcut for all users

浪子不回头ぞ 提交于 2019-12-12 11:05:22
问题 I want to make a wix installer, with an optional desktop shortcut for all users. Optional means, I cannot put it in the component of the main exe, but in a separate component , so that I can set a separate feature for the shortcut. When doing this, wix complains: error LGHT0204 : ICE38: Component DesktopShortcut installs to user profile. It must use a registry key under HKCU as its KeyPath, not a file. So I set an aditional registry key like this: <Component Id="DesktopShortcut" Guid=

Check for existence of a shortcut pointing to a specific target in Inno Setup

半城伤御伤魂 提交于 2019-12-12 10:04:57
问题 In my Inno Setup installer I need to make sure a shortcut to a certain file is present in a folder. The name of the shortcut is arbitrary and not under my control. I only know which file it needs to point to. If the shortcut is missing, I need to generate the shortcut. If it is already present, it must not be created again. I guess that it is somehow possible to iterate through all shortcut files in the relevant folder and check which file they point to. In a comment to an answer to Shared

How do you add access keys (shortcuts) to a WPF ContextMenu, programmatically?

笑着哭i 提交于 2019-12-12 09:44:47
问题 I already have the following: var myContextMenu = new System.Windows.Controls.ContextMenu(); var exitItem = new MenuItem(); exitItem.Header = "E_xit"; exitItem.Item.Click += new RoutedEventHandler(new System.EventHandler(ExitProgram)); myContextMenu.Items.Add(exitItem); This causes my context menu to display the Exit menu item, with an underlined "x". However, pressing x does nothing. Clicking the menu item works fine. How can I associate an event with the x key? Please note that this has to