can I specify a program to always run as administrator? - windows

I sometimes forget to open VS as administrator or some other IDE such as titanium.
is there any way to specify under windows that I want a program to always run as administrator?

Right click and open "Properties".
Click on "Advanced Button" at the bottom of the "Shortcut" tab
Check "Run as administrator"

there are two ways to accomplish this.
appcompat: create a shortcut, open its properties, click "compatibility", check "run as administrator.
manifests: you can add a manifest to exe files to tell windows what privilege level is required. more details on this here:
http://msdn.microsoft.com/en-us/library/windows/desktop/aa375365%28v=vs.85%29.aspx
you want especially the "requireAdministrator" flag
http://msdn.microsoft.com/en-us/library/bb756929.aspx
if you need more detailed explanations just ask, i have a manifest template on another computer i can post if you want.

If you're running W7 then yes - right click the short cut and look at Properties > Advanced Properties. You should see an option there to "Run as Administrator"

Yes, you can. These works on Windows:
Right click on the icon of the program -> Properties -> Compatibility -> "Run this program as administrator"
Next time you will use it as administrator.

Related

WinMerge on Windows 10: RightClick Compare does not work

In Windows 10, when using Windows Explorer, "Winmerge" context menu execution does not do anything. In other words, when clicking on the "WinMerge" option in the right-click contextual menu, nothing happens.
I've tried both WinMerge-2.16.0-x64-Setup.exe and WinMerge-2.16.0-Setup.exe
I have had the same problem. The solution for me was:
Checking the box "Add WinMerge folder to your system path".
When running the -Setup.exe, make sure you right-click it, and select "Run as administrator". ;-) Yep. That simple.

Can't send document to PSPad

I have installed PSPad as a texteditor on my system. The problem is when I right click a document it does not give me the option to send the document to PSPad. Is there under Windows 7 any way that I could tell the OS to add PSPad to this list of applications where documents could be sent to?
Go to [Settings]->[Program Settings...]->[System integration]
Select [Register in System context menu] and one or all of the other checkboxes under this.
You may need a system restart after this for it to take effect.
Run PSPad as Adminstrator (right click on PSPad icon in start menu)
Uncheck Register in System context menu in Menu | Settings | Program Settings... | System Integration
Apply
Check again
OK
That's it. You only need to do it once when running PSPad as Adminstrator.

Is it possible to configure VS2010 to always run as Administrator?

Does anyone know if you can do this by default rather than having to use context menu?
Yes, right click on your visual studio.exe -> property, go to 'Compatibility' tab, check "Run this program as administrator", click ok to save.
Detailed step by step guide here.
Create a shortcut, go to its' Properties, click Compatibility tab, under Privilege Level, check 'Run this program as an Administrator'.
Now, everytime you double click the shortuct, it'll run as an Admin.
VS itself does not provide this option, but you can modify the respective shortcut to always run the program as a certain user.
Thomas
No doubt there is. There are also ways you can run all your programs as root under Linux. I still wouldn't actually do that since it's a bad idea. The first dodgy plug-in you install will zombify your system.

Disable WerFault.exe/"Application Has Stopped Working" crash dialog

I have a development tool that's crashing on launch, and I don't get to see any error messages it throws, or get a chance to debug it, because it shows the Windows 7 dialog for crashed programs, where it says "Windows is checking for a solution..."
I want to have my old school big ass assert dialog box back, with a big "DEBUG" button. I have JIT completely enabled in Visual Studio's options and settings, so I'm not sure why I'm not getting the option.
Use Regedit, navigate to the below path:
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows\Windows Error Reporting\DontShowUI]
Create a DWORD and set the value to 1.
This blog post on raymond.cc contains an expanded version of the steps suggested in Krzysztof John's answer.
Quote:
Turn Off The Error Dialog Via The Registry
Although editing the registry manually is not recommended for average users, sometimes there isn’t a choice because something like the Group policy Editor might not be available in your version of Windows or the group policy method itself doesn’t work. This works on Windows Vista and above.
Open the Registry Editor by typing regedit into the Start search box or the Win+R Run dialog.
Navigate to the following registry key:
HKEY_CURRENT_USER\Software\Microsoft\Windows\Windows Error Reporting
Double click the DontShowUI entry on the right and change its value to 1, then close the registry editor.
. . .
The above registry fix will turn off the popup dialog for the current user, if you want the setting to affect all users on the computer then a similar registry key needs to be created in the registry at HKEY_LOCAL_MACHINE. This key isn’t present by default so needs to be created.
Read More: https://www.raymond.cc/blog/disable-program-has-stopped-working-error-dialog-in-windows-server-2008/
control panel -> troubleshooting -> change settings
In my case this solved same problem:
Control Panel\All Control Panel Items\Action Center\Problem Reporting Settings
set to "never check for solutions"
On my old Windows Vista Home Basic install, the option is hidden in a completely different place beneath the control panel:
Control Panel → Classic View → Problem Reports and Solutions → Change Settings → Advanced Settings → “For my programs, problem reporting is: [×] Off”

How to open "Performance Options" dialog from command line or system call

Is there a way to automatically open up the Windows "Performance Options" dialog using the command line or a system call?
The long way to get there is to go to Start, right-click on "Computer", choose "Properties", then select "Advanced System Settings".
A slightly shorter way is to go to Start, type in "Adjust", then select the "Adjust the appearance and performance of Windows" option. I am hoping for a batch file I could run or a simple EXE I could create that would open this dialog up directly.
According to this article you are looking for:
%windir%\system32\SystemPropertiesPerformance.exe

Resources