#986: WinGrass-Installer - Enhancement ------------------------------+--------------------------------------------- Reporter: hellik | Owner: [email protected] Type: enhancement | Status: new Priority: normal | Milestone: 6.4.0 Component: Installation | Version: svn-develbranch6 Resolution: | Keywords: Platform: MSWindows Vista | Cpu: Unspecified ------------------------------+--------------------------------------------- Comment (by hellik):
Replying to [ticket:986 hellik]: > Hi, > > i would suggest some enhancements for the WinGrass-Installer (based on a whish from MarkusN). Patch is against Grass65 for testing. > > Helmut (1) RequestExecutionLevel user => RequestExecutionLevel admin see http://nsis.sourceforge.net/Docs/Chapter4.html 4.8.1.32 RequestExecutionLevel: {{{ Specifies the requested execution level for Windows Vista and Windows 7. The value is embedded in the installer and uninstaller's XML manifest and tells Vista/7, and probably future versions of Windows, what privileges level the installer requires. user requests the a normal user's level with no administrative privileges. highest will request the highest execution level available for the current user and will cause Windows to prompt the user to verify privilege escalation. The prompt might request for the user's password. admin requests administrator level and will cause Windows to prompt the user as well.[...] }}} (2) a message box popping up before starting the installer to be sure to have the right to install in the default system program folder {{{ Function .onInit MessageBox MB_YESNO "This will install GRASS ${DEV65_VERSION_NUMBER}.Be sure to have rights to install the software. Right click on the installation file and RUN AS ADMINISTRATOR can help. Otherwise installation may fail. Continue?" IDYES NoAbort Abort ; causes installer to quit. NoAbort: }}} (3) ExecWait from the NSIS allows to finish run_gmkfontcap.bat and then the win-installer continues to install {{{ ;Run g.mkfontcap outside a grass session during installation to catch al fonts ExecWait '"$INSTALL_DIR\etc\run_gmkfontcap.bat"' }}} (4) ask about starting the readme/reference manual after successfull install {{{ ;README after successfull install Function .onInstSuccess MessageBox MB_YESNO "Installation was sucessfull. Do you want to see the GRASS ${DEV65_VERSION_NUMBER} Reference Manual" IDNO NoReadme ExecShell "open" "$INSTALL_DIR\docs\html\index.html" NoReadme: FunctionEnd }}} (5) ask about starting Grass after finishing the installer {{{ ;start Grass Gis after closing installation wizard Function .onGUIEnd MessageBox MB_YESNO "Do you want to start GRASS ${DEV65_VERSION_NUMBER}?" IDNO NoGrassStart Exec '"$INSTALL_DIR\${GRASS_COMMAND}.bat" "-wxpython"' NoGrassStart: FunctionEnd }}} any suggestions? best regards Helmut -- Ticket URL: <http://trac.osgeo.org/grass/ticket/986#comment:1> GRASS GIS <http://grass.osgeo.org>
_______________________________________________ grass-dev mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/grass-dev
