Questions tagged [non-admin]

40 questions
1
vote
1 answer

Visual Studio Setup Project - System and User Installer in same MSI-File

I'm using Microsoft Visual Studio 2019 and Microsoft Visual Studio Installer Projects V1.0.2. I'm aware how to generate a system wide installer: InstallAllUsers property of the setup project is set to true. InstallAllUserVisible property of the…
1
vote
1 answer

NPM not working when setting up NODE/NPM as non admin

I've been following this guide (https://theshravan.net/blog/how-to-use-node-and-npm-without-installation-or-admin-rights/) to try to use Node.js on my work computer. I have node showing its version but not NPM after following all directions. Current…
1
vote
0 answers

Installing a non-admin setup forced by Run as Administrator

I have created a non-admin installer using Wix-tools. Its working perfectly. But when I provide "Run as Admin" by right clicking the setup, it is installing in ProgramFiles Folder. But I need to install the setup in the user LocalAppData Folder even…
1
vote
3 answers

Debug in VS as non-admin

I'm doing some WinForms development, running XP and VS 2005 (ancient, I know). I'd like to make sure my application can run without admin rights, but I'm too lazy to try to run VS as a non-admin, and I don't want to log in and out to test my app. …
foson
  • 10,037
  • 2
  • 35
  • 53
1
vote
0 answers

WIX upgrade installer with non-admin privlege

I am having a problem with the upgrade using the same InstallPrivileges as the Product which is 'limited', InstallScope="perUser". The initial/first install works fine and did not ask for admin privilege. However, when trying to upgrade it…
Nonna A
  • 11
  • 1
1
vote
0 answers

Dynamically choose between per-user and per-machine installation

I'm using Inno Setup to deploy an application. For most cases, a per-user installation that doesn't require admin privileges is fine. However, there are scenarios where I need to install the app for all users, e.g. for Citrix or TSE. Unfortunately…
Thomas Levesque
  • 286,951
  • 70
  • 623
  • 758
1
vote
0 answers

How to launch browser as non admin using Webdriver

Meta - OS: WIn 10x 64 Selenium Version: 2.52 Browser: Firefox 51.0.1 Chrome 52 Steps to reproduce 1: Launch Visual studio or Eclipse as admin 2: Create webDriver reference WebDriver driver; 3:Launch FirefoxDriver driver = new FirefoxDriver(); 3:…
Malik
  • 31
  • 4
1
vote
2 answers

Cannot run as a non-admin impersonated user - access is denied

I do impersonation of a non-admin user account in an app that is running as an admin user (using LogonUser(), DuplicateToken() and WindowsIdentity.Impersonate() functions). Since this user account is temporary, I also need to load a user profile…
kateroh
  • 4,382
  • 6
  • 43
  • 62
1
vote
1 answer

$ENV:USERNAME returns the machine name when SCCM runs a script as admin with a non-admin logged in

I have a script that needs to run from Software Center when a non-admin is logged in. It needs to copy application data to $ENV:USERNAME\AppData\\* (among other things) and it needs to run as administrator to work properly. The problem that…
1
vote
0 answers

How do I allow all users (current users and new users to be created) to start,stop and read status of a service

I have a windows service that works fine with my application on the admin user, once I log into a non-admin user I need this user to be able to start,stop, and check the status of the service. I have used advapi32.dll library to be able to do this,…
user3614070
  • 131
  • 2
  • 11
1
vote
1 answer

Register DLL (ActiveX) for Non-Admin user

I try to register dll (ActiveX) for non-admin user using MSI. To create registry settings I have register the dll in admin mode, then exported the relevant registry entries and renamed all HKLM to HKCU. When I install it for non-admin user all works…
Zaky
  • 369
  • 6
  • 21
1
vote
2 answers

How to build python 3.3.2 with _bz2, _sqlite and _ssl from source

I want to build Python 3.3.2 from scratch on my SLE 11 (OpenSUSE). During the compilation of Python I got the message that the modules _bz2, _sqlite and _ssl have not been compiled. I looked for solutions with various search engines. It is often…
chka
  • 11
  • 1
1
vote
3 answers

File handling with non-administrative user

I've been testing my application to see how well it works when run by a non-administrative user, and I have found problems with file handling. I am getting an UnauthorizedAccessException when trying to overwrite a file, if the file was created by…
Dan Vogel
  • 3,858
  • 7
  • 41
  • 57
0
votes
1 answer

Where to store configuration data for universal access by admin and non-admin alike?

I can tell you where non-admin's aren't allowed to write to: Environment::GetFolderPath(Environment::SpecialFolder::ApplicationData) + "\\Config.ini"; Environment::GetFolderPath(Environment::SpecialFolder::CommonApplicationData) +…
John
  • 6,433
  • 7
  • 47
  • 82
0
votes
2 answers

Delaying monitor timeout without admin via powershell

I am using a powershell script to keep a windows pc logged in defying its group policy, however after 20 minutes the monitor turns off after displaying a "no signal" message. The script I am using is one that toggles scroll lock to simulate input…