uac

Wix installer - how to run change with administrative privileges when run from Uninstall or change program in Control Panel

柔情痞子 提交于 2019-12-23 17:13:48
问题 My installer has a custom action which contacts a windows service and set some parameters. In order to successfully use the service, it must be run with the elevated privileges. In the first time install when a user clicks on the Install button, it is presented with the UAC prompt and install completes successfully. However, when a user decides to change the product(add new feature), call to the service will fail! This happens because installer is not run in the privileged mode. When I start

How do I create a manifest for a windows installer?

强颜欢笑 提交于 2019-12-23 16:24:34
问题 We have an installer for our application that must be downloaded and run with administrator privileges, like many other installers. However, the installer isn't named "setup.exe", so Windows doesn't automatically detect it as requiring elevation to run. Changing the installer name to make things elevate properly sounds pretty messy, frankly. This article talks a lot about UAC and elevation, and it says that you can use a manifest to make something require authorization. So, we'd just love to

UWP Template 10 and Service Dendency Injection (MVVM) not WPF

时光总嘲笑我的痴心妄想 提交于 2019-12-23 15:32:57
问题 I have spent over two weeks searching google, bing, stack overflow, and msdn docs trying to figure out how to do a proper dependency injection for a mobile app that I am developing. To be clear, I do DI every day in web apps. I do not need a crash course on what, who, and why DI is important. I know it is, and am always embracing it. What I need to understand is how this works in a mobile app world, and in particular a UWP Template 10 Mobile app. From my past, in a .net/Asp app I can

UWP Template 10 and Service Dendency Injection (MVVM) not WPF

痞子三分冷 提交于 2019-12-23 15:27:06
问题 I have spent over two weeks searching google, bing, stack overflow, and msdn docs trying to figure out how to do a proper dependency injection for a mobile app that I am developing. To be clear, I do DI every day in web apps. I do not need a crash course on what, who, and why DI is important. I know it is, and am always embracing it. What I need to understand is how this works in a mobile app world, and in particular a UWP Template 10 Mobile app. From my past, in a .net/Asp app I can

VB6 is application running as administrator

一笑奈何 提交于 2019-12-23 13:05:00
问题 Is there any way of finding out if the application is running as administrator? If this involves a COM call, I'm not really fussed, anything that works! 回答1: IsUserAnAdmin is an easy call and seems perfectly reliable for use in VB6 programs. It seems to work fine even in Win8. Note that it reports whether the process is running with admin rights, not whether the user is in the Administrators group. Declaring it this way it should work all the way back to Windows 2000: Private Declare Function

log4net writing to file. How to open up permissions

╄→гoц情女王★ 提交于 2019-12-23 02:24:24
问题 I was happily using log4net with my WPF program on an XP machine and happily using a fileAppender FileAppender to write log messages to c:\log.txt. All was well. However, it does not work on a Windows 7 machine. No error or anything, just that the file isn't created, much less logged to. A little research reveals that it's a file permissions problem (UAC) with Windows 7, and in fact it works if I run the executable as administrator. It doesn't work if I just click on it (even though I'm

Newly compiled application requires UAC/elevation?

半世苍凉 提交于 2019-12-22 23:13:18
问题 I have a system, I set it up as a normal with UAC, and in my delphi environment I compile my project named ka.exe, I create a installshield project for it. setup and everything completes ok! but whenever I start my program, it requires elevation and I don't have any clue why. just to be sure installshield is not playing mindgames on me, I compiled a new .exe, and copy it manually over to my networked computer. the icon looks the same, and it also have this UAC shield on it. my project has

C++: Communication with elevated child process on Windows

别说谁变了你拦得住时间么 提交于 2019-12-22 11:02:25
问题 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.

Prevent UAC Virtualization?

别来无恙 提交于 2019-12-22 07:39:11
问题 I have a VB6 app that I've been selling for over 12 years. Sometimes I have users that have a hard time getting the app to run. The data writes are going into /My Documents so nothing but the installation files (EXE, etc.) are going into C:\Program Files (or C:\Program Files (x86)). The fix to their problem is to start the app, even though it appears hung, then show the task manager, view processes, right-click my app's process and uncheck UAC Virtualization. Then I have them repair the

Inno-Setup and the Windows UAC shield

北慕城南 提交于 2019-12-22 07:00:25
问题 I am stuck at some UAC issue (i guess). My question is: What does this UAC Shield Icon on some applications mean. AND how would I get this icon to my Inno-Setup setup.exe? 回答1: Inno Setup installers require Admin Privileges by default (if not customized by installer creator). UAC popup will be triggered if user did not change UAC settings in Windows. http://www.jrsoftware.org/ishelp/index.php?topic=setup_privilegesrequired [Setup] : PrivilegesRequired Valid values: none , poweruser , admin ,