Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 9 years ago.
Improve this question
1) If I open a new vb6 standard exe project and don't add any code but just
2) compile right away to the desktop and give it a name containing the word 'Update' it has a UAC shield overlaying it.
And then if I run it I get the UAC dialog.
I have no antivirus except microsoft essentials on my windows vista home basic computer.
If it doesn't have Update (even just leaving out the letter 'e') in the name there's no UAC and no shield on the program's dialog.
I imagine that this is just an oddity on my computer or is there a list of words that trigger UAC?
This has nothing to do with VB6. It's a Windows feature called Installer Detection Technology introduced with Windows Vista. You can read it up on this TechNet page. Basically, installer detection applies to
32-bit applications
Applications without a requestedExecutionLevel
Interactive processes running as a Standard User with LUA enabled
Also mentioned is a check for certain keywords in the filename like "install," "setup," "update," etc. You can easily check this by renaming your compiled executable and/or adding a manifest.
Related
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 1 year ago.
This post was edited and submitted for review 1 year ago and failed to reopen the post:
Original close reason(s) were not resolved
Improve this question
How to open Microsoft To Do (2.56.43053) from command line of Windows 10 Enterprise (1909). I need this answer in order to create keyboard shortcut to AutoHotkey. There might be also be another way to open the program in AutoHotkey.
So far, I have managed to open Microsoft To Do from Windows menu
or from taskbar
.
However, I did not find way to launch Microsoft To Do from command line.
From the properties of "Microsoft To Do" in Task Manager, I found that the program is located in C:\Program Files\WindowsApps, however, I do not have access to the folder from the command prompt.
It is weird to have a program which can be launched from the menu or taskbar, but cannot be launched otherwise.
From what I have read on different sources, you would have to set this up yourself.
Even though I think you should be able to launch any Microsoft app from the command line (other than the microsoft store app with the command: start ms-windows-store), like Linux does, not every app supports that from what I see.
These are the sources that I have read about how to do the setup of launching Microsoft apps from the command line.
Microsoft Community: https://answers.microsoft.com/en-us/windows/forum/all/starting-windows-10-store-app-from-the-command/836354c5-b5af-4d6c-b414-80e40ed14675
Tent Forums: https://www.tenforums.com/software-apps/57000-method-open-any-windows-10-apps-command-line.html
Edit by Heikki (questioner):
According to the links you may
first create a shortcut from the original application and
then call the shortcut from the command line: "Microsoft To Do.lnk"
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 2 years ago.
Improve this question
Microsoft released Windows terminal as a Microsoft Store app. How to add it to the context menu or replace 'Open Powershell window here' with it ?
There might have been several approaches discussed everywhere, but none of them is up-to-date nor offers flexibility. So I started a new open source project and provided two PowerShell scripts to help.
https://github.com/lextm/windowsterminal-shell
You can run install.ps1 as administrator in PowerShell 7 to easily add the default layout.
There are other layouts (mini and flat at this moment).
Uninstall the menu items are also easy with uninstall.ps1.
The Win-X Menu shortcuts are stored in %LOCALAPPDATA%\Microsoft\Windows\WinX and in the Computer\HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\CurrentVersion\ShellCompatibility\InboxApp part of the registry, but the file explorer option is the one that really dictates what happens in the Win-X menu. I do not suggest just adding and changing stuff in the WinX folder because you could mess things up, however, the winaero.com/comment.php?comment.news.30 app in the link provides a way in which you wouldn't mess it up. Either way, you should put "%programfiles%\WindowsApps\Microsoft.WindowsTerminal_0.11.1121.0_x64__8wekyb3d8bbwe\WindowsTerminal.exe" in either a shortcut in the WinX folder, or in the app named accordingly.
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 7 years ago.
Improve this question
I bought a notebook recently and will give it to someone else on their birthday. That person, however, is not good with computers yet and so I wanted to create a full-screen app that would introduce them to the computer. The app works perfect, the thing is just that I need it to start when logging in to their account (just once, too, obviously).
I know there's a folder in which you can place executables that then will be executed at login, however, that is simply not fast enough.
When the PC boots and the automatic login is done, the desktop is shown for about 3 minutes until the full-screen app finally opens (the laptop is not really a powerhouse tbh though).
How can I make it open the app faster? Or could I maybe make Windows not start explorer.exe until my app is open? Thanks.
(OS is Windows 10)
There are multiple ways to do this.
One is by using registry. You can add necessary registry entry under:
HKEY_CURENT_USER\Software\Microsoft\Windows\CurrentVersion\RunOnce
This would run your application right after the user logs in.
Another one would be to create a new task through Task Scheduler:
When creating tasks you have lots of option to control when it starts. You can start it at log-on of specific user, you can start it even before user log-on so you can explain the user of how to properly log-on to the computer, etc.
You can also control if this task is executed once or every time.
I personally would go for second option as it does not require any manual registry editing and therefore it can be setup even on non-administrative account.
You can change the registry to accomplish this.
You can modify the "Shell" key at
HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\Winlogon
to the full path of your program.
This should replace explorer.exe and your program should start "explorer.exe" and set this registry's value back to "explorer.exe" after it's started.
References:
How can I start up Windows without explorer loading up?
Closed. This question does not meet Stack Overflow guidelines. It is not currently accepting answers.
This question does not appear to be about a specific programming problem, a software algorithm, or software tools primarily used by programmers. If you believe the question would be on-topic on another Stack Exchange site, you can leave a comment to explain where the question may be able to be answered.
Closed 8 years ago.
Improve this question
This is a pretty small thing, but I have been getting into more and more windows coding, and recently began finding myself in a terminal (msysgit, powershell). However, something that bugs the CRAP out of me is that there is no full screen modes, and they have to be resized
So my question:
For any windows 8 users, are terminals (msysgit, powershell, cmd) maximable / customizable at all?
I HAVE used console2 (http://www.hanselman.com/blog/Console2ABetterWindowsCommandPrompt.aspx), but while it is resizable, it does not maximize.I am weighing if whether my next computer will be a mac or windows, and this info will be useful in making that decision. I am getting tired of crazy work-arounds to get simple things changed in windows.
Windows doesn't really have "terminal" windows (except for those provided by a third party). Windows has a console subsystem which PowerShell, cmd.exe and any other console program you write, run in. The Windows console subsystem is old, hasn't changed much and is definitely showing its age. While there is a maximize button on every console window, as you have no doubt noticed, it doesn't maximize the window to full screen.
For script editing, I would use PowerShell_ISE or Visual Studio with the PowerShell Tools for VS add-in. To enable a number of BASH-like line editing features in PowerShell, you should check out PSReadLine on GitHub. It makes using PowerShell much nicer.
Closed. This question is off-topic. It is not currently accepting answers.
Want to improve this question? Update the question so it's on-topic for Stack Overflow.
Closed 11 years ago.
Improve this question
In my external usb harddisk when I click on only the folder names "MISC" I get the error
Microsoft Visual C++ Runtime Library
Program: C:\Windows\Explorer.EXE
This application has requested the Runtime to terminate it in an unusual way. Please contact the application's support team for more information.
Other folders open perfectly without the error.I tried changing the folder name but it did not help.I can use windows explorer to open/expand the folder and sub folder on the left.If I open the root of the folder MISC I get the error.Tried sfc /scannow,avg virus scan of the drive,spybot s&d scan of the system.All clean.No new program was Installed recently.Please guide what to do!
This application has requested the Runtime to terminate it in an unusual way.
This occurs when some code linked to the MS C runtime calls the C abort function. Since Explorer doesn't rely on the MS C runtime the most logical conclusion is that you have a misbehaving shell extension. Shell extensions are loaded into the Explorer process and can quite easily wreak havoc like this. I would try this disk on a different machine to test out that theory. Or find a tool that disables shell extensions.