Opened 12 years ago

Closed 4 years ago

#304 closed enhancement (fixed)

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 (10)

comment:1 by lpinner, 12 years ago

Component: PackageInstaller
Priority: majorminor
Type: defectenhancement

comment:2 by lpinner, 12 years ago

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 by lpinner, 12 years ago

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 by maphew, 12 years ago

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.

in reply to:  4 comment:5 by jef, 12 years ago

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 by maphew, 12 years ago

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

comment:7 by lpinner, 10 years ago

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 by JRM, 10 years ago

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

comment:9 by lpinner, 8 years ago

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

comment:10 by jef, 4 years ago

Resolution: fixed
Status: reopenedclosed
Note: See TracTickets for help on using tickets.