uac

Pimp my UAC and a few questions about it

淺唱寂寞╮ 提交于 2019-12-09 06:12:51
问题 I have this application that need to do some things in protected paths (like %PROGRAMFILES%), I know that I should be using %APPDATA%, but I can't change that for now. I have isolated all the things that could require UAC to show up on another project, here's a sample code: using System; using System.Diagnostics; using System.IO; using System.Windows.Forms; class Class1 { static void Main(string[] args) { try { File.CreateText(Path.Combine(Application.StartupPath, "something.txt")); } catch

How to make the setup.exe from a VS2010 Setup Project ask for Admin Privileges?

ぐ巨炮叔叔 提交于 2019-12-08 12:48:41
问题 I have a problem which I guessed would be really simple to solve... but duh. I'm deploying a .NET application with VS2010. I have a C# Windows Forms project and a Deployment Project. I need the installer to run with admin privileges because the app is installed for all users and an entry to the registry is made. When starting the setup.exe I'm not prompted for privilege elevation. The installer will just start and suggest to install to Program Files (x86) which is good. After clicking next

Delphi Administrator rights D7 W7 [duplicate]

柔情痞子 提交于 2019-12-08 09:50:35
问题 This question already has answers here : Closed 8 years ago . Possible Duplicates: Delphi: Prompt for UAC elevation when needed Delphi Administrator rights D7 W7 I'm using Delphi 7 on Windows 7. I need administrator privileges for some function in my application, which needs RAW access to the physical drive. How do I elevate to Administrator from source code? I.E. I chceck rights with: function IsUserAdmin : boolean; const CAdminSia : TSidIdentifierAuthority = (value: (0, 0, 0, 0, 0, 5)); var

Change a registry value in VB.NET

久未见 提交于 2019-12-08 08:36:32
问题 I have searched a lot to find a solution for my problem, but I can't find any specific solution. I need to change a value which is stored under HKEY_LOCAL_MACHINE\SOFTWARE\APP_NAME . It is not possible to use .NET's registry functions, since they have drastic restrictions. The following snippet should solve my problem: Dim regKey As RegistryKey Dim ver As Decimal regKey = My.Computer.Registry.LocalMachine.OpenSubKey("HKEY_LOCAL_MACHINE\SOFTWARE\APP_NAME", True) regKey.SetValue("IP", "192.168

Inno Setup does not popup UAC prompt on Windows XP with PrivilegesRequired=none

旧时模样 提交于 2019-12-08 07:44:19
问题 In Inno Setup I do PrivilegesRequired=none . This setting should prompt the UAC, if the user has Administrative privileges. On some computers of Windows XP the UAC doesn't get prompted even though the Administrator is logged in, I verified this by checking the IsAdminLoggedOn setting and I saw that it was set to True . Why is this happening? 回答1: If IsAdminLoggedOn returns True , the installer is already running with Administrator privileges ("elevated"). Note that there's no privileges

launch C# exe without prompting UAC on Windows 7

送分小仙女□ 提交于 2019-12-08 06:29:42
问题 I have C# executable that I want to launch on Windows 7 without the dialogbox asking for run-as-administrator.. So here is my code inside the program that launches the C# executable named testApp.exe. Process testApp = new Process(); testApp.StartInfo.FileName = "C:\\Program Files\\Common Files\\testApp.exe"; testApp.Start(); I also create the minfest for both programs. app.manifest for testApp.exe and app.manifest for the program that launches testApp.exe, and then I change the following

Inno Setup does not popup UAC prompt on Windows XP with PrivilegesRequired=none

我怕爱的太早我们不能终老 提交于 2019-12-08 04:50:32
In Inno Setup I do PrivilegesRequired=none . This setting should prompt the UAC, if the user has Administrative privileges. On some computers of Windows XP the UAC doesn't get prompted even though the Administrator is logged in, I verified this by checking the IsAdminLoggedOn setting and I saw that it was set to True . Why is this happening? Martin Prikryl If IsAdminLoggedOn returns True , the installer is already running with Administrator privileges ("elevated"). Note that there's no privileges separation in Windows XP. If the user you are running the installer with is the Administrator, you

How to execute “net use” command from Inno Setup installer on Windows 7?

与世无争的帅哥 提交于 2019-12-08 02:58:15
问题 I'm working on an Inno Setup installer, which calls net use to connect to a shared server. The installer can connect to the server, if it's running on Windows XP, but not on Windows 7. I think it's related to UAC as I type the same command, the server is connected on Windows 7, but the setup is running with admin privileges. I'm using the following net use command through Exec or ShellExec script functions: /c net use \\servername password /user:username Actually, here is a part of the script

How to use SetWindowsHookEx in Vista and hook Admin apps with UAC?

时间秒杀一切 提交于 2019-12-08 01:38:28
问题 I'm trying to figure out if there's a way to use SetWindowsHookEx and be able to affect apps that are run with Admin rights on Vista, with UAC enabled. This is an app that will need to add a small button to the caption bar of other windows to enable some multi-monitor-aware handling. I would have thought this couldn't be done, but I've seen one app that appears to do this. As far as I can tell, this other apps is not being run with Admin rights, and yet it can affect all apps in the system,

BDE, Windows 7 and UAC

别来无恙 提交于 2019-12-07 22:36:17
问题 I have a very old application written in delphi 5 running in some customers which uses the BDE. Now some users with Windows Vista and 7, had experimented some problems with the multiuser access. i' think which these problems are related to the location of the net .and .lck files. so the question is which is the proper way to confgure the BDE under Windows Vista and 7 to avoid permissions and UAC conflicts? 回答1: In addition to the above answer, you'll want to make sure that the .net and .lck