Quellcode durchsuchen

wingrass-installer improvements - part 4:
options for launching Grass and Reference manual by exit the installer
(both directly started, without a intermediate popup)

git-svn-id: https://svn.osgeo.org/grass/grass/trunk@41330 15284696-431f-4ddb-bdfa-cd5b030d7da7

Helmut Kudrnovsky vor 15 Jahren
Ursprung
Commit
10d890ae50
1 geänderte Dateien mit 31 neuen und 0 gelöschten Zeilen
  1. 31 0
      mswindows/GRASS-Installer.nsi

+ 31 - 0
mswindows/GRASS-Installer.nsi

@@ -349,6 +349,17 @@ FunctionEnd
 
 !insertmacro MUI_PAGE_COMPONENTS
 !insertmacro MUI_PAGE_INSTFILES
+
+;These indented statements modify settings for MUI_PAGE_FINISH
+    !define MUI_FINISHPAGE_NOAUTOCLOSE
+    !define MUI_FINISHPAGE_RUN
+    !define MUI_FINISHPAGE_RUN_NOTCHECKED
+    !define MUI_FINISHPAGE_RUN_TEXT "Launch Grass"
+    !define MUI_FINISHPAGE_RUN_FUNCTION "LaunchGrass"
+    !define MUI_FINISHPAGE_SHOWREADME
+    !define MUI_FINISHPAGE_SHOWREADME_NOTCHECKED
+    !define MUI_FINISHPAGE_SHOWREADME_TEXT "Launch Reference Manual"
+	!define MUI_FINISHPAGE_SHOWREADME_FUNCTION "ViewReadme"
 !insertmacro MUI_PAGE_FINISH
 
 !insertmacro MUI_UNPAGE_WELCOME
@@ -364,6 +375,26 @@ FunctionEnd
 
 ;----------------------------------------------------------------------------------------------------------------------------
 
+;launch Grass Gis by exit the installation wizard
+
+Function LaunchGrass
+
+      Exec '"$INSTDIR\${GRASS_COMMAND}.bat" "-wxpython"'
+
+FunctionEnd
+
+;----------------------------------------------------------------------------------------------------------------------------
+
+;launch reference manual by exit the installation wizard
+
+Function ViewReadme
+
+      ExecShell "open" "$INSTDIR\docs\html\index.html"
+
+FunctionEnd
+
+;----------------------------------------------------------------------------------------------------------------------------
+
 ;Installer Sections
 
 ;Declares the variables for optional Sample Data Sections