startmenu

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

老子叫甜甜 提交于 2019-12-02 04:58:29
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? There's a hidden file in that folder named desktop.ini . This is the content on my machine: [

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

我是研究僧i 提交于 2019-12-01 22:59:20
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. 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::function #include <iostream> #include <stdlib.h> // EXIT_FAILURE, EXIT_SUCCESS #include <stdexcept> // std:

Pin program to start menu using PS in Windows 10

陌路散爱 提交于 2019-12-01 09:02:46
问题 I am trying to pin a program to the start menu in Windows 10 $shell = New-Object -ComObject "Shell.Application" $Folder = $shell.NameSpace("C:\Test") $exe = $Folder.ParseName("notepad.exe") #$exe.Verbs() $ItemVerbs = $exe.Verbs() Foreach($ItemVerb in $ItemVerbs) { If($ItemVerb.Name.Replace("&","") -match "Pin to Start") { $ItemVerb.DoIt() Write-Host "Pin to the Start menu sucessfully.+ ""$ItermVerbTxt"" " -ForegroundColor Green } } After executing this code, i see the success message which

Inno Setup Start menu uninstall shortcut is not shown on Windows 10

旧时模样 提交于 2019-12-01 05:25:35
I've got an issue that seems to be specific to Windows 10 with the Start menu uninstall shortcut I create in my setup. The shortcut is simply not shown. However, others shortcuts I create are shown as well... Here is the value for DefaultGroupName : DefaultGroupName={#MyAppPublisher}\MyCompany\MySoftwareName Here are my entries for shortcuts in [Icons] section: [Icons] Name: "{group}\{#MyAppName} {#MyAppVersion}"; Filename: "{app}\MyExeName.exe"; WorkingDir: "{app}" Name: "{commondesktop}\{#MyAppName} {#MyAppVersion}"; Filename: "{app}\MyExeName.exe"; WorkingDir: "{app}"; IconFilename: "{app}

How to make full screen mode, without covering the taskbar using :wpf c#

╄→尐↘猪︶ㄣ 提交于 2019-12-01 03:27:57
I need to change windows taskbar in my WPF application. For that I set WindowStyle="None" , which means to disable the windows taskbar, and make custom taskbar with buttons for restoring, minimizing and closing the application. Now my problem is if the application is in maximize mode then I can't see the start menu on windows. I found a similar question here, but when I tried this code it didn't compile. full screen mode, but don't cover the taskbar How can I create my own taskbar and able to see the windows start menu when I maximized it? Is there a property window in xaml which can set it?

How can I disable the Start button (but not the Taskbar) on Windows 7?

你。 提交于 2019-12-01 02:15:20
On Windows XP, it was possible to disable the Start button with the following code: hTray = FindWindow (TEXT("Shell_TrayWnd"), NULL); if (hTray) { hStartButton = FindWindowEx(hTray, NULL, TEXT("Button"), NULL); if (hStartButton) ShowWindow(hStartButton, FALSE); } For a public-access computer configuration, I need to be able to do this on Windows 7. The Start button must be disabled (not just hidden), and the remainder of the Taskbar must still be visible and usable. Hiding the Taskbar along with the Start button is not an option. Running full-screen is not an option. Using "Start Killer" won't

How to make full screen mode, without covering the taskbar using :wpf c#

喜夏-厌秋 提交于 2019-11-30 23:57:33
问题 I need to change windows taskbar in my WPF application. For that I set WindowStyle="None" , which means to disable the windows taskbar, and make custom taskbar with buttons for restoring, minimizing and closing the application. Now my problem is if the application is in maximize mode then I can't see the start menu on windows. I found a similar question here, but when I tried this code it didn't compile. full screen mode, but don't cover the taskbar How can I create my own taskbar and able to

How can I disable the Start button (but not the Taskbar) on Windows 7?

一个人想着一个人 提交于 2019-11-30 20:19:26
问题 On Windows XP, it was possible to disable the Start button with the following code: hTray = FindWindow (TEXT("Shell_TrayWnd"), NULL); if (hTray) { hStartButton = FindWindowEx(hTray, NULL, TEXT("Button"), NULL); if (hStartButton) ShowWindow(hStartButton, FALSE); } For a public-access computer configuration, I need to be able to do this on Windows 7. The Start button must be disabled (not just hidden), and the remainder of the Taskbar must still be visible and usable. Hiding the Taskbar along

Is it possible to 'Pin to start menu' using Inno Setup?

断了今生、忘了曾经 提交于 2019-11-27 23:09:34
I'm using the excellent Inno Setup installer and I notice that some Applications (often from Microsoft) get installed with their launch icon already highly visible ('pinned?') in the start menu (in Windows 7). Am I totally reliant on the most-recently-used algorithm for my icon to be 'large' in the start menu, or is there a way of promoting my application from the installer please? It is possible to pin programs, but not officially. Based on a code posted in this thread (which uses the same way as described in the article linked by @Mark Redman) I wrote the following: [Code] #ifdef UNICODE

Is it possible to 'Pin to start menu' using Inno Setup?

时光怂恿深爱的人放手 提交于 2019-11-26 21:23:48
问题 I'm using the excellent Inno Setup installer and I notice that some Applications (often from Microsoft) get installed with their launch icon already highly visible ('pinned?') in the start menu (in Windows 7). Am I totally reliant on the most-recently-used algorithm for my icon to be 'large' in the start menu, or is there a way of promoting my application from the installer please? 回答1: It is possible to pin programs, but not officially. Based on a code posted in this thread (which uses the