uac

Can Java launch the Windows UAC?

会有一股神秘感。 提交于 2019-12-21 05:05:19
问题 As the title says, I'm wondering if it is possible for a program written in Java ( and only java ) to relaunch himself (preferably a .jar) with administrator privileges, showing in the way the native Windows UAC (in order to make it more trustable for the user), i did my homework and found out that it is possible to accomplish this using bridges between c++ and java, but i would really like to do this as a pure java project. P.S: In the remote case that this result to be impossible, can

Testing application for Administrative Running Rights

给你一囗甜甜゛ 提交于 2019-12-21 04:22:20
问题 I want a sure-shot method to test if the application was run via the UAC box and has full administrative rights. Earlier, I thought of making a folder in C:\Windows\ for testing but running it on other computers proved to be a failure! The UAC box provides all administrative rights to the computer to do anything(including making folders and creating files in places which needs there rights) and also makes sure that any child program so called or created also does have the same rights as the

How does task manager elevate without UAC Prompt?

允我心安 提交于 2019-12-21 04:12:53
问题 This has been on my mind for sometime. I can open task manager by pressing Ctrl + Shift + Esc and on the second tab (Processes), I can easily press Alt + S -- Show processes from all users to elevate my task manager without any prompts whatsoever . And voila, I have a powerful tool to play with. I've been unable to find any documents explaining this and I'm very curious about how this feat is achieved; since the button should actually ask for a prompt but does not. 回答1: What you are

VS2010 Setup Project - Run As Administrator

被刻印的时光 ゝ 提交于 2019-12-21 04:01:11
问题 I have a VS2010 solution with 2 projects in it - a .NET 4 program, and an installer for it. The Installer is just a simple Setup Project with a prerequisite - .NET Framework 4. The problem is that I need the installer setup.exe to always run as Administrator otherwise the setup will fail under the UAC. (It does not prompt me for privilege elevation by default.) I tried putting a setup.exe.manifest (shown below) alongside the setup.exe to force it to run as administrator, but unfortunately

How to launch SFC programatically on Windows Vista/7/8?

ⅰ亾dé卋堺 提交于 2019-12-20 02:14:11
问题 I've been trying to solve the problem that Chris Iverson was having in this other Stackoverflow question. I want to launch SFC (the System File Checker tool) programatically. It works on Windows XP: private void RunSfc() { ProcessStartInfo startInfo = new ProcessStartInfo("cmd", "/K sfc.exe /scannow"); System.Diagnostics.Process.Start(startInfo); } Other variants that do work under Windows XP: //Launch SFC directly ProcessStartInfo startInfo = new ProcessStartInfo("sfc.exe", "/scannow");

Issue with .cab file (ActiveX) installation on Windows Vista and 7

无人久伴 提交于 2019-12-20 02:12:59
问题 I have made an ActiveX control and have made its .cab file for automatic installation on client machine using Internet Explorer.. It working fine of Windows XP, but on windows Vista and Windows 7 its installation is blocked by UAC (User account control), and when I disable it, all things works fine... I have signed my .cab file with a certificate for development enviornment... What is the way to over come this problem.. I don't want to tell users to disable their UAC module... 回答1: Most

Windows Form Startup with Admin Permission

社会主义新天地 提交于 2019-12-19 12:20:24
问题 I have a windows form application that need of the admin permission for running, to make this, I use this code: <requestedExecutionLevel level="requireAdministrator" uiAccess="false" /> The next step for complete the development is that this windows form application start up after windows restart, turn off and turn on again or user logon. Here is my problem, this application need administrator permission and need startup after system startup, but I don't know to make this. things did I do:

Windows 7 - Can't update my program's files in C:\Program Files

这一生的挚爱 提交于 2019-12-19 11:24:26
问题 I have an addin program that works with MS Word (version 2007). It is located in the C:\Program Files location. I installed Windows 7 and then went to make a routine change to my files in this location and it would only bring up a read only file. How can I grant myself permission to write to my own program? I cannot change this location or use any other workaround. I have this product out to 25 different companies and I can't change the programming to work from any other location. Thanks 回答1:

Process with administrative privileges run on user logon

≯℡__Kan透↙ 提交于 2019-12-19 10:45:18
问题 I'm trying to figure out how to solve the privilege acquisition. The application requires a desktop access, so it cannot be executed as a Windows service: it have to create a window for receiving message sent by other processes using SendMessage (it must be used for waiting message acknowledge). The application shall be started when an user login, and it will manage the user session (manage applications, windows...). Only one user can be managed at time. What I'm asking is which is the best

CreateProcess to run as administrator

无人久伴 提交于 2019-12-19 10:28:20
问题 In my Win32 application I have the ability to run child processes with redirected input and output to anonymous pipes that I create and manage - this all works with the CreateProcess() function. However on Win7 (and presumably Vista) if that process is required to be run as administrator then this fails. So what I am looking for is a way to do the equivalent of the "run as administrator" command in explorer that will bring up the standard UAC prompt and then create the process with the