[GRASS-SVN] r54612 - grass/trunk/mswindows

svn_grass at osgeo.org svn_grass at osgeo.org
Sun Jan 13 08:46:06 PST 2013


Author: martinl
Date: 2013-01-13 08:46:05 -0800 (Sun, 13 Jan 2013)
New Revision: 54612

Modified:
   grass/trunk/mswindows/GRASS-Installer.nsi.tmpl
Log:
wingrass: attempt to define python file association

Modified: grass/trunk/mswindows/GRASS-Installer.nsi.tmpl
===================================================================
--- grass/trunk/mswindows/GRASS-Installer.nsi.tmpl	2013-01-13 14:57:05 UTC (rev 54611)
+++ grass/trunk/mswindows/GRASS-Installer.nsi.tmpl	2013-01-13 16:46:05 UTC (rev 54612)
@@ -50,6 +50,7 @@
 
 !include "MUI2.nsh"
 !include "LogicLib.nsh"
+!include "FileAssociation.nsh"
 
 ;----------------------------------------------------------------------------------------------------------------------------
 
@@ -621,7 +622,10 @@
 	WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${GRASS_BASE}" "HelpLink" "${WIKI_PAGE}"
 	WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${GRASS_BASE}" "URLInfoAbout" "${WEB_SITE}"
 	WriteRegStr HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${GRASS_BASE}" "Publisher" "${PUBLISHER}"
-  
+        
+        ;File Association
+        ${registerExtension} "$INSTALL_DIR\extrabin\pythonw.exe" ".py" "Python File"
+        
 	;Create the Desktop Shortcut
 	SetShellVarContext current
 	
@@ -1002,6 +1006,8 @@
 	DeleteRegKey HKLM "Software\${GRASS_BASE}"
 	DeleteRegKey HKLM "Software\Microsoft\Windows\CurrentVersion\Uninstall\${GRASS_BASE}"
 
+        ;File Association
+        ${unregisterExtension} ".py" "Python File"
 SectionEnd
 
 ;----------------------------------------------------------------------------------------------------------------------------



More information about the grass-commit mailing list