uac

Run application on startup

女生的网名这么多〃 提交于 2019-12-04 19:58:16
问题 i am wondering if its possible to solve this problem. Ive got qt application and if user tick the checkbox, i want this application to launch on startup of operating system. Ive already googled, and ive come up with this solution> my QT application needs admin privileges in order to modify registry, so create manifest file ( <requestedExecutionLevel level="requireAdministrator" uiAccess="false"/> ) 2.apply this command mt -manifest manifestfile -outputresource:binfile.exe;1 3.use this piece

Unable to Create or Write to a file as standard user

﹥>﹥吖頭↗ 提交于 2019-12-04 19:45:02
My application creates a log file when it connects or disconnects a server. This works well win win XP. There are no issues while I run it as admin in Vista and Win 7. But if I run this as a standard user in Vista or Win7 then it fails to create the log file, and I know this is for UAC. But how can I bypass this situation so that my app will run as admin . DO I need to add any registry entry while installing my application so that it will always run as administrator. If you really want to, you can add a manifest that causes your application to require UAC elevation when it is launched, but

How to change file association without UAC confirmation?

故事扮演 提交于 2019-12-04 19:41:57
When I was working with file association in a .NET application I hadn't had found a way to set it without UAC popping up a confirmation dialog. Today, when I opened uTorrent and looked up for file association, I've found that you can enable (writing to registry) without any confirmation from the UAC. How is that possible? uTorrent is not running as an admin. Edit: Well, I have just discovered with Process Monitor (Sysinternals) that what uTorrent.exe does is to create a few keys ( uTorrent and .torrent ) but in HKCU ( HKEY_CURRENT_USER ), not in HKEY_CLASSES_ROOT . Anyways I also have those

Install files to original user's My Docs folder via Inno Setup on Windows Vista/7

只谈情不闲聊 提交于 2019-12-04 19:01:50
In the [Run] section of an Inno Setup script, there's a flag runasoriginaluser that allows the script to run a process as the original user: the spawned process will execute with the (normally non-elevated) credentials of the user that started Setup initially (i.e., the "pre-UAC dialog" credentials). Is there an equivalent flag or workaround for the {userdocs} shell folder constant? This is apparently a known limitation within Inno Setup (and other installers, generally), but I'm hoping someone knows a workaround. Excerpt from the Inno Setup help file: The "user" constants refer to the profile

Is it possible to UAC elevate a process without starting another process

僤鯓⒐⒋嵵緔 提交于 2019-12-04 18:12:58
问题 I was wondering if it is possible for a program to prompt the user with a UAC prompt to raise it's own privileges without starting another process. All the examples I can find on the internet seem to ShellExecute "runas" which creates a new process with elevated privileges. If this is not possible then my best solution I guess would be create a named pipe, ShellExecute my own program with a special argument, and then shove all the data that it will need to perform the operation down the pipe.

Why is my Delphi 6 program triggering a request for admin rights upon install on only a minority of Windows 7 systems (InnoSetup)?

我的梦境 提交于 2019-12-04 18:10:00
I have a Delphi 6 program that for most users installs fine while running under a user account without admin privileges. However, on some systems it triggers a request for admin rights. Unfortunately mine isn't one of them so it's hard for me to diagnose this problem. I use InnoSetup 5.1.9 to build my install programs. How can I figure out what I need to change about my installation program's configuration to neutralize the need for admin rights on some people's systems? It's causing trouble for my system because during installation, certain program data files are being copied into the admin

Is it possible to click on Windows UAC dialog using java.awt.Robot?

我怕爱的太早我们不能终老 提交于 2019-12-04 16:40:36
I'm working on a custom remote desktop in Java using java.awt.Robot on Windows 7. It all works apart from running a Command Prompt as an administrator. The UAC dialog appears, however button clicks are not accepted on the Yes button using mousePress() / mouseRelease() , neither are key presses with keyPress() / keyRelease() . The application is launched via a launch4j launcher in launcher rather than wrap mode. Things I've done so far Disabled secure desktop for UAC. This allowed the screen grabber part of the application to at least 'see' the prompt Changed group policy to disable

Get real path of a log file stored in VirtualStore

南楼画角 提交于 2019-12-04 14:51:31
My application stores log files in a location which, depending on admin settings, can get redirected to a folder in the VirtualStore. They sometimes end up in, for example: The log file is in: C:\Users\-my username-\AppData\Local\VirtualStore\Program Files (x86)\ *my-application* \logs C# thinks it is here: C:\Program Files (x86)\ my-application \logs This is only a problem in one part of the code - a button which tries to open the log file in notepad. It runs Process.Start( path-where-application-thinks-log-files-are ); If I test this using File.Exists( path-where-application-thinks-log-files

Writing config file in C:\Program Files (x86)\MyApp\myapp.cfg, vs. Administrator privilege

╄→尐↘猪︶ㄣ 提交于 2019-12-04 14:29:16
问题 I have made an installer (using Inno Setup) for my software, which is finally installed in C:\Program Files (x86)\MyApp\myapp.exe as usual on Windows platform, and it works perfectly. A problem comes when my software tries to write its config file here : C:\Program Files (x86)\MyApp\myapp.cfg here a Permission denied error arrives ! The only solution I have found is "Run software as administrator", but I don't like this solution : I don't want to ask the final user to have to do "Run as

Why Virtualization on ProgramData folder in MS Vista?

这一生的挚爱 提交于 2019-12-04 11:50:28
问题 I have an app modified to take into account the UAC in VISTA. So, now, the .mdb (JET or Access file) is located in ProgramData\MyApp\ I realized that when my app reads the database for the first time it is doing it from that location... but when my app is writting to the database... the file is virtualized and goes to Users\MyUser\AppData\Local\VirtualStore\ProgramData\MyApp . From this moment on my app always go to the Virtualized location in disk. My app is working, but if I continue this