elevated-privileges

Inno Setup - How to run an aplication with admin privileges if the setup is set to PrivilegesRequired=lowest?

馋奶兔 提交于 2021-02-07 10:19:12
问题 I want to run the setup with PrivilegesRequired=lowest . How to set and run an application (dxwebsetup.exe) to install with my setup with Administrator privileges? My code (Inno Setup - Avoid displaying filenames of sub-installers): procedure CurStepChanged(CurStep: TSetupStep); var ProgressPage: TOutputProgressWizardPage; ResultCode: Integer; begin if CurStep = ssInstall then begin if IsComponentSelected('DirectX') then begin ProgressPage := CreateOutputProgressPage('Installing prerequsities

Inno Setup - How to run an aplication with admin privileges if the setup is set to PrivilegesRequired=lowest?

喜夏-厌秋 提交于 2021-02-07 10:19:00
问题 I want to run the setup with PrivilegesRequired=lowest . How to set and run an application (dxwebsetup.exe) to install with my setup with Administrator privileges? My code (Inno Setup - Avoid displaying filenames of sub-installers): procedure CurStepChanged(CurStep: TSetupStep); var ProgressPage: TOutputProgressWizardPage; ResultCode: Integer; begin if CurStep = ssInstall then begin if IsComponentSelected('DirectX') then begin ProgressPage := CreateOutputProgressPage('Installing prerequsities

Inno Setup - How to run an aplication with admin privileges if the setup is set to PrivilegesRequired=lowest?

萝らか妹 提交于 2021-02-07 10:18:01
问题 I want to run the setup with PrivilegesRequired=lowest . How to set and run an application (dxwebsetup.exe) to install with my setup with Administrator privileges? My code (Inno Setup - Avoid displaying filenames of sub-installers): procedure CurStepChanged(CurStep: TSetupStep); var ProgressPage: TOutputProgressWizardPage; ResultCode: Integer; begin if CurStep = ssInstall then begin if IsComponentSelected('DirectX') then begin ProgressPage := CreateOutputProgressPage('Installing prerequsities

Can an x86 CPU read the value of any register while in user mode?

為{幸葍}努か 提交于 2021-02-05 06:54:05
问题 I have read that there are some registers that an x86 CPU cannot modify while in user mode (I believe these registers are called "privileged registers"). But can an x86 CPU read the values of these registers while in user mode, or is even reading not allowed? 回答1: All the registers you'd normally use for computation can be read/written in any mode (GP integer, x87/MMX, XMM/YMM/ZMM and AVX512 k0-7 mask registers), but there are many registers that are basically mode/control settings. Some

using 'sudo bash' to elevate user permission with ansible

会有一股神秘感。 提交于 2021-01-28 23:30:38
问题 I am currently working on a system that the only way to become root is via the command "sudo bash". My intentions are to use Ansible to install dependencies and configure files, and the currently documented methods of privilege escalation do not work with my current system setup. 回答1: If only sudo bash is available for you, then ansible with a controler <-> remote host connection is not a good candidate as this is a known limitation of the privilege escalation feature. To explain a bit

Execute postinstall program with administrator privileges in Inno Setup

末鹿安然 提交于 2020-06-13 07:02:46
问题 I'm trying to run another installer at the end of the installation ( postinstall ). The installer needs administrator provileges. So PrivilegesRequired=admin was added and the error still was there. Error message below: Unable to execute file: C:\Users\User1\AppData\Local\Multi Webcam Video Recorder\webcam.exe CreateProcess failed; code 740. The requested operation requires elevation. #define MyAppName "Multi Webcam Video Recorder" #define MyAppExeName "webcam.exe" [Setup] AppName={#MyAppName

Inno Setup run/execute code as another user

落花浮王杯 提交于 2020-04-10 18:53:28
问题 Much as it is possible to use ExecAsOriginalUser to run something using the starting/logged in user's credentials, is there a command or way to run a particular piece of code as a specific user? To explain further, I am writing the computer name into a log on a file share at the end of installation. This works perfectly as long as not installing using a local Administrator account which does not have a matching local Administrator account on the server. Therefore, what I need to do is have

Workaround for 'Apps & features' in Windows 10 starting a single-user uninstaller elevated

眉间皱痕 提交于 2020-02-29 05:24:18
问题 When users try to uninstall their own single user installation (for example installed using lowestprivileges none and HKCU entries ) with 'Add/Remove Programs' in the Control Panel, everything works fine (that is, non-admin users can uninstall their own non-admin installation). However the uninstaller will be elevated, when users start it from 'Apps & features' (Windows 10). This seems to be a known Windows 10 bug: How to prevent uninstaller elevating for Standard Windows 10 user? Is there a

Uninstaller trouble with standard Windows user

半腔热情 提交于 2020-02-22 19:07:12
问题 I am wondering if I am encountering the same bug with Windows 10 discussed in this post. I am having a problem with uninstalling a program installed by a standard user without elevation. I am using INNO Setup, so I have PrivilegesRequired=lowest, and INNO does not prompt for elevated privilege, and installs for the current user, and creates an uninstaller, e.g. uninst000.exe, in my application folder, and I have INNO put an icon for the uninstaller in a Start Menu group for my app (all this

Redistributing a WinForms component with design-time functionality in a separate DLL without admin rights

半腔热情 提交于 2020-01-16 07:52:31
问题 I am trying to modify the installation package for one of our legacy WinForms component. The goal I want to achieve is to avoid elevating privileges and do all works without admin rights. The problem is that the component is implemented in two DLLs - the core functionality redistributed with compiled apps and the design-time functionality needed only for the WinForms designer. To provide all design-time features of the component, VS should "know" how to find the design-time DLL. Earlier we