Opened 8 years ago

Last modified 4 years ago

#304 reopened enhancement

Make installer administrative rights elevation optional.

Reported by: lpinner Owned by: osgeo4w-dev@…
Priority: minor Component: Installer
Version: Keywords:
Cc:

Description

Currently the osgeo4w installer requires admin rights (ticket #133). The UAC elevation is automatic and can not be turned off that I'm aware of. Please change this so non-admin users can run the installer (obviously not being able to install services or write to protected folders). Perhaps change to manual UAC elevation (i.e. right-click->Run as Administrator)?

Change History (9)

comment:1 Changed 8 years ago by lpinner

Component: PackageInstaller
Priority: majorminor
Type: defectenhancement

comment:2 Changed 8 years ago by lpinner

Just documenting my use case. I have local admin rights on my work PC under a separate "myuserid_admin" user account that has no internet access. This is part of my employers IT security policy which requires that day to day accounts must not have admin rights and admin accounts must not have network access.

Basically this means I can't use the OSGeo4W setup program. Using pkg-apt is an option, but I'm behind an ISA proxy that requires authentication which means I have to put my credentials into a http_proxy environment variable which I'd prefer not to do.

I've also tried building the installer with a modified manifest to make the UAC elevation optional, but that fails (ticket #311).

comment:3 Changed 8 years ago by lpinner

I've found a workaround! Documenting here for posterity.

@echo off
REM osgeo4w-setup-noelevation.bat
set __COMPAT_LAYER=RUNASINVOKER
start "" "osgeo4w-setup.exe"

Note: my original request remains. This installer does not need UAC elevation by default. If someone is experienced enough to install and configure a Windows service (such as Apache), then they're experienced enough to know how to right click on the installer and select "Run as administrator".

Please change the manifest to "<requestedExecutionLevel level="asInvoker" uiAccess="false"/>"

comment:4 Changed 8 years ago by maphew

Resolution: fixed
Status: newclosed

(In [1204]) close #304, change default run mode to use same permission level as user. If admin perms are needed, r-click and "Run as Administrator". I don't normally touch setup.exe, beyond my skill level, but this change seems straightforward and harmless. Feel free to backout if I've overstepped my bounds.

comment:5 in reply to:  4 Changed 8 years ago by jef

Replying to maphew:

(In [1204]) close #304, change default run mode to use same permission level as user. If admin perms are needed, r-click and "Run as Administrator". I don't normally touch setup.exe, beyond my skill level, but this change seems straightforward and harmless. Feel free to backout if I've overstepped my bounds.

Did you miss to update the package? Anyway, done now for an other change.

comment:6 Changed 8 years ago by maphew

jef, I didn't touch the package, just applied Luke's patch to svn. I'm ignorant of setup's packaging procedure.

comment:7 Changed 6 years ago by lpinner

Resolution: fixed
Status: closedreopened

I just downloaded an updated installer (osgeo4w-setup-x86.exe) and the requestedExecutionLevel has reverted to "requireAdministrator".

Can you please change the manifest so the Please change the manifest so the requestedExecutionLevel is "asInvoker"

i.e <requestedExecutionLevel level="asInvoker" uiAccess="false"/>

comment:8 Changed 6 years ago by JRM

today I've downloaded osgeo4w-setup-x86_64.exe, it requires admin rights (which I don't have on my workstation).

comment:9 Changed 4 years ago by lpinner

I just tried to use osgeo4w-setup-x86_64.exe. It requires admin rights again.

Note: See TracTickets for help on using tickets.