[GRASS-dev] [GRASS GIS] #2395: Startup runs as in Cygwin when CYGWIN is set although running as native application
GRASS GIS
trac at osgeo.org
Wed Aug 20 09:59:54 PDT 2014
#2395: Startup runs as in Cygwin when CYGWIN is set although running as native
application
--------------------------+-------------------------------------------------
Reporter: wenzeslaus | Owner: grass-dev@…
Type: defect | Status: closed
Priority: normal | Milestone: 7.0.0
Component: Startup | Version: svn-releasebranch70
Resolution: fixed | Keywords: cygwin, wingrass, environmetal variables
Platform: MSWindows 8 | Cpu: Unspecified
--------------------------+-------------------------------------------------
Comment(by hellik):
Replying to [comment:13 hellik]:
>
> http://trac.osgeo.org/grass/browser/grass/trunk/mswindows/GRASS-
Installer.nsi.tmpl#L100
>
> {{{
> 100 ;Request application privileges for Windows
> 101 RequestExecutionLevel admin
> }}}
>
> by simple double clicking (no right click) on the standalone installer,
you ''should'' be asked to grant admin rights. similar is implemented in
the OSGeo4W-setup.
>
> regarding ''should'', as there are so many different flavours of windows
with too many different system rights settings out there in the wild, it's
hardly possible to catch all possible hurdles.
>
> at least it should be mentioned in the download page.
additional check may be if you run as admin:
[http://stackoverflow.com/questions/8732019/how-do-you-request-
administrator-permissions-using-nsis example 1]
[http://stackoverflow.com/questions/8821476/nsis-installing-an-
application-to-always-run-as-administrator example 2]
something like:
{{{
!include LogicLib.nsh
Function .onInit
UserInfo::GetAccountType
pop $0
${If} $0 != "admin" ;Require admin rights on NT4+
MessageBox mb_iconstop "Administrator rights required!"
SetErrorLevel 740 ;ERROR_ELEVATION_REQUIRED
Quit
${EndIf}
FunctionEnd
Page InstFile
Section
SectionEnd
}}}
--
Ticket URL: <http://trac.osgeo.org/grass/ticket/2395#comment:14>
GRASS GIS <http://grass.osgeo.org>
More information about the grass-dev
mailing list