startmenu

How to pin to start menu using PowerShell

折月煮酒 提交于 2019-12-11 23:59:24
问题 I can pin some programs to taskbar on Win7 using PowerShell. $shell = new-object -com "Shell.Application" $folder = $shell.Namespace('C:\Windows') $item = $folder.Parsename('notepad.exe') $verb = $item.Verbs() | ? {$_.Name -eq 'Pin to Tas&kbar'} if ($verb) {$verb.DoIt()} How do I modify the above code to pin a program to the Start menu? 回答1: Another way $sa = new-object -c shell.application $pn = $sa.namespace($env:windir).parsename('notepad.exe') $pn.invokeverb('startpin') Or unpin $pn

How to close Start Menu with custom shortcut that launches in the background

女生的网名这么多〃 提交于 2019-12-11 14:31:44
问题 I have a custom shortcut filetype registered that defines custom verbs and handles them by implementing IContextMenu . Thus, when you click on one of these shortcuts in the Start Menu, all of the processing of that click gets routed to my IContextMenu implementation (with the default verb). The implementation launches a trampoline process, which identifies what action should be taken and then launches the actual application the user wants. What I am finding is that the Start Menu does not

URL Start menu entry missing on Windows 10 although installed

▼魔方 西西 提交于 2019-12-10 10:44:11
问题 I have a "normal" Setup and a "Pro" Setup of the same application. They have many things in common, so I use an #include "CommonThings.iss" Both versions can be installed in parallel, because they have a different AppId . In the common definition, I have [Icons] Name: {group}\Online documentation; Filename: "http://example.com/" but only one of them shows up in the Windows Start menu: Looking at the file system under C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Example C:\ProgramData

Windows10 script pin app to start menu

怎甘沉沦 提交于 2019-12-07 23:13:59
问题 I have a Universal App that I'm sideloading in Windows10. I would like to create a script (Powershell, VBS, batch, etc) to pin it to the Start Menu. I have found many examples of how to write a script that pins a desktop application (like this one: https://gallery.technet.microsoft.com/scriptcenter/Script-to-pin-items-to-51be533c ). I've tried using the script to pin the actual App .exe file located in C:\Program Files\WindowsApps... but that doesn't work. When I try and pin that way, I run

Windows10 script pin app to start menu

余生长醉 提交于 2019-12-06 06:33:29
I have a Universal App that I'm sideloading in Windows10. I would like to create a script (Powershell, VBS, batch, etc) to pin it to the Start Menu. I have found many examples of how to write a script that pins a desktop application (like this one: https://gallery.technet.microsoft.com/scriptcenter/Script-to-pin-items-to-51be533c ). I've tried using the script to pin the actual App .exe file located in C:\Program Files\WindowsApps... but that doesn't work. When I try and pin that way, I run DoIt(), which doesn't return anything. There are no error messages, but the tile is not pinned to the

URL Start menu entry missing on Windows 10 although installed

[亡魂溺海] 提交于 2019-12-06 05:36:05
I have a "normal" Setup and a "Pro" Setup of the same application. They have many things in common, so I use an #include "CommonThings.iss" Both versions can be installed in parallel, because they have a different AppId . In the common definition, I have [Icons] Name: {group}\Online documentation; Filename: "http://example.com/" but only one of them shows up in the Windows Start menu: Looking at the file system under C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Example C:\ProgramData\Microsoft\Windows\Start Menu\Programs\Example Pro the Online Documentation Internet Shortcut is

C++: How do I create a Shortcut in the Start Menu on Windows

会有一股神秘感。 提交于 2019-12-06 02:28:34
I would like to know how to obtain the path to the start menu folder on Windows and then create a shortcut to a path that might contain non-ASCII characters. Here is the solution. It uses Qt but it's also possible without. Then just use std::wstring instead of QString . For concatenating the paths and filenames you will then have to use string operations instead of using QDir . #include <shlobj.h> bool createStartMenuEntry(QString targetPath) { targetPath = QDir::toNativeSeparators(targetPath); WCHAR startMenuPath[MAX_PATH]; HRESULT result = SHGetFolderPathW(NULL, CSIDL_COMMON_PROGRAMS, NULL,

Custom Windows 7 Start Menu Search Provider

不想你离开。 提交于 2019-12-04 11:59:22
I'd like to write custom providers for start menu searching, but I can't seem to find where to begin. Things I'd like to be able to do when I type in the search box on the start menu Type "thomas" and see "IM Thomas" (if a Pidgin/whatever-IM-client-with-API contact exists with the name match) Type "=1+2*3" and see "7", or "=2 gallons in ounces" and see "256" Anything else I can think up where I have a store of custom data results that could be launched from the start menu. This would be especially useful for custom applications, letting our users type "order XYZ", which would search orders in

getting the “friendly” name for window startmenu items/shortcut files

强颜欢笑 提交于 2019-12-04 05:25:06
问题 This is curious, some startmenu items seems to resolve to a "friendly" name that's not contained in the actual .lnk file. For example: "c:\ProgramData\Microsoft\Windows\Start Menu\Programs\Accessories\System Tools\dfrgui.lnk" is displayed in explorer as "Disk Defragmenter", the actual shortcut file doesn't contain the real name either but links to the exe "C:\Windows\system32\dfrgui.exe"" Is this a Win32 API thing or is there a simpler way to get the "friendly" name of a file/start menu item?

How to detect when the Windows start menu / start screen opens?

久未见 提交于 2019-12-02 07:14:28
问题 How to setup an event-handler or callback for the Windows start menu (or Windows 8 start screen) opening? Or, at least, how to check if the start menu is currently open? I prefer a solution for this problem in C#, but a solution in C++ is also greatly appreciated. 回答1: Apparently the start screen visibility callback/event thing doesn't work for a desktop app (see the out- #if ed code below), but simple polling works nicely. #include <algorithm> // std::swap #include <functional> // std: