|
|||||||
![]() |
|
|
Thread Tools | Search this Thread | Display Modes |
|
|
|
|
#1 |
|
Junior Member
Join Date: Mar 2010
Posts: 14
|
setting permissions:
https://trac.osgeo.org/grass/browser....nsi.tmpl#L531 ;grant $INSTDIR\etc read write accessible AccessControl::GrantOnFile "$INSTDIR\etc" "(S-1-5-32-545)" "GenericRead + GenericWrite" ;grant modifying/overwriting fontcap file AccessControl::GrantOnFile "$INSTDIR\etc\fontcap" "(S-1-5-32-545)" "GenericRead + GenericWrite + Delete" the unfortunate situation is that the whole procedure works on some windows boxes and on some windows boxes not. Process Monitor or a manually invoking of the bat file shows access denied. |
|
|
|
|
|
#2 | ||
|
Moderator
Join Date: Jun 2002
Location: ${NSISDIR}
Posts: 5,442
|
Quote:
You should also check if AccessControl failed: Quote:
IntOp $PostCount $PostCount + 1 |
||
|
|
|
|
|
#3 |
|
Junior Member
Join Date: Mar 2010
Posts: 14
|
> Are some of these 64-bit and some 32-bit versions of Windows?
it works for me for win 7 32-bit and 64-bit; users reported that it doesn't work for win 8/win 10 64-bit. > You should also check if AccessControl failed: added it to the nsis script, waiting for the daily build of the installer and report back > You could also try granting FullAccess will try it |
|
|
|
|
|
#4 |
|
Junior Member
Join Date: Mar 2010
Posts: 14
|
a short update on this after some testing.
> You could also try granting FullAccess > You should also check if AccessControl failed I've added to the script granting FullAccess to folder "$INSTDIR\etc" and file which should be updated and a check of failing/success AccessControl [1]. furthermore I've elevated the bat file, which is called by the installer, to administrator by adding elevation to the bat manifest [2]. test report: - setting AccessControl ok and file is updated: win Vista 32bit win 7 32bit and 64bit win 8.1 64bit - setting AccessControl ok, but file is not updated: win 10 64bit in a virtual machine [1] https://trac.osgeo.org/grass/browser....nsi.tmpl#L531 [2] https://trac.osgeo.org/grass/browser....nsi.tmpl#L588 |
|
|
|
![]() |
|
|||||||
| Thread Tools | Search this Thread |
| Display Modes | |
|
|