uac

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

瘦欲@ 提交于 2019-12-06 06:38:47
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 showing the net use command call: [Code] var ErrorCode: Integer; cmdString: String; intvalue: Integer;

Execute an application with admin rights on system without UAC

一曲冷凌霜 提交于 2019-12-06 06:31:34
问题 I have an application that must be executed with admin rights. There is everything fine, if UAC is on. But, if UAC is turned off, there is no prompt on start (even for standard user) and application starts with restricted rights. Start process with verb "runas" does not work. Is there any way to show the standard UAC login dialog for and execute an application with admin rights even if UAC if turned off? Update : Manifest is included: <?xml version="1.0" encoding="utf-8"?> <asmv1:assembly

VB6 Manifest not working on Windows 7

放肆的年华 提交于 2019-12-06 05:38:46
问题 I have created a manifest file for a VB6 application that is running on Windows 7 (not for any visual style changes, just to make sure it accesses the common registry and not a virtualised one) The exe name is Capadm40.exe, the manifest is named Capadm40.exe.manifest and contains the following: <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0"> <assemblyIdentity version="1.0.0.0" processorArchitecture="X86" name=

Python: How to start a process with Administrator Permissions?

只愿长相守 提交于 2019-12-06 05:35:10
问题 I am starting the following script from a Windows 7 command line with administrator permissions: import win32com.client import time import SendKeys import os from ctypes import * shell = win32com.client.Dispatch("WScript.Shell") os.startfile("C:\...exe") I have also assigned the feature 'Run this programme as an administrator' to python.exe under Properties > Compatibility > Privilege Level. This did not change anything. The programme still behaves differently when opened this way to how it

ClickOnce deployment CheckForDetailedUpdate throws an exception

丶灬走出姿态 提交于 2019-12-06 05:06:24
问题 I have an application that's running 24/7 without attendance. It's deployed via ClickOnce and needs to check and download updates by itself. It checks for updates at application startup and at scheduled time at night. When it does it on startup, it works perfectly fine. However, when it does it at scheduled time, it crashes. In both cases it's using exactly the same piece of code. It's running under Windows 7 and might have something to do with UAC. I'm thinking that maybe it cannot access

Manifest being ignored in mingw app

懵懂的女人 提交于 2019-12-06 03:37:44
问题 I have an old-fashioned Windows GDI application, written in C, which is being compiled with the Mingw toolchain. Some of my users have been complaining about Windows Vista and Windows 7's Virtual Store, where files which are written to directories the app shouldn't have access to are siphoned off and stored elsewhere. They say it's confusing them, and they'd much rather have an error. According to Microsoft's documentation, the way to prevent this from happening is to add an application

Cannot create files in C:\ProgramData\ even after granting Users group full permission

雨燕双飞 提交于 2019-12-06 02:26:20
问题 We have an application which tries to write to an Access database (.mdb) in the C:\ProgramData\ folder. On computers with UAC enabled we find that accessing the database fails as it seems it cannot create the lock file. It seems that by default (and perhaps due to UAC) users (including admins) don't have permission to write to the applications folder by default. We thought that granting the "Users" group full permissions to this folder would fix the problem, however it makes no difference.

Exe name like update.exe blocked by UAC in scheduled task

可紊 提交于 2019-12-05 23:31:50
问题 I have a problem with windows UAC, scheduled tasks and a executable named "dbupdate.exe". I have full power over source code, manifests and so on, but not over user systems (short: normal software engineer ;-). Language is Delphi, but shouldn't be important I think. I have a problem using an application in task scheduler in windows vista and windows 7. The program is named dbUpdate.exe. It has built in a xp/vista manifest, which configures that the program should be started "asInvoker". Now,

C++: Communication with elevated child process on Windows

落花浮王杯 提交于 2019-12-05 22:54:53
I'm having the following setup: The DLL I'm writing is loaded dynamically at runtime and offers some API-like functionality to the host application. The host application is not running with admin rights (and therefor my DLL isn't either). Some tasks my DLL needs to fulfill need admin rights though, specifically I have to save and copy files to the program files folder. My current approach is to launch external applications via ShellExecute and the "runas" verb, which triggers the UAC prompt. This especially means that multiple subsequent actions triggered by the user will always result in an

Embed manifest file to require administrator execution level with mingw32

流过昼夜 提交于 2019-12-05 22:28:45
问题 I'm cross compiling an application with i586-mingw32msvc under ubuntu. I'm having difficulties understanding how to embed a manifest file to require administrator execution level with mingw32. For my example I used this hello.c : int main() { return 0; } this resource file hello.rc : 1 Manifest "hello.exe.manifest" this manifest file hello.exe.manifest : <?xml version="1.0" encoding="UTF-8" standalone="yes"?> <assembly xmlns="urn:schemas-microsoft-com:asm.v1" manifestVersion="1.0">